-
Controlling WS2812 RGB LEDs from the ESP32
19 Nov | 16I've posted my code which uses the RMT peripheral on the ESP32 to control WS2812 RGB LEDs. The LEDs can be controlled from within a task without any flickering because the timing of the pulses is controlled by the RMT peripheral. As the RMT peripheral exhausts its buffer it sends an interrupt which then refills the buffer just in time. I tried to make the driver fairly generic and re-usable, but it hasn't been thoroughly tested. It currently sets up and manages the RMT directly since...
read more