Skip to content

forgot to add Coral as an embedded linux board type #22

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 12, 2019
Merged
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
8 changes: 7 additions & 1 deletion adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ def any_orange_pi(self):
"""Check whether the current board is any defined Orange Pi."""
return self.ORANGE_PI_PC

@property
def any_coral_board(self):
"""Check whether the current board is any defined Coral."""
return self.CORAL_EDGE_TPU_DEV

@property
def any_giant_board(self):
"""Check whether the current board is any defined Giant Board."""
Expand All @@ -397,7 +402,8 @@ def any_jetson_board(self):
def any_embedded_linux(self):
"""Check whether the current board is any embedded Linux device."""
return self.any_raspberry_pi or self.any_beaglebone or \
self.any_orange_pi or self.any_giant_board or self.any_jetson_board
self.any_orange_pi or self.any_giant_board or self.any_jetson_board or \
self.any_coral_board

def __getattr__(self, attr):
"""
Expand Down