Use various addresable led like the ws2812 (neopixel) or apa102 (dotstar) in rust. As their protocol greatly differs and for some (like the ws2812) there are various methods, this crate doesn't implement any specific drivers by itself. It has to be coupled with a device driver that implements the smart-leds-trait, like the ws2812-spi, the ws2812-timer-delay or the apa102-spi drivers.
You can see some usage examples in the smart-leds-samples repo.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.