A class for easily managing timed events. More...
#include <MillisMicrosTimer.hpp>
Public Member Functions | |
| Timer (unsigned long interval) | |
| Constructor. More... | |
| void | begin () |
| Initialize the timer. More... | |
| operator bool () | |
| Update the timer and return true if the event should fire. More... | |
Private Attributes | |
| const unsigned long | interval |
| unsigned long | previous = 0 |
A class for easily managing timed events.
A wrapper for "Blink Without Delay".
| time | The time function to use. |
Definition at line 28 of file MillisMicrosTimer.hpp.
Constructor.
| interval | The interval between two events. |
Definition at line 35 of file MillisMicrosTimer.hpp.
|
inline |
Initialize the timer.
Definition at line 41 of file MillisMicrosTimer.hpp.
|
inlineexplicit |
Update the timer and return true if the event should fire.
Definition at line 43 of file MillisMicrosTimer.hpp.
|
private |
Definition at line 53 of file MillisMicrosTimer.hpp.
|
private |
Definition at line 54 of file MillisMicrosTimer.hpp.
1.8.16