Timer
2.1
|
Classes | |
class | TimerAdapter |
class | Timer |
Functions | |
void | scheduleTimers () |
void | yield () |
void | delayAndSchedule (unsigned int delayMillis) |
void delayAndSchedule | ( | unsigned int | delayMillis | ) |
Delay the caller by the mentioned time while all timers are kept being scheduled in the meanwhile.
delayMillis | Time to wait in [ms] |
This function is kept for backward compatibility, you can use the arduino delay() function instead.
void scheduleTimers | ( | ) |
Schedule all timers, check their expiration states.
void yield | ( | ) |
Schedule all timers, check their expiration states.
The yield() function prototype is declared in arduino.h, and an empty weak implementation is defined in arduino/core/hooks.c. The linker will override the weak by this implementation.
Call this function from large loops in order to keep the timers keep being scheduled all the time. The arduino sleep() function calls this as well.