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

◆ loop()

void loop ( )

Definition at line 43 of file BlinkParallel.ino.

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

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

+ Here is the call graph for this function: