ESP32(clockless) + Wifi(ESP32WebServer)
When I dont define #define FASTLED_ALLOW_INTERRUPTS 0 program is working correctly. But wifi is not working at all.
If I define #define FASTLED_ALLOW_INTERRUPTS 0 wifi is working but leds are flickering randomly.
The program is not using any delays.
Any ideas?
I don’t use allow interupts on my 8266. I use WiFi and OTA updating. How many leds are you running? Sometimes my Webserver responds slowly and the lights will HAULT for a few seconds while it responds…but I’m ok with that, no glitching of leds though.
@Dominik_Micuta you could try this code from Jason (not sure whay you might have to do with it to get it working, not sure of the differneces in the 32 and 8266), it’s what I started with. He has another fork with some newer features but this is the one I’m currently running…still playing with the other, it’s more complex in features. https://github.com/jasoncoon/esp8266-fastled-webserver
@Trey_Coursey thanks for answers, I removed all of the disable interrupt and used the latest version of the esp32 fastled fork and the leds started to behave correctly. One of the strips that i have is still blinking but only if i set the full brightness so im currently running only 50/255
@Dominik_Micuta Great, so I’ve found from others that helped me that the last string blinking is almost certainly a power issue. Meaning you will need to hook up power straight from the PSU to that string as well. What I did on my setup of 3 strings (160 leds each) is to hook all of the strings end to end (all one string now) but run along side the led strings a 12 or 14 gauge 2 strand wire for power only. This is directly hooked up to the PSU and then injected or hooked into each beginning and end of strings. The power of the LEDS draws down the further down the line you get and at the end the last leds don’t have enough power/data to know what to do (simplest terms).
See if hooking 2 strand power +/- to the end of the last string that is glitching helps any, it should!
Also make sure your using same ground on board as your power supply. Meaning don’t run your board from USB power and LEDS from PSU, that will def give issues with glitchy weird things!