r/FastLED • u/ZachVorhies Zach Vorhies • Jan 04 '25
Announcements FastLED 3.9.9 Released - 16 way parallel for ESP32-S3

- ESP32
- Yves's amazing I2S driver for ESP32S3 is available through FastLED!
- 16 way parallel, I2S/LCD protocol.
- https://github.com/hpwit/I2SClockLessLedDriveresp32s3
- See the Esp32-S3-I2SDemo: https://github.com/FastLED/FastLED/blob/master/examples/Esp32S3I2SDemo/Esp32S3I2SDemo.ino
- RMT Green light being stuck on / Performance issues on the Wroom
- Traced it back to RMT disable/delete which puts the pin in floating input mode, which can false signal led colors. If you are affected by this, a weak pulldown resistor will also solve the issue.
- Fixed: FastLED no longer attempts to disable rmt between draws - once RMT mode is enabled it stays enabled.
- MAY fix wroom. If this doesn't fix it, just downgrade to RMT4 (sorry), or switch to a higher-end chipset. I tested the driver at 6.5ms draw time for WS2812 @ 255 pixels * 4-way parallel, which is the max performance on ESP32S3. It was flawless for me.
- Some internal cleanup. We are now header-stable with the 4.0 release: few namespace/header changes from this release forward.
- Yves's amazing I2S driver for ESP32S3 is available through FastLED!
Special thanks to Yves for the amazing work with the 16-way parallel driver. He's pushing the limits on what the ESP32-S3 is capable of. No joke.
If you are an absolute performance freak like I am, check out Yves's advanced version of this driver with ~8x multiplexing through "turbo" I2S:
https://github.com/hpwit/I2SClockLessLedVirtualDriveresp32s3
Happy coding!
27
Upvotes
4
u/sutaburosu [stavros] Jan 04 '25 edited Jan 05 '25
Initially I was very excited by your RMT result on the S3. I tested 256 LEDs * 4 pins with LEDs only on the first pin and saw >110Hz refresh too.
Then I swapped the addLeds<> lines around so the connected LEDs would show a different part of the effect. Only the first addLeds<> pin sees any output.
With 1 LED on the first pin and 3 pins * 256 LEDs I see refresh rates of 270Hz at default timings, which is clearly not realistic. It would probably be higher still, but the 6 error messages per show() on the Serial console are slowing things down even at 2Mbaud.
Trying
-DFASTLED_RMT5=0builds fine, but crashes at startup:I guess I'll learn how to use Yves' I2S driver now. I hope there are enough channels free to use an I2S mic too.
The single pin performance is great though, especially with overclocking. Having the ability to crossfade between effects built-in is handy. async show() is giving great benefits.
1
u/Lasersandleds Jan 06 '25
Can I apply this for apa102? I’m working on a POV piece and my frame rate seems to draw too slow for one strip. I would like to do 6 groups of 100 pixels in parallel. Is this possible using this mechanism on an S3?
1
u/11d_art Jan 11 '26
Is it possible to have RGB on one set of pins and RGBW on another set of pins at the same time?
Thanks!
1
u/lorenzo_mancini Jan 05 '25
Great news! I would really like to try this, but I'm getting a compile error. I created a new PlatformIO project, with this platformio.ini:
I copied 1:1 the demo source (https://github.com/FastLED/FastLED/blob/master/examples/Esp32S3I2SDemo/Esp32S3I2SDemo.ino) in a new main.cpp file. When building I get an undefined reference error at link time:
Which puzzles me because
clockless_i2s_esp32s3.cpp, the module withInternalI2SDriverclass, is built during compilation of FastLED, some lines above that error message (I can include full build output if needed).Do you have any advice? Thanks in advance!