-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with FastLed since 3.0.0 #8054
Comments
Have you checked that all your libraries and dependencies are up-to-date, and updated them if they weren't? |
The keyword #if __cplusplus >= 201703L
#define register // keyword 'register' is banned with c++17
#endif |
I had similar issue with FASTLED and ESP core 3.0.0 here is my story incase anyone in the same boat: Hi guys, I just wanted to share my experience incase someone comes across the same issue. For the past few days, I had a strange issue with my ESP8266 FASTLED and WS2812B led. It has always worked without issue with Wifi and Over the Air update, until 3-4 days ago after about a year I updated my sketch and when uploaded, the "FIRST" LED was blinking (flickering) all the time! I tried everything from, Allow_Intrupt to 0 or 1 etc, adding resistor, capacitor you name it! nothing worked! Then I noticed the ESP BOARD was recently updated to version 3.0.0 ! in Arduino IDE I downgraded to version 2.7.4 and uploaded the exact same sketch, no issue! all working again. Just thought I share my experience in case someone out there is searching for this ! Cheers, |
That's interesting @Raul-7-7, this is similar and of course I was running the git version at that time, between 2.7.4 and 3.0.0. |
@d-a-v interesting, the post you have linked is EXACTLY what I was experiencing! any sketch, if I had WiFi on it, LED 0 flickered , no WiFi, all worked! when on Core 3.0.0 Here is something I also tried, it was flickering when OFF as well (LED 0) so when you sent Anyway, not sure what is causing it exactly, but for now. 2.7.4 is working great without the need to change pinmode or any other modification to the code. |
Same. I have two different projects based on the ESP-01 that have WS2812B LED strips connected to GPIO2. One is driving the LEDs at 3.3v and the other is using a level shifter to drive them at 5v. I upgraded both to v3 of the ESP8266 Arduino core library and LED 0 will show a random color and flicker. When I downgrade back to v2.7.4 the problem goes away. Both projects are using ESP8266WiFi, ESP8266mDNS, WiFiClient, ArduinoOTA, and Espalexa. |
@d-a-v David, I picked up a short 1m strip of WS2812B LEDs a couple of months ago if you'd like scope / logic analyzer captures of what's going on there. I can rig a photodiode or phototransistor over LED0 to use the 'flicker' as a trigger. Scope and logic analyzer are separate units, so I can't synchronize the two at the moment. I'm still waiting on the logic analyzer pod for my scope to arrive. I've seen that LED0 flicker mentioned elsewhere around the 'net before 3.0.0; one person used a 'sacrificial' WS2812B chip as a level-shifter to drive the rest of the strip to get around that. |
I'm not sure the issue is because of level shifter. Other ws281x libraries, maybe not as fast, work without flickering when WiFi is enabled. |
I'll take a look this weekend, purely comparing the signals into the first LED vs. what it feeds to the next in the string. I have some old tricks if I see fast glitches hitting the first LED. edit: FastLED/FastLED#1237 I'll be lucky if I can get it to compile and run |
I can compile my code with lots of warning but core 3.0 destroyed my FastLED procjets, it flickers like a mess, pretty unusable. |
It seems that the show() method has a timing issue, replacing it with my own code makes it work again. Since the last comment at the bug report is just 4 days old we might see a fix soon. |
Since I update the ESP-8266 Board to 3.0.0 i can't compile FastLed with my AZ-Delivery D1 Mini NodeMcu with ESP8266-12F.
Every FastLed-Line gives the error:
..........libraries\FastLED\chipsets.h:###:##: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
ESP-8266 Board 2.7.0 works fine.
Why??
The text was updated successfully, but these errors were encountered: