Hello. Forever newbie here.

Hello. Forever newbie here. I’m trying to combine a Fastled Demo with rotary encoder code (here: https://gist.github.com/fasmide/9d820e615ac736501ce0e4c97594bbfd ) with the Cylon code (here: https://github.com/FastLED/FastLED/blob/master/examples/Cylon/Cylon.ino )

Basically the rotary encoder helps me switch between different patterns.

But once I add Cylon pattern to the code the rotary encoder does not work and cylon keeps running forever. Anyone can guide me towards a solution here?

I think after a bit of tweaking Sinelon works better and also accepts change with rotary encoder. Still curious about why it doesnt work it Cylon.

@turgan_s When you’re combining inputs with FastLED displays, you REALLY want to get rid of any delay statements in your display sequences.

Also, depending on the input library you’re using, you may run into interrupt problems, as found at:

This is why I use APA102 LED’s whenever I’m using any inputs beyond a basic switch and am working to eliminate delay statements from my old display sequences.