r/FastLED • u/ZachVorhies Zach Vorhies • Dec 23 '25
Next update is delay'd due to new PARLIO driver for ESP32
In a nutshell: PARLIO stands for Parallel IO and its specialized hardware that can toggle multiple pins up and down at nano second resolution while the CPU does something else. It's awesome but hard to implement, but will make everyone's life better because it can run up to 16 channels while WIFI runs too, in theory.
Parlio driver is the next tech that espressif is recommending for LED driving on all ESP32 variants. It's a generalization of the I2S, LCD_I80 driver. Whats amazing is the very cheap ESP32C6 has it and it will produce 16 channels. Unlike the previous parallel drivers, this one aims to work with all chipsets instead of just WS2812.
Unlike the RMT driver, this one is fully DMA and in theory will be resistant to WIFI.
It's challenging because the driver has a 20-30us pause at the DMA memory boundary and this results in a one bit LED corruption. The parlio driver refuses to use hardware DMA queues and the next DMA buffer can only be queued via an interrupt, hence the 20-30us delay. I've been able to get that one bit corruption shifted over to the least significant bit, but I'm trying to eliminate it completely via padding at the DMA boundary.
I have a lot of hopes for this driver!
5
u/Secondary-2019 Dec 24 '25
This is exciting news. I have a bunch of ESP32-S3's, a few C3's and a C6. I have been learning about RP2040 PIO State Machines for driving lots of LEDs and now Parlio sounds like it is going to make the ESP32 boards work a lot better. Thanks for the info, and all the great things you are adding to FastLED!
3
u/CobaltEchos Dec 23 '25
I don't know what half this means, but really appreciate the work you put into this!
2
u/ewowi Dec 24 '25
Hi Zach, I implemented u/troyhacks his parlio.cpp module, which I saw you also looked at. See r/MoonModules for release v0.7.0 of MoonLight, see the video where I run it pretty okay, except for one thing, the colors seem to be slightly off to what it should be, it’s probably an issue in the LEDs array from my side. But no flickering so that’s an achievement already 😁. Could my issue be somewhat related to your timing challenges? Do you use Troy his timings ?
1
u/Yves-bazin Dec 24 '25
This is the wrapper of the existing i2s for esp32 and lcd_cam for the esp32s3. Having several dma buffers you can get ride of the WiFi interupts. But indeed if the new idf has a wrapper for all esp32 variant this will simplify the code. One idea if you have enough memory is the pre calculate the entire dma buffer and then push it. The issue you may encounter is when using psram because reading psram is slower than regular ram especially on esp32 or non octal psram on esp32s3