Browse Source

Merge pull request #189 from MoseMueller/MoseMueller-patch-1

Add Banana Pi M2 Zero to any embedded linux detection
pull/190/head 3.16.1
Melissa LeBlanc-Williams 7 months ago
committed by GitHub
parent
commit
65d5035ab5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      adafruit_platformdetect/board.py

+ 6
- 0
adafruit_platformdetect/board.py View File

@ -599,6 +599,11 @@ class Board:
"""Check whether the current board is any stm32mp1 board."""
return self.id in boards._STM32MP1_IDS
@property
def any_bananapi(self):
"""Check whether the current board is any BananaPi-family system."""
return self.id in boards._BANANA_PI_IDS
@property
def any_embedded_linux(self):
"""Check whether the current board is any embedded Linux device."""
@ -624,6 +629,7 @@ class Board:
self.any_asus_tinker_board,
self.any_stm32mp1,
self.any_lubancat,
self.any_bananapi,
]
)


Loading…
Cancel
Save