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

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

#1930 in Hardware support

Download history 115/week @ 2024-08-02 107/week @ 2024-08-09 156/week @ 2024-08-16 91/week @ 2024-08-23 78/week @ 2024-08-30 82/week @ 2024-09-06 85/week @ 2024-09-13 121/week @ 2024-09-20 138/week @ 2024-09-27 75/week @ 2024-10-04 118/week @ 2024-10-11 150/week @ 2024-10-18 65/week @ 2024-10-25 79/week @ 2024-11-01 95/week @ 2024-11-08 127/week @ 2024-11-15

388 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

~9MB
~183K SLoC