#ws2812

dev ws2812-pio

Driver implementation for the WS2812 smart LED using the RP2040's PIO peripheral

7 releases (breaking)

0.7.0 Sep 1, 2023
0.6.0 Feb 18, 2023
0.5.0 Dec 11, 2022
0.4.0 Aug 26, 2022
0.1.0 Jan 3, 2022

#1606 in Hardware support

Download history 89/week @ 2023-06-06 158/week @ 2023-06-13 236/week @ 2023-06-20 129/week @ 2023-06-27 183/week @ 2023-07-04 133/week @ 2023-07-11 157/week @ 2023-07-18 140/week @ 2023-07-25 155/week @ 2023-08-01 272/week @ 2023-08-08 165/week @ 2023-08-15 124/week @ 2023-08-22 338/week @ 2023-08-29 191/week @ 2023-09-05 140/week @ 2023-09-12 127/week @ 2023-09-19

825 downloads per month
Used in 17 crates

Apache-2.0

11KB
153 lines

Ws2812b-pio

Implements SmartLedsWrite for the Raspberry's RP2040 using the PIO peripheral.

Refer to the rp-hal for examples.


lib.rs:

WS2812 PIO Driver for the RP2040

This driver implements driving a WS2812 RGB LED strip from a PIO device of the RP2040 chip.

You should reach to [Ws2812] if you run the main loop of your controller yourself and you want [Ws2812] to take a hold of your timer.

In case you use cortex-m-rtic and can't afford this crate to wait blocking for you, you should try [Ws2812Direct]. Bear in mind that you will have to take care of timing requirements yourself then.

Dependencies

~7MB
~152K SLoC