3 releases (breaking)

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

#2135 in Embedded development

Download history 60/week @ 2024-07-21 61/week @ 2024-07-28 93/week @ 2024-08-04 122/week @ 2024-08-11 2171/week @ 2024-08-18 673/week @ 2024-08-25 1382/week @ 2024-09-01 541/week @ 2024-09-08 83/week @ 2024-09-15 257/week @ 2024-09-22 236/week @ 2024-09-29 123/week @ 2024-10-06 374/week @ 2024-10-13 366/week @ 2024-10-20 176/week @ 2024-10-27 161/week @ 2024-11-03

1,094 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

~220KB