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

◆ loop()

void loop ( )

Definition at line 81 of file FirstLight.ino.

81 {
82 // Move a single white led
83 for(int whiteLed = 0; whiteLed < NUM_LEDS; whiteLed = whiteLed + 1) {
84 // Turn our current led on to white, then show the leds
85 leds[whiteLed] = CRGB::White;
86
87 // Show the leds (only one of which is set to white, from above)
88 FastLED.show();
89
90 // Wait a little bit
91 delay(100);
92
93 // Turn our current led back to black for the next loop around
94 leds[whiteLed] = CRGB::Black;
95 }
96}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
Definition crgb.h:635
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:499

References CRGB::Black, FastLED, leds, NUM_LEDS, and CRGB::White.