Merge pull request #38 from hansoostendorp/orangepizero

Update board.py for Orange Pi Zero
This commit is contained in:
Melissa LeBlanc-Williams 2019-09-06 08:16:59 -07:00 committed by GitHub
commit 8cbc6169c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ PYBOARD = "PYBOARD"
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 @@ SIFIVE_UNLEASHED = "SIFIVE_UNLEASHED"
#OrangePI
_ORANGE_PI_IDS = (
ORANGE_PI_PC,
ORANGE_PI_R1
ORANGE_PI_R1,
ORANGE_PI_ZERO
)
_CORAL_IDS = (
@ -383,6 +385,8 @@ class Board:
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):