Skip to content

Add Orange Pi 5 Plus (again?) #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ def _armbian_id(self) -> Optional[str]:
board = boards.ORANGE_PI_4
elif board_value == "orangepi4-lts":
board = boards.ORANGE_PI_4_LTS
elif board_value == "orangepi5-plus":
board = boards.ORANGE_PI_5_PLUS
elif board_value == "orangepi5":
board = boards.ORANGE_PI_5
elif board_value == "bananapim2zero":
Expand Down Expand Up @@ -430,6 +432,8 @@ def _diet_pi_id(self) -> Optional[str]:

def _orange_pi_id(self) -> Optional[str]:
board_value = self.detector.get_device_model()
if "Orange Pi 5 Plus" in board_value:
return boards.ORANGE_PI_5_PLUS
if "Orange Pi 5" in board_value:
return boards.ORANGE_PI_5
if "Orange Pi 3B" in board_value:
Expand Down
2 changes: 2 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
ORANGE_PI_4 = "ORANGE_PI_4"
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
ORANGE_PI_5 = "ORANGE_PI_5"
ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS"

# Nano Pi boards
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
Expand Down Expand Up @@ -256,6 +257,7 @@
ORANGE_PI_4,
ORANGE_PI_4_LTS,
ORANGE_PI_5,
ORANGE_PI_5_PLUS,
)

# NanoPi
Expand Down