Skip to content

Commit 8cbc616

Browse files
authored
Merge pull request #38 from hansoostendorp/orangepizero
Update board.py for Orange Pi Zero
2 parents aacfd20 + bc6d700 commit 8cbc616

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
NODEMCU = "NODEMCU"
2828
ORANGE_PI_PC = "ORANGE_PI_PC"
2929
ORANGE_PI_R1 = "ORANGE_PI_R1"
30+
ORANGE_PI_ZERO = "ORANGE_PI_ZERO"
3031
GIANT_BOARD = "GIANT_BOARD"
3132

3233
# NVIDIA Jetson boards
@@ -70,7 +71,8 @@
7071
#OrangePI
7172
_ORANGE_PI_IDS = (
7273
ORANGE_PI_PC,
73-
ORANGE_PI_R1
74+
ORANGE_PI_R1,
75+
ORANGE_PI_ZERO
7476
)
7577

7678
_CORAL_IDS = (
@@ -383,6 +385,8 @@ def _armbian_id(self):
383385
return ORANGE_PI_PC
384386
if board_value == "orangepi-r1":
385387
return ORANGE_PI_R1
388+
if board_value == "orangepizero":
389+
return ORANGE_PI_ZERO
386390
return None
387391

388392
def _sama5_id(self):

0 commit comments

Comments
 (0)