Skip to content

Commit 8421507

Browse files
committed
2 parents 22d2dfe + ad7120e commit 8421507

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ def _armbian_id(self):
226226
board = boards.ORANGE_PI_PC_PLUS
227227
if board_value == "pinebook-a64":
228228
board = boards.PINEBOOK
229+
if board_value == "orangepi2":
230+
board = boards.ORANGE_PI_2
229231

230232
return board
231233

adafruit_platformdetect/constants/boards.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
ORANGE_PI_LITE = "ORANGE_PI_LITE"
3636
ORANGE_PI_PC_PLUS = "ORANGE_PI_PC_PLUS"
3737
ORANGE_PI_PLUS_2E = "ORANGE_PI_PLUS_2E"
38+
ORANGE_PI_2 = "ORANGE_PI_2"
3839

3940
# NVIDIA Jetson boards
4041
JETSON_TX1 = "JETSON_TX1"
@@ -104,6 +105,7 @@
104105
ORANGE_PI_LITE,
105106
ORANGE_PI_PC_PLUS,
106107
ORANGE_PI_PLUS_2E,
108+
ORANGE_PI_2,
107109
)
108110

109111
_CORAL_IDS = (CORAL_EDGE_TPU_DEV,)
@@ -190,6 +192,7 @@
190192
("A5B", "A335BNLT0A5B"),
191193
("A5C", "A335BNLT0A5C"),
192194
("A6", "A335BNLT00A6"),
195+
("B", "A335BNLT000B"),
193196
("C", "A335BNLT000C"),
194197
("C", "A335BNLT00C0"),
195198
),

0 commit comments

Comments
 (0)