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