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

◆ ready()

bool CEveryNMillisRandom::ready ( )
inline

Definition at line 1220 of file lib8tion.h.

1220 {
1221 uint32_t now = getTime();
1222 if (now - mPrevTrigger >= mPeriod) {
1223 mPrevTrigger = now;
1224 computeNext();
1225 return true;
1226 }
1227 return false;
1228 }
uint32_t getTime() const
Definition lib8tion.h:1218
uint32_t mPrevTrigger
Definition lib8tion.h:1200

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

+ Here is the call graph for this function: