Hi,
Lets say I have 10 functions I would like to run, we can call them myFunction1 through myFunction10.
I want to run each function with a fixed interval between them, lets say 100ms:
But, I want to do this non blocking, as I have other functions that need to run as fast as possible in the main loop.
And suggestion on best method to do this? I've been playing with millis() and elapsedMillis for a few hours now and all I can do is scratch my head
Lets say I have 10 functions I would like to run, we can call them myFunction1 through myFunction10.
I want to run each function with a fixed interval between them, lets say 100ms:
Code:
myFunction1 ()
//wait 100ms
myFunction2()
//wait 100ms
myFunction3()
//wait 100ms
..........
But, I want to do this non blocking, as I have other functions that need to run as fast as possible in the main loop.
And suggestion on best method to do this? I've been playing with millis() and elapsedMillis for a few hours now and all I can do is scratch my head