Is it possible to multitask using multiple libraries based on certain parameters?
No.
Basically it would do LED loops without being themselves in a loop. so in theory they would run together, at the same time
Using what theory?
It's possible to blink a whole bunch of LEDs at the same time (or, near enough that you can't tell). As long as your fingers never stray near the d, e, l, a, and y keys in that order.
Arguing Uno runs 16 million processor instructions or second :-) you merely need to figure out some clever flag checks based programming to achieve the effect you want in the loop.... and I'll bet you'll actually need to add extra delay to actually slow arduino down enough to see the effect
You can do that sequence, but make it time based.
Each sequenece can be based on independent times.
Conceptually:
void loop(){
if (elapsed time for loop1 is met)
{
do the LED pattern
update counter to the next LED pattern for next pass
if (end of pattern?)
{
reset to the top of the pattern
}
}
if (elapsed time for loop2 is met)
{
do the LED pattern
update counter to the next LED pattern for next pass
if (end of pattern?)
{
reset to the top of the pattern
}
}
} // end of loop
They should change the name of delay(); to doNothing(); that would make more sense and let people realize easier its really only needed in a few places, not when you need a non stopping delay