Skip to content

Update board.py for Orange Pi Zero #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,7 +71,8 @@
#OrangePI
_ORANGE_PI_IDS = (
ORANGE_PI_PC,
ORANGE_PI_R1
ORANGE_PI_R1,
ORANGE_PI_ZERO
)

_CORAL_IDS = (
Expand Down Expand Up @@ -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):
Expand Down