Skip to content

Dev #365

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 2 commits into from
Jul 18, 2024
Merged

Dev #365

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
6 changes: 6 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ def _starfive_id(self) -> Optional[str]:
model = boards.VISIONFIVE2
return model

@property
def any_starfive_id(self):
"""Check whether the current board is any Pine64 device."""
return self.id in boards._STARFIVE_BOARD_IDS

def _pi_id(self) -> Optional[str]:
"""Try to detect id of a Raspberry Pi."""
# Check for Pi boards:
Expand Down Expand Up @@ -1125,6 +1130,7 @@ def lazily_generate_conditions():
yield self.any_milkv_board
yield self.any_luckfox_pico_board
yield self.any_vivid_unit
yield self.any_starfive_id

return any(condition for condition in lazily_generate_conditions())

Expand Down
Loading