FastLED 3.9.15
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 35 of file fastled_delay.h.

35 {
37 do {
38 diff = (fl::micros() & 0xFFFF) - mLastMicros;
39 } while(diff < WAIT);
40 }
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()
Universal microsecond timer - returns microseconds since system startup.

References fl::micros(), and mLastMicros.

+ Here is the call graph for this function: