Hey arduiners!! Im using several functions in my loop, one of them consists in some actions, one after the other, until it reaches a delay.
I guess that when the loop calls it, the rest of the program stop until it finishes all the instructions, including the delay.
I would like to use some trick so that it doesnt have to stop the rest of the program while this function is doing his instructions (including his large delay).
delay(...) is a problem. An approach based on millis() would help. You can NEVER do two things simultaneously but without the call to delay(...) the Arduino will probably be fast enough that being simultaneous won't matter.
If you need a tutorial on millis(), just ask. There are a couple that are frequently recommended.
vaj4088:
delay(...) is a problem. An approach based on millis() would help. You can NEVER do two things simultaneously but without the call to delay(...) the Arduino will probably be fast enough that being simultaneous won't matter.
If you need a tutorial on millis(), just ask. There are a couple that are frequently recommended.