Skip to content

Commit 0bb023d

Browse files
authored
Merge pull request #343 from shawnchainw/main
Added support for RADXA ROCK 4SE board
2 parents 662570f + 00e4f84 commit 0bb023d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

adafruit_platformdetect/board.py

+2
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,8 @@ def _rock_pi_id(self) -> Optional[str]:
617617
board = boards.ROCK_PI_5
618618
if board_value and "RADXA ROCK 4C+" in board_value.upper():
619619
board = boards.ROCK_PI_4_C_PLUS
620+
if board_value and "RADXA ROCK 4SE" in board_value.upper():
621+
board = boards.ROCK_PI_4_SE
620622
if board_value and "ROCK3 Model A" in board_value:
621623
board = boards.ROCK_PI_3A
622624
return board

adafruit_platformdetect/constants/boards.py

+2
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
ROCK_PI_S = "ROCK_PI_S"
198198
ROCK_PI_4 = "ROCK_PI_4"
199199
ROCK_PI_4_C_PLUS = "ROCK_PI_4C+"
200+
ROCK_PI_4_SE = "ROCK_PI_4_SE"
200201
ROCK_PI_X = "ROCK_PI_X"
201202
ROCK_PI_E = "ROCK_PI_E"
202203
ROCK_PI_5 = "ROCK_PI_5"
@@ -519,6 +520,7 @@
519520
ROCK_PI_S,
520521
ROCK_PI_4,
521522
ROCK_PI_4_C_PLUS,
523+
ROCK_PI_4_SE,
522524
ROCK_PI_X,
523525
ROCK_PI_E,
524526
RADXA_ZERO,

0 commit comments

Comments
 (0)