diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 5c1ade88..635a174e 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -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() @@ -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() @@ -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() @@ -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.""" diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 392b4100..008bdc91 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -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 @@ -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",)}