Skip to content

Commit 2c5a187

Browse files
authored
Merge pull request #329 from Barbarian-5215/main
Add Orange Pi 5 Plus (again?)
2 parents 1ff8b3b + 031cf24 commit 2c5a187

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ def _armbian_id(self) -> Optional[str]:
384384
board = boards.ORANGE_PI_4
385385
elif board_value == "orangepi4-lts":
386386
board = boards.ORANGE_PI_4_LTS
387+
elif board_value == "orangepi5-plus":
388+
board = boards.ORANGE_PI_5_PLUS
387389
elif board_value == "orangepi5":
388390
board = boards.ORANGE_PI_5
389391
elif board_value == "bananapim2zero":
@@ -430,6 +432,8 @@ def _diet_pi_id(self) -> Optional[str]:
430432

431433
def _orange_pi_id(self) -> Optional[str]:
432434
board_value = self.detector.get_device_model()
435+
if "Orange Pi 5 Plus" in board_value:
436+
return boards.ORANGE_PI_5_PLUS
433437
if "Orange Pi 5" in board_value:
434438
return boards.ORANGE_PI_5
435439
if "Orange Pi 3B" in board_value:

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
ORANGE_PI_4 = "ORANGE_PI_4"
6363
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
6464
ORANGE_PI_5 = "ORANGE_PI_5"
65+
ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS"
6566

6667
# Nano Pi boards
6768
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
@@ -256,6 +257,7 @@
256257
ORANGE_PI_4,
257258
ORANGE_PI_4_LTS,
258259
ORANGE_PI_5,
260+
ORANGE_PI_5_PLUS,
259261
)
260262

261263
# NanoPi

0 commit comments

Comments
 (0)