#smart-leds #ws2812

no-std ws2812-timer-delay

Timer-based driver for ws2812 leds

3 releases (breaking)

0.3.0 Nov 29, 2019
0.2.0 May 3, 2019
0.1.0 Mar 5, 2019

#439 in Hardware support

Download history 425/week @ 2022-06-10 276/week @ 2022-06-17 108/week @ 2022-06-24 130/week @ 2022-07-01 63/week @ 2022-07-08 337/week @ 2022-07-15 78/week @ 2022-07-22 43/week @ 2022-07-29 372/week @ 2022-08-05 75/week @ 2022-08-12 110/week @ 2022-08-19 36/week @ 2022-08-26 354/week @ 2022-09-02 458/week @ 2022-09-09 141/week @ 2022-09-16 53/week @ 2022-09-23

1,019 downloads per month
Used in 15 crates (14 directly)

MIT/Apache

7KB
83 lines

Ws2812 driver with timer based delays

For usage with the smart-leds crate.

If your timer/micro is to slow (e.g. all/some leds are white or display the wrong color), you may wish to enable the slow feature. It will remove any delay for the high part of the zero bits. This may be too short for some led strips, which may display wrong data. In that case, you might want to clock higher or use another driver.

License

Licensed under either of

at your option.

Contribution

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.


lib.rs:

Use ws2812 leds with timers

  • For usage with smart-leds
  • Implements the SmartLedsWrite trait

The new method needs a periodic timer running at 3 MHz

If it's too slow (e.g. e.g. all/some leds are white or display the wrong color) you may want to try the slow feature.

Dependencies

~145KB