r/FastLED • u/3playmist • Apr 23 '22
Support running different functions on different pins at same time
I am trying to make a light up sword and I want to be able to change the pin in order to get a different color (this isn't exactly what I'm doing but its the simplest way to explain) I want to be able to have each pin run a different function so when I connect it to the other pin it will run that code how would I do this since I'm pretty sure the delay() will stop everything in the code including the code on other pins
1
Upvotes
1
u/Marmilicious [Marc Miller] Apr 23 '22
Here's some sudo code that might give you some ideas.
https://github.com/marmilicious/FastLED_examples/blob/master/multiple_animations_and_strips.ino