Browse Source

Update board.py for Orange Pi Zero

Hans Oostendorp 1 week ago
parent
commit
bc6d700cbb
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      adafruit_platformdetect/board.py

+ 5
- 1
adafruit_platformdetect/board.py View File

@@ -27,6 +27,7 @@ PYBOARD                     = "PYBOARD"
27 27
 NODEMCU                     = "NODEMCU"
28 28
 ORANGE_PI_PC                = "ORANGE_PI_PC"
29 29
 ORANGE_PI_R1                = "ORANGE_PI_R1"
30
+ORANGE_PI_ZERO              = "ORANGE_PI_ZERO"
30 31
 GIANT_BOARD                 = "GIANT_BOARD"
31 32
 
32 33
 # NVIDIA Jetson boards
@@ -70,7 +71,8 @@ SIFIVE_UNLEASHED            = "SIFIVE_UNLEASHED"
70 71
 #OrangePI
71 72
 _ORANGE_PI_IDS = (
72 73
     ORANGE_PI_PC,
73
-    ORANGE_PI_R1
74
+    ORANGE_PI_R1,
75
+    ORANGE_PI_ZERO
74 76
 )
75 77
 
76 78
 _CORAL_IDS = (
@@ -383,6 +385,8 @@ class Board:
383 385
             return ORANGE_PI_PC
384 386
         if board_value == "orangepi-r1":
385 387
             return ORANGE_PI_R1
388
+        if board_value == "orangepizero":
389
+            return ORANGE_PI_ZERO
386 390
         return None
387 391
 
388 392
     def _sama5_id(self):

Loading…
Cancel
Save