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

◆ ready()

bool CEveryNMillisRandom::ready ( )
inline

Definition at line 924 of file lib8tion.h.

924 {
925 fl::u32 now = getTime();
926 if (now - mPrevTrigger >= mPeriod) {
927 mPrevTrigger = now;
928 computeNext();
929 return true;
930 }
931 return false;
932 }
void computeNext() FL_NO_EXCEPT
Definition lib8tion.h:916
fl::u32 getTime() const FL_NO_EXCEPT
Definition lib8tion.h:922

References computeNext(), FL_NO_EXCEPT, getTime(), mPeriod, and mPrevTrigger.

+ Here is the call graph for this function: