FastLED 3.9.15
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 }
fl::u32 getTime() const
Definition lib8tion.h:922

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

+ Here is the call graph for this function: