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 251 of file FastLED.cpp.

251 {
252 unsigned long start = millis();
253 do {
254#ifndef FASTLED_ACCURATE_CLOCK
255 // make sure to allow at least one ms to pass to ensure the clock moves
256 // forward
257 ::delay(1);
258#endif
259 show();
260 yield();
261 }
262 while((millis()-start) < ms);
263}
void show()
Update all our controllers with the current led colors.
Definition FastLED.h:796
void delay(unsigned long ms)
Delay for the given number of milliseconds.
Definition FastLED.cpp:251

References delay(), and show().

Referenced by delay().

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