FastLED 3.9.15
Loading...
Searching...
No Matches

◆ trigger()

void CEveryNTime::trigger ( )
inline

Reset the timestamp so it is ready() on next call.

Definition at line 1160 of file lib8tion.h.

1160{ mPrevTrigger = getTime() - mPeriod; };
TIMETYPE mPeriod
Timing interval to check.
Definition lib8tion.h:1123
TIMETYPE getTime()
Get the current time according to the class' timekeeper.
Definition lib8tion.h:1135
TIMETYPE mPrevTrigger
Timestamp of the last time the class was "ready".
Definition lib8tion.h:1122

References getTime(), mPeriod, and mPrevTrigger.

+ Here is the call graph for this function: