#ws2812 #pio #rp2040 #ws2812-pio

dev ws2812-pio

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

8 breaking releases

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

#1439 in Hardware support

Download history 51/week @ 2025-01-26 137/week @ 2025-02-02 169/week @ 2025-02-09 94/week @ 2025-02-16 123/week @ 2025-02-23 116/week @ 2025-03-02 204/week @ 2025-03-09 144/week @ 2025-03-16 178/week @ 2025-03-23 56/week @ 2025-03-30 82/week @ 2025-04-06 139/week @ 2025-04-13 137/week @ 2025-04-20 164/week @ 2025-04-27 125/week @ 2025-05-04 90/week @ 2025-05-11

523 downloads per month
Used in 18 crates

Apache-2.0

12KB
188 lines

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.


Ws2812b-pio

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

Refer to the rp-hal for examples.

Dependencies

~9MB
~183K SLoC

OSZAR »