refactor(led): drive the strip through the smart-leds traits

Replaces the hand-rolled Rgb type, HSV conversion and brightness scaling
with RGB8, hsv2rgb, gamma and brightness from smart-leds, and exposes the
driver as SmartLedsWriteAsync. The RMT symbol encoding stays in-tree: no
upstream RMT driver currently targets esp-hal 1.1.
This commit is contained in:
Matt Spencer committed 2026-10-17 15:42:13 +01:00
1 parent bb81182daa
commit e021ab751a
6 files changed
+102 -90

No files matched your search

+7
View File
@@ -35,6 +35,13 @@ embassy-embedded-hal = "0.5.0"
static_cell = "2.1"
log = "0.4"
# LED colour types, the async write trait, and the gamma/brightness helpers.
# The driver below encodes RMT symbols itself because no upstream RMT driver
# currently targets esp-hal 1.1: ws2812-esp32-rmt-driver is esp-idf only, and
# esp-hal-smartled pins ~1.0 (0.17) or ~1.2 (0.18).
smart-leds = "0.4"
smart-leds-trait = "0.3"
# vendored upstream: the lighting cluster is not implemented there yet, so the
# path dependency lets us add it in-tree and upstream it later
zigbee = { path = "vendor/zigbee-rs/zigbee", features = ["storage"] }