FastLED 3.9.7
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>

Public Member Functions

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

Constructor & Destructor Documentation

◆ CMinWait()

template<int WAIT>
CMinWait< WAIT >::CMinWait ( )
inline

Constructor.

Definition at line 24 of file fastled_delay.h.

Member Function Documentation

◆ mark()

template<int WAIT>
void CMinWait< WAIT >::mark ( )
inline

Reset the timestamp that marks the start of the wait period.

Definition at line 35 of file fastled_delay.h.

◆ wait()

template<int WAIT>
void CMinWait< WAIT >::wait ( )
inline

Blocking delay until WAIT time since mark() has passed.

Definition at line 27 of file fastled_delay.h.


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