hi guys
suppose i have 15 states
state1
state2
state3
state4 .... all the way to state15
how do i use the timer class to "automatically" go from state1 to state15 with
an interval of 5seconds. meaning display whatever i want to display in each
state for 5seconds.
ive been thinking of using for loops but i am not sure how to put it so that it
increments to different states.
ive also thought about setTimeout but that is kinda messy.i have to create
15functions with a setTimeout to the next state. i read that i can use
setTimeOut but im not sure how to go about. documentation says i should use
Timer class instead.