Skip to content

Added LUCKFOX_PICO/LUCKFOX_PICO_PLUS #358

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 1 commit into from
Jun 3, 2024
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 @@ -828,6 +828,10 @@ def _rv1103_id(self) -> Optional[str]:
board = None
if board_value and "Luckfox Pico Mini" in board_value:
board = boards.LUCKFOX_PICO_MINI
elif board_value and "Luckfox Pico Plus" in board_value:
board = boards.LUCKFOX_PICO_PLUS
elif board_value and "Luckfox Pico" in board_value:
board = boards.LUCKFOX_PICO
return board

def _rv1106_id(self) -> Optional[str]:
Expand Down
6 changes: 3 additions & 3 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ def _linux_id(self) -> Optional[str]:
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
return chips.RK3588

if self.detector.check_dt_compatible_value("rockchip,rv1103"):
return chips.RV1103

if self.detector.check_dt_compatible_value("rockchip,rv1106"):
return chips.RV1106

if self.detector.check_dt_compatible_value("rockchip,rv1103"):
return chips.RV1103

if self.detector.check_dt_compatible_value("amlogic,a311d"):
return chips.A311D

Expand Down
4 changes: 4 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@
_KHADAS_40_PIN_IDS = (KHADAS_VIM3,)

# Luckfox Pico boards
LUCKFOX_PICO = "LUCKFOX_PICO"
LUCKFOX_PICO_MAX = "LUCKFOX_PICO_MAX"
LUCKFOX_PICO_MINI = "LUCKFOX_PICO_MINI"
LUCKFOX_PICO_PLUS = "LUCKFOX_PICO_PLUS"

# Asus Tinkerboard
_ASUS_TINKER_BOARD_IDS = (
Expand Down Expand Up @@ -597,8 +599,10 @@

# Luckfox
_LUCKFOX_IDS = (
LUCKFOX_PICO,
LUCKFOX_PICO_MAX,
LUCKFOX_PICO_MINI,
LUCKFOX_PICO_PLUS,
)

# Agnostic board
Expand Down