You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FastLED Not working with New Board Manager 2.0.0 #1300
I am working on an esp32 Dev Module (Wroom-32) with Arduino IDE 1.8.16 with the latest version of Board Manger 2.0.0.
FastLED 3.4.0 does not compile correctly and LEDs don't work.
My solution is to go back to previous version of Board Manger 1.0.6.
This now works.
Are You also using neopixel and fastled together? If yes which versions do have installed? I have rolleback my IDF like you did to 1.0.6... but it doesn't work for me.
Actually, although I rolled back the board manager and got the Fastled working with WS2812 leds. I still seem to be having issues. I am just using Fastled (3.4.0) and not Adafruit Neopixels. These are my libraries:
I'm having similar problems. When you say the board manager are you referring to the Esp32 package within the Arduino Boards Manager, or the Arduino Boards Manager itself. If that is the case, how does one do that?
Click "Boards Manager"
Then in "Filter your Search" Type "esp32"
Select "Version" and Click "Install"
Additional Comment:
ALSO Beware of "Power Usage - Brown Outs".
My computer USB Voltage / Power is limited, so when using Wi-Fi and Leds (60) together. I can use up to 190 milliamps which may pull the voltage down to below ESP32 minimum limit.
Solution: Use "Thick and Short USB cable", not the cheap ones. Or power from Cell phone charger with plenty of power capacity.
Reset the FastLed BRIGHTNESS of the Leds to minimum acceptable amount, mine are set to 20 to reduce power usage.
It is a bit strang for me, because I had it working on IDF 2.0.0 but I had neopixel also running and I had to downgrade it, Soo I looked to use the newest versions of the librarys. Now I got IDF 1.0.6 and not the lastest neopixel. (see my topic) Fastled is the newest.
What is "IDF"? Do you mean IDE. "Integrated Development Environment (IDE) can be defined as software that gives its users an environment for performing programming, along with development as well as testing and debugging the application. Instead of doing different steps for making a fully working executable program, Integrated Development Environment comes as a package with all tools required."
What version of FastLED library are you using? I use fastLED version 3.4.0 (latest).
I am not sure what "IDF 2.0.0" and "IDF 1.0.6" you are referring to are. I assume you are referring to the Board Manager for the esp32. 1.0.6 is the older version (as my first post).
I am using the Arduino IDE version 1.8.16 (latest) with fastLED Library, version 3.4.0 (latest), but this does not seem compatible with new Board Manager, version 2.0.0, so I use the older Board Manager version 1.0.6. as described above.
Like I said, I used the all latest... except the Neopixel library, and it worked for me. Note, that I am not yet implemented the Wi-Fi for now. You need a task manager to accomplish that.
I am experiencing very strange problems with the default RMT driver on new SDK 2.0.0
Sometimes it works, sometimes after rebuild LEDs do not respond - FastLED.Show calls work . but performance appears to be slower. When it works I have like 100 LED FPS and when the problem appears, its about 50 FPS.
I even had crashes which disappeared after I switched to FastLED.Show()
So I got FastLED to work again but with I2S driver!
define FASTLED_ESP32_I2S true
However the I2S driver does random flickering on not controlled LEDs, which might be a problem. I would more like to use the RMT driver again which was working flawless in 1.0.6 but not anymore in 2.0.0 which means there must be a bug somewhere.
I think I found the root cause of this problem.
See PR #1308
I don't know why it wasn't happening on 1.0.6, all memory was properly initialized to 0 after reboot?
Since I applied this fix, it RMT driver has been working for me with 2.0.0
Activity
podaen commentedon Sep 28, 2021
Are You also using neopixel and fastled together? If yes which versions do have installed? I have rolleback my IDF like you did to 1.0.6... but it doesn't work for me.
Jpipe001 commentedon Sep 28, 2021
Actually, although I rolled back the board manager and got the Fastled working with WS2812 leds. I still seem to be having issues. I am just using Fastled (3.4.0) and not Adafruit Neopixels. These are my libraries:
#include <Arduino.h>
#include <FastLED.h>
#include <WiFi.h>
#include <WiFiMulti.h>
WiFiMulti wifiMulti;
#include <HTTPClient.h>
#include <WiFiClientSecure.h>
#include "time.h"
#include "ESPmDNS.h"
I am pretty sure that the problem is in the Fastled Library and this issue needs to be looked into.
ATLTVHEAD commentedon Sep 28, 2021
I'm having similar problems. When you say the board manager are you referring to the Esp32 package within the Arduino Boards Manager, or the Arduino Boards Manager itself. If that is the case, how does one do that?
Sorry for all the questions!
Jpipe001 commentedon Sep 28, 2021
A picture speaks 1000 words:

Click "Boards Manager"
Then in "Filter your Search" Type "esp32"
Select "Version" and Click "Install"
Additional Comment:
ALSO Beware of "Power Usage - Brown Outs".
My computer USB Voltage / Power is limited, so when using Wi-Fi and Leds (60) together. I can use up to 190 milliamps which may pull the voltage down to below ESP32 minimum limit.
Solution: Use "Thick and Short USB cable", not the cheap ones. Or power from Cell phone charger with plenty of power capacity.
Reset the FastLed BRIGHTNESS of the Leds to minimum acceptable amount, mine are set to 20 to reduce power usage.
ATLTVHEAD commentedon Sep 28, 2021
Thank you so much! @Jpipe001
podaen commentedon Sep 28, 2021
It is a bit strang for me, because I had it working on IDF 2.0.0 but I had neopixel also running and I had to downgrade it, Soo I looked to use the newest versions of the librarys. Now I got IDF 1.0.6 and not the lastest neopixel. (see my topic) Fastled is the newest.
Jpipe001 commentedon Sep 28, 2021
Hope that helped.
What is "IDF"? Do you mean IDE.
"Integrated Development Environment (IDE) can be defined as software that gives its users an environment for performing programming, along with development as well as testing and debugging the application. Instead of doing different steps for making a fully working executable program, Integrated Development Environment comes as a package with all tools required."
What version of FastLED library are you using? I use fastLED version 3.4.0 (latest).
I am not sure what "IDF 2.0.0" and "IDF 1.0.6" you are referring to are. I assume you are referring to the Board Manager for the esp32. 1.0.6 is the older version (as my first post).
I am using the Arduino IDE version 1.8.16 (latest) with fastLED Library, version 3.4.0 (latest), but this does not seem compatible with new Board Manager, version 2.0.0, so I use the older Board Manager version 1.0.6. as described above.
podaen commentedon Sep 28, 2021
Like I said, I used the all latest... except the Neopixel library, and it worked for me. Note, that I am not yet implemented the Wi-Fi for now. You need a task manager to accomplish that.
podaen commentedon Sep 28, 2021
Quot: You need a task manager to accomplish Wi-Fi.
At least that is what I read on the internet. But I had a project on the SDK 1.0.6 running without taskmanager.
alorbach commentedon Sep 29, 2021
I am experiencing very strange problems with the default RMT driver on new SDK 2.0.0
Sometimes it works, sometimes after rebuild LEDs do not respond - FastLED.Show calls work . but performance appears to be slower. When it works I have like 100 LED FPS and when the problem appears, its about 50 FPS.
I even had crashes which disappeared after I switched to FastLED.Show()
Somwething is not right.
alorbach commentedon Sep 30, 2021
So I got FastLED to work again but with I2S driver!
However the I2S driver does random flickering on not controlled LEDs, which might be a problem. I would more like to use the RMT driver again which was working flawless in 1.0.6 but not anymore in 2.0.0 which means there must be a bug somewhere.
podaen commentedon Sep 30, 2021
Did you unregistered the RMT?
alorbach commentedon Sep 30, 2021
How? Btw. RMT driver did work for some time and then it stopped working again while I was improving unrelated code.
alorbach commentedon Sep 30, 2021
Here I made a video from I2S driver, not used LEDs blink from time to time, it does not happen with RMT:
https://user-images.githubusercontent.com/1675286/135405935-cb94f000-a1a5-4a03-a1c4-ce08c95ad7a6.mp4
alorbach commentedon Oct 13, 2021
Any solution to the RMT Driver?
The I2S Driver is not useable due to massive flickering.
esp32: Fix unitialized flags field in init of the RMT driver
alorbach commentedon Oct 15, 2021
I think I found the root cause of this problem.
See PR #1308
I don't know why it wasn't happening on 1.0.6, all memory was properly initialized to 0 after reboot?
Since I applied this fix, it RMT driver has been working for me with 2.0.0
urish commentedon Oct 20, 2021
As far as I can tell, the
rmt_txvariable lives on the stack, so it just gets whatever value that was there before.A possible solution (which should also be future-proof) would probably be to initialize the variable when declaring it, e.g.
rmt_config_t rmt_tx = {}:esp32: Fix unitialized flags field in init of the RMT driver
esp32: Fix unitialized flags field in init of the RMT driver
esp32: Fix unitialized flags field in init of the RMT driver
esp32: Fix unitialized flags field in init of the RMT driver