diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 30412f2e..8458d73c 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -599,6 +599,11 @@ def any_stm32mp1(self): """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 @@ def any_embedded_linux(self): self.any_asus_tinker_board, self.any_stm32mp1, self.any_lubancat, + self.any_bananapi, ] )