FastLED 3.10.8
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 40 of file Test.ino.

40 {
41 EVERY_N_MILLIS(1000) {
42 Serial.println("Test loop!");
43 }
44#if defined(FASTLED_ESP32_IS_QEMU)
45 // Busy-wait under Espressif QEMU. delay() sleeps in vTaskDelay until a
46 // timer-alarm tick wakes the task; on a loaded host the emulator
47 // sometimes never delivers that wake-up and loop() stalls for good
48 // (FastLED#4845: ~1 s into the run, every local repro on esp32c3). The
49 // EVERY_N_MILLIS above still exercises millis().
51#else
52 delay(1); // Yield to the idle task (feeds the task watchdog).
53#endif
54}
#define EVERY_N_MILLIS(N)
Checks whether to execute a block of code every N milliseconds.
Definition lib8tion.h:1001
void delay(u32 ms, bool run_async=true) FL_NO_EXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98
void delayMicroseconds(u32 us) FL_NO_EXCEPT
Delay for a given number of microseconds.
#define Serial
Definition serial.h:309

References EVERY_N_MILLIS, and Serial.