Skip to content

Commit 7e402d0

Browse files
committed
Add Orange Pi 2 support
1 parent 9ff0213 commit 7e402d0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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: 1 addition & 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"

0 commit comments

Comments
 (0)