FastLED 3.9.15
Loading...
Searching...
No Matches
CMinWait< WAIT > Class Template Reference

Detailed Description

template<int WAIT>
class CMinWait< WAIT >

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.

Template Parameters
WAITThe amount of time to wait, in microseconds

Definition at line 18 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

uint16_t mLastMicros
 Timestamp of the last time this was run, in microseconds.
 

The documentation for this class was generated from the following file: