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

◆ delay()

void CFastLED::delay ( unsigned long ms)

Delay for the given number of milliseconds.

Provided to allow the library to be used on platforms that don't have a delay function (to allow code to be more portable).

Note
This will call show() constantly to drive the dithering engine (and will call show() at least once).
Parameters
msthe number of milliseconds to pause for

Definition at line 267 of file FastLED.cpp.

267 {
268 unsigned long start = millis();
269 do {
270#ifndef FASTLED_ACCURATE_CLOCK
271 // make sure to allow at least one ms to pass to ensure the clock moves
272 // forward
273 ::delay(1);
274#endif
275 show();
276 yield();
277 }
278 while((millis()-start) < ms);
279}
void show()
Update all our controllers with the current led colors.
Definition FastLED.h:819
void delay(unsigned long ms)
Delay for the given number of milliseconds.
Definition FastLED.cpp:267

References delay(), and show().

Referenced by delay().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: