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

Function delay

src/wiring.cpp.hpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void delay(unsigned long ms)
89{
90 fl::u16 start = (fl::u16)micros();
91
92 while (ms > 0) {
93 if (((fl::u16)micros() - start) >= 1000) {
94 --ms;
95 start += 1000;
96 }
97 }
98}
99
100#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
101void init()

Callers 15

delayMethod · 0.70
testabsFunction · 0.70
testmul8Function · 0.70
testscale8Function · 0.70
testqadd8Function · 0.70
testnscale8x3Function · 0.70
loopFunction · 0.50
FL_TEST_FILEFunction · 0.50
FL_TEST_FILEFunction · 0.50
FL_TEST_FILEFunction · 0.50
FL_TEST_FILEFunction · 0.50
mainFunction · 0.50

Calls 1

microsFunction · 0.70

Tested by 8

testAllDriversMethod · 0.40
runTestPatternsMethod · 0.40
verifyJumperWireFunction · 0.40
testRxChannelSanityFunction · 0.40
setupFunction · 0.40
loopFunction · 0.40