Skip to content

Commit 3893450

Browse files
authored
Merge pull request #75 from trainman419/master
Add Orange Pi 2 support
2 parents 9ff0213 + 48387d0 commit 3893450

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ def _armbian_id(self):
224224
board = boards.ORANGE_PI_PC_PLUS
225225
if board_value == "pinebook-a64":
226226
board = boards.PINEBOOK
227+
if board_value == "orangepi2":
228+
board = boards.ORANGE_PI_2
227229

228230
return board
229231

adafruit_platformdetect/constants/boards.py

Lines changed: 2 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"
@@ -102,6 +103,7 @@
102103
ORANGE_PI_LITE,
103104
ORANGE_PI_PC_PLUS,
104105
ORANGE_PI_PLUS_2E,
106+
ORANGE_PI_2,
105107
)
106108

107109
_CORAL_IDS = (CORAL_EDGE_TPU_DEV,)

0 commit comments

Comments
 (0)