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

Function delayMicroseconds

src/platforms/esp/32/platform_time_esp32.cpp.hpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void delayMicroseconds(fl::u32 us) {
32 // Split into ms (yielding via vTaskDelay) and remainder us (busy-wait)
33 fl::u32 ms = us / 1000;
34 fl::u32 remainder_us = us % 1000;
35 if (ms > 0) {
36 vTaskDelay(pdMS_TO_TICKS(ms));
37 }
38 if (remainder_us > 0) {
39 ::delayMicroseconds(remainder_us);
40 }
41}
42
43fl::u32 millis() {
44 return static_cast<fl::u32>(::millis());

Callers 8

showPixelsFunction · 0.70
~ChannelEngineSpiMethod · 0.50
waitAllDoneMethod · 0.50
clearLedsMethod · 0.50
showPixelsMethod · 0.50
showPixelsMethod · 0.50
showPixelsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected