Skip to content

Commit bcb2448

Browse files
authored
Merge pull request #111 from twa127/master
Support for Banana Pi M2 Zero
2 parents c5f50bd + f1ed775 commit bcb2448

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ def _armbian_id(self):
246246
board = boards.PINEBOOK
247247
if board_value == "orangepi2":
248248
board = boards.ORANGE_PI_2
249+
if board_value == "bananapim2zero":
250+
board = boards.BANANA_PI_M2_ZERO
249251

250252
return board
251253

adafruit_platformdetect/constants/boards.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
ORANGE_PI_PLUS_2E = "ORANGE_PI_PLUS_2E"
4040
ORANGE_PI_2 = "ORANGE_PI_2"
4141

42+
# Banana Pi boards
43+
BANANA_PI_M2_ZERO = "BANANA_PI_M2_ZERO"
44+
4245
# NVIDIA Jetson boards
4346
JETSON_TX1 = "JETSON_TX1"
4447
JETSON_TX2 = "JETSON_TX2"
@@ -125,6 +128,9 @@
125128
ORANGE_PI_2,
126129
)
127130

131+
# BananaPI
132+
_BANANA_PI_IDS = (BANANA_PI_M2_ZERO,)
133+
128134
_CORAL_IDS = (CORAL_EDGE_TPU_DEV,)
129135

130136
_PYNQ_IDS = (PYNQ_Z1, PYNQ_Z2)

0 commit comments

Comments
 (0)