Skip to content

Commit 5ae9bf9

Browse files
committed
Add Rock PI 3B
1 parent c9518b0 commit 5ae9bf9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ def _armbian_id(self) -> Optional[str]:
468468
board = boards.PCDUINO3
469469
elif board_value == "rock-3a":
470470
board = boards.ROCK_PI_3A
471+
elif board_value == "rock-3b":
472+
board = boards.ROCK_PI_3B
471473
elif board_value == "radxa-zero3":
472474
board = boards.RADXA_ZERO3
473475
elif board_value == "repka-pi3-h5":
@@ -645,6 +647,8 @@ def _rk3568_id(self) -> Optional[str]:
645647
board = boards.LUBANCAT2
646648
if board_value and "ROCK3 Model A" in board_value:
647649
board = boards.ROCK_PI_3A
650+
if board_value and "ROCK 3 Model B" in board_value:
651+
board = boards.ROCK_PI_3B
648652
if board_value and "Hardkernel ODROID-M1" in board_value:
649653
board = boards.ODROID_M1
650654
return board
@@ -681,6 +685,8 @@ def _rock_pi_id(self) -> Optional[str]:
681685
board = boards.ROCK_PI_4_SE
682686
if board_value and "ROCK3 Model A" in board_value:
683687
board = boards.ROCK_PI_3A
688+
if board_value and "ROCK 3 Model B" in board_value:
689+
board = boards.ROCK_PI_3B
684690
return board
685691

686692
def _libre_id(self) -> Optional[str]:

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@
208208
RADXA_CM3 = "RADXA_CM3"
209209

210210
ROCK_PI_3A = "ROCK_PI_3A"
211+
ROCK_PI_3B = "ROCK_PI_3B"
211212
ROCK_PI_3C = "ROCK_PI_3C"
212213
ROCK_PI_S = "ROCK_PI_S"
213214
ROCK_PI_4 = "ROCK_PI_4"
@@ -601,6 +602,7 @@
601602
ROCK_PI_5C,
602603
RADXA_CM3,
603604
ROCK_PI_3A,
605+
ROCK_PI_3B,
604606
ROCK_PI_3C,
605607
)
606608

0 commit comments

Comments
 (0)