@@ -213,6 +213,8 @@ def id(self) -> Optional[str]:
213
213
board_id = boards .MILKV_DUO
214
214
elif chip_id == chips .TH1520 :
215
215
board_id = boards .LICHEEPI_4A
216
+ elif chip_id == chips .RV1106 :
217
+ board_id = self ._rv1106_id ()
216
218
self ._board_id = board_id
217
219
return board_id
218
220
@@ -804,6 +806,14 @@ def _siemens_simatic_iot2000_id(self) -> Optional[str]:
804
806
board = boards .SIEMENS_SIMATIC_IOT2050_BASIC
805
807
return board
806
808
809
+ def _rv1106_id (self ) -> Optional [str ]:
810
+ """Check what type of rv1106 board."""
811
+ board_value = self .detector .get_device_model ()
812
+ board = None
813
+ if board_value and "Luckfox Pico Max" in board_value :
814
+ board = boards .LUCKFOX_PICO_MAX
815
+ return board
816
+
807
817
@property
808
818
def any_siemens_simatic_iot2000 (self ) -> bool :
809
819
"""Check whether the current board is a SIEMENS SIMATIC IOT2000 Gateway."""
@@ -989,6 +999,11 @@ def any_repka_board(self):
989
999
"""Check whether the current board is any Repka device."""
990
1000
return self .id in boards ._REPKA_PI_IDS
991
1001
1002
+ @property
1003
+ def any_luckfox_pico_board (self ):
1004
+ """Check whether the current board is any Luckfox Pico device."""
1005
+ return self .id in boards ._LUCKFOX_IDS
1006
+
992
1007
@property
993
1008
def os_environ_board (self ) -> bool :
994
1009
"""Check whether the current board is an OS environment variable special case."""
@@ -1054,6 +1069,7 @@ def lazily_generate_conditions():
1054
1069
yield self .any_olimex_lime2_board
1055
1070
yield self .any_repka_board
1056
1071
yield self .any_milkv_board
1072
+ yield self .any_luckfox_pico_board
1057
1073
1058
1074
return any (condition for condition in lazily_generate_conditions ())
1059
1075
0 commit comments