How to run two LED functions at one time

Not sure this is even possible. If I am lighting a strip of 150 LEDs and I want to do something simple like the running lights example here on LEDs 50 to 120. That is a fairly simple thing for me to do.

But; if I want to do something different for LEDs 25-49 and 121-140 (like the fade in/out code here) at the same time I can't seem to get it to work.

It's likely how I'm writing the code; but I'm at a loss for how to do both simultaneously.

I was hoping someone here may know of a way to do this and maybe point me to an example or two?

TIA

Yes perfect possible. You need to write your code as a state machine. See the blink without delay example in the IDE.

Also see this http://forum.arduino.cc/index.php?topic=503368.0

Thanks Again Mike! :slight_smile: