From 3e6f7500ad7cd9ffebd768ed76a3be0dbcce2dee Mon Sep 17 00:00:00 2001 From: Nesterov Evgeny Date: Wed, 15 Oct 2025 23:46:51 +0300 Subject: [PATCH] add support for "Luckfox Pico Ultra" and "Luckfox Pico Ultra W" boards --- adafruit_platformdetect/board.py | 2 ++ adafruit_platformdetect/constants/boards.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 426760a..4e89f74 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -984,6 +984,8 @@ def _rv1106_id(self) -> Optional[str]: board = None if board_value and "Luckfox Pico Max" in board_value: board = boards.LUCKFOX_PICO_MAX + elif board_value and "Luckfox Pico Ultra" in board_value: + board = boards.LUCKFOX_PICO_ULTRA return board @property diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index a6dee4c..c38c010 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -265,6 +265,7 @@ # Luckfox Pico boards LUCKFOX_PICO = "LUCKFOX_PICO" LUCKFOX_PICO_MAX = "LUCKFOX_PICO_MAX" +LUCKFOX_PICO_ULTRA = "LUCKFOX_PICO_ULTRA" LUCKFOX_PICO_MINI = "LUCKFOX_PICO_MINI" LUCKFOX_PICO_PLUS = "LUCKFOX_PICO_PLUS" @@ -702,6 +703,7 @@ _LUCKFOX_IDS = ( LUCKFOX_PICO, LUCKFOX_PICO_MAX, + LUCKFOX_PICO_ULTRA, LUCKFOX_PICO_MINI, LUCKFOX_PICO_PLUS, )