3 releases (breaking)

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

#1944 in Embedded development

Download history 99/week @ 2023-11-23 189/week @ 2023-11-30 242/week @ 2023-12-07 90/week @ 2023-12-14 64/week @ 2023-12-21 74/week @ 2023-12-28 858/week @ 2024-01-04 351/week @ 2024-01-11 890/week @ 2024-01-18 180/week @ 2024-01-25 62/week @ 2024-02-01 91/week @ 2024-02-08 234/week @ 2024-02-15 116/week @ 2024-02-22 406/week @ 2024-02-29 104/week @ 2024-03-07

869 downloads per month
Used in 16 crates (15 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

~155KB