Arduino-Blinkenlight icon indicating copy to clipboard operation
Arduino-Blinkenlight copied to clipboard

How to change fade_speed on the fly?

Open Rimbaldo opened this issue 1 year ago • 3 comments

Hi! When using fadinglight, I need to change on the fly the time in ms that fade_speed changes, when using patterns. For instance, If I want to use a pattern blink that takes 2 seconds to be fully on and 2 seconds to be fully off, I need to decrease fade_speed to 2ms. But if I'll use 200 ms to be fully on and then 200 ms to be fully OFF, 30ms as fade_speed works better. So how can I, in the same code change the fade_speed?

Could Fade_speed be put as a parameter inside that speed Setting struct, that allows us to change the pattern blink settings on the fly?

Thanks a lot for your library!

Best Regards, Rodrigo

Rimbaldo avatar Jul 21 '24 22:07 Rimbaldo