FastLED 3.10.8
Loading...
Searching...
No Matches

◆ wait()

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

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

Definition at line 36 of file fastled_delay.h.

36 {
38 do {
39 diff = (fl::micros() & 0xFFFF) - mLastMicros;
40 } while(diff < WAIT);
41 }
fl::u16 mLastMicros
Timestamp of the last time this was run, in microseconds.
Class to ensure that a minimum amount of time has kicked since the last time run - and delay if not e...
fl::u32 micros() FL_NO_EXCEPT
Universal microsecond timer - returns microseconds since system startup.

References FL_NO_EXCEPT, fl::micros(), and mLastMicros.

+ Here is the call graph for this function: