#led-driver #rp2040 #ws2812 #pio #smart #raspberry #peripheral

dev ws2812-pio

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

8 releases (breaking)

0.8.0 Mar 16, 2024
0.7.0 Sep 1, 2023
0.6.0 Feb 18, 2023
0.5.0 Dec 11, 2022
0.1.0 Jan 3, 2022

#1671 in Hardware support

Download history 49/week @ 2024-01-21 34/week @ 2024-01-28 68/week @ 2024-02-04 93/week @ 2024-02-11 145/week @ 2024-02-18 142/week @ 2024-02-25 116/week @ 2024-03-03 207/week @ 2024-03-10 539/week @ 2024-03-17 124/week @ 2024-03-24 186/week @ 2024-03-31 133/week @ 2024-04-07 227/week @ 2024-04-14 174/week @ 2024-04-21 386/week @ 2024-04-28 107/week @ 2024-05-05

916 downloads per month
Used in 18 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

~8.5MB
~175K SLoC