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

234 {
235 unsigned long start = millis();
236 do {
237#ifndef FASTLED_ACCURATE_CLOCK
238 // make sure to allow at least one ms to pass to ensure the clock moves
239 // forward
240 ::delay(1);
241#endif
242 show();
243 yield();
244 }
245 while((millis()-start) < ms);
246}
void show()
Update all our controllers with the current led colors.
Definition FastLED.h:745
void delay(unsigned long ms)
Delay for the given number of milliseconds.
Definition FastLED.cpp:234

References delay(), and show().

Referenced by delay().

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