kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.58k stars 344 forks source link

Esp8266 MQTT Problem #263

Closed AxellentAlex closed 3 years ago

AxellentAlex commented 3 years ago

Hi, I bought a D1 Mini (Esp8266) and connected it to my Led Strip (ws2812b). I added the WS2812FX library and tested the Example "auto_mode_cycle" and everything works fine but if I add it to my Mqtt Project, so I can controll the Leds with OpenHab no Effect works as it should execpt Static. (https://pastebin.com/r91DDaAJ).

moose4lord commented 3 years ago

In your loop() function you're constantly calling setMode(), which resets all the animation parameters. You should only call setMode() when the mode changes.

AxellentAlex commented 3 years ago

Thanks. I added an update check and that fixed it