Skip to content

Commit 25d750d

Browse files
authored
Merge pull request #114 from twa127/patch-2
Support for Orange Pi Zero Plus2 H5
2 parents 5423a45 + d7457a8 commit 25d750d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

adafruit_platformdetect/board.py

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def id(self):
121121
board_id = self._pynq_id()
122122
elif chip_id == chips.A64:
123123
board_id = self._pine64_id()
124+
elif chip_id == chips.H5:
125+
board_id = self._armbian_id()
124126
elif chip_id == chips.A33:
125127
board_id = self._clockwork_pi_id()
126128
elif chip_id == chips.RK3308:

adafruit_platformdetect/constants/boards.py

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
ORANGE_PI_PC_PLUS = "ORANGE_PI_PC_PLUS"
3939
ORANGE_PI_PLUS_2E = "ORANGE_PI_PLUS_2E"
4040
ORANGE_PI_2 = "ORANGE_PI_2"
41+
ORANGE_PI_ZERO_PLUS_2H5 = "ORANGE_PI_ZERO_PLUS_2H5"
4142

4243
# Banana Pi boards
4344
BANANA_PI_M2_ZERO = "BANANA_PI_M2_ZERO"
@@ -126,6 +127,7 @@
126127
ORANGE_PI_PC_PLUS,
127128
ORANGE_PI_PLUS_2E,
128129
ORANGE_PI_2,
130+
ORANGE_PI_ZERO_PLUS_2H5,
129131
)
130132

131133
# BananaPI

adafruit_platformdetect/constants/chips.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
ZYNQ7000 = "ZYNQ7000"
2828
A64 = "A64"
2929
A33 = "A33"
30+
H5 = "H5"
3031
RK3308 = "RK3308"
3132
LPC4330 = "LPC4330"
3233
RK3288 = "RK3288"

0 commit comments

Comments
 (0)