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

◆ ready()

bool CEveryNMillisRandom::ready ( )
inline

Definition at line 1100 of file lib8tion.h.

1100 {
1101 uint32_t now = getTime();
1102 if (now - mPrevTrigger >= mPeriod) {
1103 mPrevTrigger = now;
1104 computeNext();
1105 return true;
1106 }
1107 return false;
1108 }
uint32_t getTime() const
Definition lib8tion.h:1098
uint32_t mPrevTrigger
Definition lib8tion.h:1080

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

+ Here is the call graph for this function: