Go Down

Topic: Programming traffic light, want multiple loops at random (Read 7241 times) previous topic - next topic


Okay, so, is there a simple way to have multiple light routines?

Sure. Create different functions to make the lights do different things. Call the one that you want to see from loop(). You can use a switch to cycle through them, or randomly select one.

Go Up