#include <AH/Timing/MillisMicrosTimer.hpp>
A class for easily managing timed events.
A wrapper for "Blink
Without Delay".
- Template Parameters
-
time | The time function to use. |
- Examples
- 1.FilteredAnalog-Advanced.ino, 1.FilteredAnalog.ino, Blink-Frequency-Buttons.ino, and BlinkWithoutDelay-Timer.ino.
Definition at line 23 of file MillisMicrosTimer.hpp.
◆ Timer()
Timer |
( |
unsigned long |
interval | ) |
|
|
inline |
Constructor.
- Parameters
-
interval | The interval between two events. |
Definition at line 30 of file MillisMicrosTimer.hpp.
◆ begin()
Initialize or reset the timer. The timer will fire immediately.
Definition at line 36 of file MillisMicrosTimer.hpp.
◆ beginNextPeriod()
Initialize or reset the timer. The timer will fire after one period.
Definition at line 38 of file MillisMicrosTimer.hpp.
◆ operator bool()
◆ getInterval()
unsigned long getInterval |
( |
| ) |
const |
|
inline |
◆ setInterval()
void setInterval |
( |
unsigned long |
interval | ) |
|
|
inline |
◆ interval
◆ previous
unsigned long previous = 0 |
|
private |
The documentation for this class was generated from the following file: