MCPcopy Create free account
hub / github.com/FastLED/FastLED / delay

Method delay

src/FastLED.cpp.hpp:377–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377void CFastLED::delay(unsigned long ms) {
378 unsigned long start = fl::millis();
379 do {
380#ifndef FASTLED_ACCURATE_CLOCK
381 // make sure to allow at least one ms to pass to ensure the clock moves
382 // forward
383 fl::delay(1);
384#endif
385 show();
386 fl::yield();
387 }
388 while((fl::millis()-start) < ms);
389}
390
391void CFastLED::setTemperature(const CRGB & temp) {
392 CLEDController *pCur = CLEDController::head();

Callers 3

loopFunction · 0.45
loopFunction · 0.45

Calls 4

showFunction · 0.85
millisFunction · 0.70
delayFunction · 0.70
yieldFunction · 0.70

Tested by

no test coverage detected