srwi / FastLEDHub

Control multiple FastLED lightstrip animations on the ESP8266 and ESP32 without reuploading.
GNU Lesser General Public License v2.1
53 stars 2 forks source link

LEDs intermittingly not updating properly. #14

Open gootzte opened 1 year ago

gootzte commented 1 year ago

The use of Ticker for calling the handleInput() is causing intermitting updating issues with FastLED. I believe it may be related to the interrupts. I have tried using the flag so called flag FASTLED_ALLOW_INTERRUPTS with no success. After I removed the use of m_inputTicker and placed the handleInput() in the handler() function the updating issues vanished.

srwi commented 1 year ago

Thanks again for opening a bug report. Would it be possible for you to provide a minimal reproducible example of the issue along with the information about the device you are using? The suggested solution to the problem might lead to missed button presses in case the loop method of the active animation takes a relatively long amount of time so we would have to find another reliable solution for the problem.

I'll see when I get the time to dig into it. In the meantime, please let me know if anything comes to your mind!