#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

#1458 in Embedded development

Download history 447/week @ 2023-08-15 110/week @ 2023-08-22 78/week @ 2023-08-29 278/week @ 2023-09-05 129/week @ 2023-09-12 78/week @ 2023-09-19 215/week @ 2023-09-26 108/week @ 2023-10-03 211/week @ 2023-10-10 191/week @ 2023-10-17 731/week @ 2023-10-24 102/week @ 2023-10-31 164/week @ 2023-11-07 539/week @ 2023-11-14 131/week @ 2023-11-21 130/week @ 2023-11-28

980 downloads per month
Used in 16 crates (15 directly)


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.


Licensed under either of

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.


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.