Currently, there are still some blocking function calls running that relies on using delay() for waiting before another function/event fires.
Using mills() combined with more program states instead of delay() we can eliminate all these blocking calls ensuring the main loops stays non-blocking.
See this tutorial for more details on millis() benefit over delay() and how to use it.
Currently, there are still some blocking function calls running that relies on using
delay()
for waiting before another function/event fires.Using
mills()
combined with more program states instead ofdelay()
we can eliminate all these blocking calls ensuring the main loops stays non-blocking.See this tutorial for more details on
millis()
benefit overdelay()
and how to use it.