cat-in-136 / ws2812-esp32-rmt-driver

WS2812 driver using ESP32 RMT for Rust
MIT License
40 stars 21 forks source link

Support for four channel SK6812 LEDs #5

Closed faern closed 1 year ago

faern commented 2 years ago

Thank you for this very helpful library! The timing was amazing. I was just getting into ESP32s and wanted to control these LED strips. You had published it to crates.io just a few hours before I came looking for it.

There are variations of these LED that has four color channels per LED: RGBW. The protocol is identical, but you have to emit four channels per LED instead of three. There are also variations where the color channels come in different order. See this code from a Raspberry PI library for these LED strips: https://github.com/faern/rpi-ws281x-rs/blob/master/src/strip_type.rs#L5-L23

Do you have anything against having this library support a variable channel configuration? Maybe I can help adding it if you think it's a good thing to include it.