From bc6d700cbb4ec697a05ed8fddec416556496283e Mon Sep 17 00:00:00 2001 From: Hans Oostendorp Date: Thu, 5 Sep 2019 16:39:12 +0200 Subject: [PATCH] Update board.py for Orange Pi Zero --- adafruit_platformdetect/board.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 6e9828ff..f80f5232 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -27,6 +27,7 @@ NODEMCU = "NODEMCU" ORANGE_PI_PC = "ORANGE_PI_PC" ORANGE_PI_R1 = "ORANGE_PI_R1" +ORANGE_PI_ZERO = "ORANGE_PI_ZERO" GIANT_BOARD = "GIANT_BOARD" # NVIDIA Jetson boards @@ -70,7 +71,8 @@ #OrangePI _ORANGE_PI_IDS = ( ORANGE_PI_PC, - ORANGE_PI_R1 + ORANGE_PI_R1, + ORANGE_PI_ZERO ) _CORAL_IDS = ( @@ -383,6 +385,8 @@ def _armbian_id(self): return ORANGE_PI_PC if board_value == "orangepi-r1": return ORANGE_PI_R1 + if board_value == "orangepizero": + return ORANGE_PI_ZERO return None def _sama5_id(self):