r/FastLED • u/ZachVorhies Zach Vorhies • Nov 14 '24
Support FastLED 3.9.3 - Beta Release 3 for 4.0.0
Exciting update for you this week.
This release allows you to tweak the WS2812 timings for absolutely maximum performance for this chipset family. Infact any WS28XX chipsets can be hacked if you pretend it’s a WS2812 and override its timings. This was designed to help those with the new WS2812-V5B that just came to market, since the timings are different for this chipset.
We have stability improvements for the ESP32dev/C3/C6 for WS2812 and other clockless chipsets.
I’m also excited to announce that in the git master branch we have an eperimental option to boost the write speed for the APA102 chipset, and other spi based LEDs using the new ESP32 bulk SPI transfer api.
We also have numerous bug fixes.
If you aren’t interested in specifics, you can stop reading now.
Release Notes:
- ESP32C6 is now supported with the RMT5 driver without a #define hack. This chip does not use DMA and so must go through the non-DMA path for RMT. This is now automatic.
- RMT5 tweaks for ESP32
- For non DMA memory boards like the ESP32, ESP32C3, ESP32C6: RMT will now double the memory allocated per RMT worker, but is now limited 4 RMT workers unless you override it.
- This was the behavior for the RMT4.X drivers.
- This is done to reduce LED corruption when WIFI is enabled by mitigating buffer underflow conditions.
- NRF52: some bleeding edge boards that just came to market that even Arduino can’t compile. Well, unfortunately we can’t either, but now they are under a compile test to track their compatibility as we bring them up.
- WS2812 now allows user overrides of its timing values T1, T2, T3. This is to help debug timing issues on the new V5B of this chipset. You can define FASTLED_WS2812_T1, FASTLED_WS2812_T2, FASTLED_WS2812_T3 before you include FastLED.
Also in master there is a new feature for ESP32 which is a bulk transfer mode for the SPI controller.
Enable it like this:
#define FASTLED_ALL_PINS_HARDWARE_SPI
#define FASTLED_ESP32_SPI_BULK_TRANSFER 1
#include "FastLED.h"
Keep in mind that all this is an all-volunteer effort, no one is paying us to give you free stuff. If you want to keep the updates coming, please considering upvoting, like our repo and commenting. It really makes a difference!
Love you all! Happy coding!
10
u/ZachVorhies Zach Vorhies Nov 14 '24 edited Nov 14 '24
Also, I want to mention, it’s becoming apparent that the big secret features i’ve been keeping under wraps for the 4.0 release are starting to leak out.
I’ll make an official announcement about them when the time is right.
If you are into easter egg hunts then feel free to figure out what they are. If you find them and have issues, please DM me instead of posting about them on the reddit. I really do want to keep them under wraps for just a little bit longer as I stabilize the API.
2
u/tk-xx Nov 14 '24
I recently started playing with programmable LEDs for my Airsoft bomb devices, the problem I had was that I couldn't get my program to run along side a light show.
I.e if my program was a count down that waited for button presses to have interactions and I wanted the LEDs to start full and slowly change from blue to white as the time elapsed like an sand timer, I could program each to work independently but when I tried to get both to run at the same time one or the other wouldn't work.
It was as though the leds needed constant updates.
Is there a way to do this or a generic way of programming when using programming LEDs and other code?
5
u/Yves-bazin Nov 14 '24
Thank you for your work
1
u/cowdog360 Nov 14 '24
Any plans to create a FastLED library for the Pi Pico C/C++ SDK?
1
u/Tiny_Structure_7 Nov 17 '24
I'm studying OctoWS2811 code, and they have this:
T0H, T1H and TH plus TL (total clk period), come from the LED datasheet. What are T1, T2, and T3 in terms of the datasheet timing specs? I couldn't find this on the github page.
1
u/jerkoff_johnson Nov 17 '24
I was previously on version 3.5, quite old and my sketch came out to 13346 bytes. After updating to 3.9.3, the sketch came out to 15677 bytes. Seems quite a big jump in size, I haven't narrowed it down to which version yet though but it did cause me some issues as I was working with a Atmel168P which has size max of 14336 bytes.
3
u/Marmilicious [Marc Miller] Nov 14 '24
Thank you Zach
3
u/chemdoc77 Nov 14 '24
Hi u/ZachVorhies – Many thanks to you and others for keeping FastLED alive and well!
2
u/mguaylam Nov 14 '24
Incredible.
2
u/johnny5canuck Nov 14 '24
Awesome work! Looking forward to seeing what's in 4.0.
1
u/Secondary-2019 Nov 16 '24
Thank you so much for the amazing effort you are making to make FastLED even better!
I am curious about the WS2812-V5B. My sometimes buddy ChatGPT says the WS2812-V5B has reverse connection protection, the control chip is integrated into a 5050 SMD LED, it has a signal reshaper, and enhanced color consistency. This is all good stuff but ChatGPT says the data transmission speed is still 800KHz. I have learned the hard way to not believe everything ChatGPT spits out, so maybe it is wrong about this. Are there significant timing differences vs the standard WS2812B LED?