Skip to content

Commit

Permalink
Add Orange Pi 3B
Browse files Browse the repository at this point in the history
  • Loading branch information
johnp789 committed Oct 4, 2023
1 parent 9ffecfc commit 4b7d260
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def _armbian_id(self) -> Optional[str]:
board = boards.ORANGE_PI_2
elif board_value == "orangepi3":
board = boards.ORANGE_PI_3
elif board_value == "orangepi3b":
board = boards.ORANGE_PI_3B
elif board_value == "orangepi3-lts":
board = boards.ORANGE_PI_3_LTS
elif board_value == "orangepi4":
Expand Down Expand Up @@ -427,6 +429,8 @@ def _orange_pi_id(self) -> Optional[str]:
board_value = self.detector.get_device_model()
if "Orange Pi 5" in board_value:
return boards.ORANGE_PI_5
if "Orange Pi 3B" in board_value:
return boards.ORANGE_PI_3B
return None

def _sama5_id(self) -> Optional[str]:
Expand Down Expand Up @@ -552,6 +556,8 @@ def _rk3566_id(self) -> Optional[str]:
board = boards.LUBANCAT1
if board_value and "Radxa CM3 IO" in board_value:
board = boards.RADXA_CM3
if board_value and "Rockchip RK3566 OPi 3B" in board_value:
board = boards.ORANGE_PI_3B
return board

def _rk3568_id(self) -> Optional[str]:
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 @@ -57,6 +57,7 @@
ORANGE_PI_ZERO_PLUS = "ORANGE_PI_ZERO_PLUS"
ORANGE_PI_ZERO_2 = "ORANGE_PI_ZERO_2"
ORANGE_PI_3 = "ORANGE_PI_3"
ORANGE_PI_3B = "ORANGE_PI_3B"
ORANGE_PI_3_LTS = "ORANGE_PI_3_LTS"
ORANGE_PI_4 = "ORANGE_PI_4"
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
Expand Down Expand Up @@ -248,6 +249,7 @@
ORANGE_PI_ZERO_PLUS,
ORANGE_PI_ZERO_2,
ORANGE_PI_3,
ORANGE_PI_3B,
ORANGE_PI_3_LTS,
ORANGE_PI_4,
ORANGE_PI_4_LTS,
Expand Down

0 comments on commit 4b7d260

Please sign in to comment.