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

◆ ready()

bool CEveryNMillisRandom::ready ( )
inline

Definition at line 1238 of file lib8tion.h.

1238 {
1239 uint32_t now = getTime();
1240 if (now - mPrevTrigger >= mPeriod) {
1241 mPrevTrigger = now;
1242 computeNext();
1243 return true;
1244 }
1245 return false;
1246 }
uint32_t getTime() const
Definition lib8tion.h:1236
uint32_t mPrevTrigger
Definition lib8tion.h:1218

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

+ Here is the call graph for this function: