#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, Butterworth.ino, FIRNotch.ino, MedianFilter.ino, and SimpleMovingAverage.ino.
Definition at line 28 of file MillisMicrosTimer.hpp.
◆ Timer()
Timer |
( |
unsigned long |
interval | ) |
|
|
inline |
Constructor.
- Parameters
-
interval | The interval between two events. |
Definition at line 35 of file MillisMicrosTimer.hpp.
◆ begin()
Initialize or reset the timer. The timer will fire immediately.
Definition at line 41 of file MillisMicrosTimer.hpp.
◆ beginNextPeriod()
Initialize or reset the timer. The timer will fire after one period.
Definition at line 43 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: