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 18 of file fastled_delay.h.
#include <fastled_delay.h>
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 | |
uint16_t | mLastMicros |
Timestamp of the last time this was run, in microseconds. | |