diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index d85e6666..825fb70b 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -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": @@ -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]: @@ -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]: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index ba4a364b..bb378c16 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -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" @@ -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,