FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 48 of file BlinkParallel.ino.

48 {
49 // Turn the LED on, then pause
50 blink(CRGB(8,0,0), 1); // blink once for red
51 blink(CRGB(0,8,0), 2); // blink twice for green
52 blink(CRGB(0,0,8), 3); // blink thrice for blue
53
54 delay(50);
55
56
57
58 // now benchmark
59 uint32_t start = millis();
60 fill(CRGB(8,8,8));
61 FastLED.show();
62 uint32_t diff = millis() - start;
63
64 Serial.print("Time to fill and show for non blocking (ms): ");
65 Serial.println(diff);
66
67 delay(50);
68
69 start = millis();
70 fill(CRGB(8,8,8));
71 FastLED.show();
72 FastLED.show();
73
74 diff = millis() - start;
75 Serial.print("Time to fill and show for 2nd blocking (ms): ");
76 Serial.println(diff);
77}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86

References blink(), FastLED, and fill().

+ Here is the call graph for this function: