Skip to content

board: vicharak vaaman and axon support #383

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
May 5, 2025
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
17 changes: 17 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def id(self) -> Optional[str]:
or self._diet_pi_id()
or self._asus_tinker_board_id()
or self._vivid_unit_id()
or self._vicharak_id()
)
elif chip_id == chips.RK3399PRO:
board_id = self._asus_tinker_board_id()
Expand All @@ -197,6 +198,7 @@ def id(self) -> Optional[str]:
or self._armbian_id()
or self._rk3588_id()
or self._ameridroid_id()
or self._vicharak_id()
)
elif chip_id == chips.RYZEN_V1605B:
board_id = self._udoo_id()
Expand Down Expand Up @@ -683,6 +685,16 @@ def _rock_pi_id(self) -> Optional[str]:
board = boards.ROCK_PI_3A
return board

def _vicharak_id(self) -> Optional[str]:
"""Check what type of Vicharak Board."""
board_value = self.detector.get_device_model()
board = None
if board_value and "VAAMAN" in board_value.upper():
board = boards.VAAMAN
if board_value and "AXON" in board_value.upper():
board = boards.AXON
return board

def _libre_id(self) -> Optional[str]:
"""Check what type of Libre Computer board."""
board_value = self.detector.get_device_model()
Expand Down Expand Up @@ -1036,6 +1048,11 @@ def any_rock_pi_board(self) -> bool:
"""Check whether the current board is any Rock Pi device."""
return self.id in boards._ROCK_PI_IDS

@property
def any_vicharak_board(self) -> bool:
"""Check whether the current board is any vicharak device."""
return self.id in boards._VICHARAK_BOARD_IDS

@property
def any_clockwork_pi_board(self) -> bool:
"""Check whether the current board is any Clockwork Pi device."""
Expand Down
7 changes: 7 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@
ROCK_PI_5 = "ROCK_PI_5"
ROCK_PI_5C = "ROCK_PI_5C"

# Vicharak Boards
VAAMAN = "VAAMAN"
AXON = "AXON"

GREATFET_ONE = "GREATFET_ONE"

# SeeedStudio boards
Expand Down Expand Up @@ -604,6 +608,9 @@
ROCK_PI_3C,
)

# Vicharak Boards
_VICHARAK_BOARD_IDS = (VAAMAN, AXON)

# UDOO
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}

Expand Down
Loading