Is it possible to run two different animations on two different LED strips concurrently from the same photon?
For example, I have a strip on which I want to run a torch animation continuously.
I have another strip on which I want to run a comet pattern continuously while intermittently changing patterns in response to cloud events.
How can I run these two codes on two separate threads of LED lights at the same time from a single photon?
but there are other things like Software Timers or more elabourate ways to do similar things, but this is a good trick of the trade to know.
The time slicing is implicit to non-blocking programming as your controller has limited cycles in which all jobs need to be done. Just keep your tasks short (or even interleave them) to prevent one cycle-hogging task from starving others.