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:
1 parent
bb81182daa
commit
e021ab751a
6 files changed
+102
-90
No files matched your search
@@ -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"] }
|
||||
|
||||
Reference in new issue
Block a user