We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c9fd12 + 234b4d8 commit fa12191Copy full SHA for fa12191
adafruit_platformdetect/board.py
@@ -234,6 +234,11 @@ def _starfive_id(self) -> Optional[str]:
234
model = boards.VISIONFIVE2
235
return model
236
237
+ @property
238
+ def any_starfive_id(self):
239
+ """Check whether the current board is any Pine64 device."""
240
+ return self.id in boards._STARFIVE_BOARD_IDS
241
+
242
def _pi_id(self) -> Optional[str]:
243
"""Try to detect id of a Raspberry Pi."""
244
# Check for Pi boards:
@@ -1125,6 +1130,7 @@ def lazily_generate_conditions():
1125
1130
yield self.any_milkv_board
1126
1131
yield self.any_luckfox_pico_board
1127
1132
yield self.any_vivid_unit
1133
+ yield self.any_starfive_id
1128
1134
1129
1135
return any(condition for condition in lazily_generate_conditions())
1136
0 commit comments