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
+2
-2
@@ -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) -> ! {
|
||||
|
||||
Reference in new issue
Block a user