53 {
54 static int loopCount = 0;
55
57 loopCount++;
58 FL_WARN(
"Starting loop iteration " << loopCount);
59
60
61 if (loopCount >= 2) {
62 FL_WARN(
"FL_WARN test finished - completed " << loopCount <<
" iterations");
63 }
64 }
65
66
70
71 delay(50);
72
73
74 uint32_t start = millis();
77 uint32_t diff = millis() - start;
78
79 Serial.print("Time to fill and show for non blocking (ms): ");
80 Serial.println(diff);
81
83 FL_WARN(
"FastLED.show() timing: " << diff <<
"ms");
84 }
85
86 delay(50);
87
88 start = millis();
92
93 diff = millis() - start;
94 Serial.print("Time to fill and show for 2nd blocking (ms): ");
95 Serial.println(diff);
96}
void blink(CRGB color, int times)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Representation of an RGB pixel (Red, Green, Blue)