|
FastLED 3.9.15
|
Class to ensure that a minimum amount of time has kicked since the last time run - and delay if not enough time has passed yet.
| WAIT | The amount of time to wait, in microseconds |
Definition at line 21 of file fastled_delay.h.
#include <fastled_delay.h>
Inheritance diagram for CMinWait< WAIT >:Public Member Functions | |
| CMinWait () | |
| Constructor. | |
| void | mark () |
| Reset the timestamp that marks the start of the wait period. | |
| void | wait () |
| Blocking delay until WAIT time since mark() has passed. | |
Private Attributes | |
| fl::u16 | mLastMicros |
| Timestamp of the last time this was run, in microseconds. | |