kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.6k stars 347 forks source link

Static mode very slow color update #286

Closed silardg closed 3 years ago

silardg commented 3 years ago

I'm running the service in a separate task. When I change the main color that the static uses, it takes about 4-5 seconds till it updates. How can I "force a color check"?

moose4lord commented 3 years ago

In the case of the static effect, the speed parameter sets how often the color is updated. If speed=100, then the color will be updated every 100ms.

ws2812fx.setSpeed(100);
silardg commented 3 years ago

I'll try and report back. Thanks for the fast reply.

silardg commented 3 years ago

Still very slow, is there some force function?

moose4lord commented 3 years ago

Although you shouldn't need to, you can force the LEDs to update by calling the trigger() function.

ws2812fx.trigger();