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}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
Definition crgb.h:646
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:510

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