| Crates.io | esp_ws2812_b |
| lib.rs | esp_ws2812_b |
| version | 0.1.5 |
| created_at | 2025-06-01 19:12:45.677235+00 |
| updated_at | 2025-06-02 18:58:22.962536+00 |
| description | A crate that provides control over the WS2812B LED. |
| homepage | |
| repository | https://github.com/nguterresn/esp_ws2812_b |
| max_upload_size | |
| id | 1697430 |
| size | 37,294 |
A library to drive the WS2812B 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)?;
...
cargo run --features esp32c6