I’ve got a weird issue while using the FastLED library. I have an Uno board, a 10 led strip, a 10k potentiometer, and a tactile button. As the code below shows, I have a timer that changes the mode every 10 seconds. That works, however the timing is off. It is about 5-6 seconds when serial communication is off and about 8 when serial are on. What could be causing this?
Here is my sketch: http://pastebin.com/UtYTizZ2
and more simple code: http://pastebin.com/NVJVpfeA
I tested it with another Uno board, different power source (9v battery/USB), different sketches. I also made sure that the board works with a simple timer and no added libraries. on board led on and off every 10 seconds. What could be causing this difference in time?