FastLED 3.10.8
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 76 of file Blink.ino.

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

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