100 unsigned long ms_delay;
101 unsigned long startTime;
millisDelay** implements a non-blocking, repeatable delay, see the detailed description.
void repeat()
repeat() Do same delay again but allow for a possible delay in calling justFinished()
unsigned long remaining()
How many ms remaining until delay finishes Returns 0 if finished or stopped.
void finish()
Force delay to end now.
bool justFinished()
Has the delay ended/expired or has finish() been called? justFinished() returns true just once when d...
void stop()
Stop the delay justFinished() will now never return true until after start(),restart() or repeat() ca...
void restart()
restart() Start the same delay again starting from now Note: use repeat() when justFinished() returns...
unsigned long delay()
The delay set in start.
bool isRunning()
Is the delay running, i.e.
void start(unsigned long delay)
Start a delay of this many milliseconds.
unsigned long getStartTime()
Returns the last time this delay was started, in ms, by calling start(), repeat() or restart() Return...