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

245 {
246 unsigned long start = millis();
247 do {
248#ifndef FASTLED_ACCURATE_CLOCK
249 // make sure to allow at least one ms to pass to ensure the clock moves
250 // forward
251 ::delay(1);
252#endif
253 show();
254 yield();
255 }
256 while((millis()-start) < ms);
257}
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:245

References delay(), and show().

Referenced by delay().

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