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

+2 -2
View File
@@ -38,8 +38,8 @@ static STACK: StaticCell<Stack> = StaticCell::new();
/// Brightness units per detent.
const BRIGHTNESS_STEP: i16 = 8;
/// Degrees of hue per detent.
const HUE_STEP: i16 = 6;
/// Hue per detent, in 1/256ths of the colour circle (~5.6 degrees).
const HUE_STEP: i16 = 4;
#[esp_rtos::main]
async fn main(spawner: embassy_executor::Spawner) -> ! {