File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,11 @@ def any_giant_board(self):
402
402
"""Check whether the current board is any defined Giant Board."""
403
403
return self .GIANT_BOARD
404
404
405
+ @property
406
+ def any_odroid_40_pin (self ):
407
+ """Check whether the current board is any defined 40-pin Odroid."""
408
+ return self .id in _ODROID_40_PIN_IDS
409
+
405
410
@property
406
411
def any_jetson_board (self ):
407
412
"""Check whether the current board is any defined Jetson Board."""
@@ -412,7 +417,7 @@ def any_embedded_linux(self):
412
417
"""Check whether the current board is any embedded Linux device."""
413
418
return self .any_raspberry_pi or self .any_beaglebone or \
414
419
self .any_orange_pi or self .any_giant_board or self .any_jetson_board or \
415
- self .any_coral_board
420
+ self .any_coral_board or self . any_odroid_40_pin
416
421
417
422
def __getattr__ (self , attr ):
418
423
"""
Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ def _linux_id(self): # pylint: disable=too-many-branches
92
92
linux_id = T194
93
93
if compatible and 'imx8m' in compatible :
94
94
linux_id = IMX8MX
95
+ if compatible and 'odroid-c2' in compatible :
96
+ linux_id = S905
95
97
96
98
elif hardware in ("BCM2708" , "BCM2709" , "BCM2835" ):
97
99
linux_id = BCM2XXX
Original file line number Diff line number Diff line change 11
11
print ("Is this a Pi 3B+?" , detector .board .RASPBERRY_PI_3B_PLUS )
12
12
print ("Is this a 40-pin Raspberry Pi?" , detector .board .any_raspberry_pi_40_pin )
13
13
print ("Is this a BBB?" , detector .board .BEAGLEBONE_BLACK )
14
- print ("Is this an Orange Pi PC?" , detector .board .ORANGE_PI_PC )
15
14
print ("Is this a Giant Board?" , detector .board .GIANT_BOARD )
16
15
print ("Is this a Coral Edge TPU?" , detector .board .CORAL_EDGE_TPU_DEV )
17
16
print ("Is this an embedded Linux system?" , detector .board .any_embedded_linux )
21
20
print ("Raspberry Pi detected." )
22
21
23
22
if detector .board .any_jetson_board :
24
- print ("Jetson platform detected." )
23
+ print ("Jetson platform detected." )
24
+
25
+ if detector .board .any_orange_pi :
26
+ print ("Orange Pi detected." )
27
+
28
+ if detector .board .any_odroid_40_pin :
29
+ print ("Odroid detected." )
You can’t perform that action at this time.
0 commit comments