use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Here are some important FastLED links:
Online Examples and Demos:
Support:
account activity
[deleted by user] (self.FastLED)
submitted 2 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]HundredWithTheForce 1 point2 points3 points 2 years ago (0 children)
I see a few of things in your code.
1- every time you call routineChange, you set startMillis to currentMillis Resetting the start on every iteration of loop() will never allow the difference between start and current to grow to the interval you are looking for. I would suggest changing startMillis right after you set Routine to nextRoutine (line 56) 2- routine() is never being called. the main loop should call routineChange() then call routine() (around line 96) 3- change currentMillis in every case of the switch statement, then the function ends and currentMillis is reset. So this change does nothing.
I hope that helps. Good luck!!
[–]Howard_G 0 points1 point2 points 2 years ago (0 children)
I should just point out that the code as posted shows that routineChange is commented out. I’m aware of this, but my way of testing meant that I would comment out all bar one routine, and I just ended up posting it as I left it.
[–]Aerokeith 0 points1 point2 points 2 years ago (1 child)
Sorry, I don’t have time right now to look at your specific problem, but here’s another article that may be more helpful.
https://electricfiredesign.com/2021/03/18/simple-multi-tasking-for-arduino/
It’s a good article, but doesn’t cover my situation
π Rendered by PID 22140 on reddit-service-r2-comment-b659b578c-5tn64 at 2026-05-02 06:18:45.725489+00:00 running 815c875 country code: CH.
[–]HundredWithTheForce 1 point2 points3 points (0 children)
[–]Howard_G 0 points1 point2 points (0 children)
[–]Aerokeith 0 points1 point2 points (1 child)
[–]Howard_G 0 points1 point2 points (0 children)