diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 6c16104c..8b0be37c 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -719,6 +719,11 @@ def any_lichee_riscv_board(self) -> bool: """Check whether the current board is any defined Lichee RISC-V.""" return self.id in boards._LICHEE_RISCV_IDS + @property + def any_libre_computer_board(self) -> bool: + """Check whether the current board is any defined Libre Computer board.""" + return self.id in boards._LIBRE_COMPUTER_IDS + @property def any_embedded_linux(self) -> bool: """Check whether the current board is any embedded Linux device.""" @@ -751,6 +756,7 @@ def any_embedded_linux(self) -> bool: self.any_siemens_simatic_iot2000, self.any_lichee_riscv_board, self.any_pcduino_board, + self.any_libre_computer_board, ] ) @@ -809,11 +815,6 @@ def greatfet_one(self) -> bool: """Check whether the current board is a GreatFET One.""" return self.id == boards.GREATFET_ONE - @property - def aml_s905x_cc(self) -> bool: - """Check whether the current board is a aml-s905x-cc One.""" - return self.id == boards.AML_S905X_CC - def __getattr__(self, attr: str) -> bool: """ Detect whether the given attribute is the currently-detected board. See list diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 43869018..9f5f7d39 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -546,4 +546,4 @@ AML_S905X_CC = "AML-S905X-CC" # Libre Computer Boards -_LIBRE_COMPUTER_IDS = AML_S905X_CC +_LIBRE_COMPUTER_IDS = (AML_S905X_CC,)