FastLED 3.10.8
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 27 of file fastled_delay.h.

#include <fastled_delay.h>

+ Inheritance diagram for CMinWait< WAIT >:

Public Member Functions

 CMinWait () FL_NO_EXCEPT
 Constructor.
 
void mark () FL_NO_EXCEPT
 Reset the timestamp that marks the start of the wait period.
 
void wait () FL_NO_EXCEPT
 Blocking delay until WAIT time since mark() has passed.
 

Private Attributes

fl::u16 mLastMicros
 Timestamp of the last time this was run, in microseconds.
 

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