esp_ws2812_b

Crates.ioesp_ws2812_b
lib.rsesp_ws2812_b
version0.1.5
created_at2025-06-01 19:12:45.677235+00
updated_at2025-06-02 18:58:22.962536+00
descriptionA crate that provides control over the WS2812B LED.
homepage
repositoryhttps://github.com/nguterresn/esp_ws2812_b
max_upload_size
id1697430
size37,294
Nuno Guterres Nogueira (nguterresn)

documentation

README

WS2812B

A library to drive the WS2812B LED.

Play one LED

...

let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max());
let peripherals: esp_hal::peripherals::Peripherals = esp_hal::init(config);

let mut r = WS2812B::new(peripherals.RMT, 80, peripherals.GPIO8)?;

r = r.play(1)?;

...

Build for different esp32 targets

cargo run --features esp32c6
Commit count: 13

cargo fmt