ok i've understood.
i just want to make sequence of actions.
in that case i play with a servo... there is "normal" sequence and a "special" sequence.
all the sequence need a different setInterval
i want to stop one and start the other.
for sure i could use a flag to stop one action and let's play the other and have 2 setInterval started at the beginning.
i'm coming from Flash™ and animation software, therefor i'm thinking as an animator not as a developper... ;)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
ok i've understood.
i just want to make sequence of actions.
in that case i play with a servo... there is "normal" sequence and a "special" sequence.
all the sequence need a different setInterval
i want to stop one and start the other.
for sure i could use a flag to stop one action and let's play the other and have 2 setInterval started at the beginning.
i'm coming from Flash™ and animation software, therefor i'm thinking as an animator not as a developper... ;)
regards
thanks for your time.
éric