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

◆ loop()

void loop ( )

Definition at line 80 of file Blink.ino.

80 {
81 // Turn the LED on, then pause
82 for (int i = 0; i < NUM_LEDS; ++i) {
83 leds[i] = CRGB::Red;
84 }
85 FastLED.show();
86 delay(500);
87
88 // Now turn the LED off, then pause
89 for (int i = 0; i < NUM_LEDS; ++i) {
90 leds[i] = CRGB::Black;
91 }
92 FastLED.show();
93 delay(100);
94}
#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
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:622
@ 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::Red.