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

◆ loop()

void loop ( )

Definition at line 172 of file MultiArrays.ino.

172 {
173 for(int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
174 // set our current dot to red, green, and blue
175 redLeds[i] = CRGB::Red;
177 blueLeds[i] = CRGB::Blue;
178 FastLED.show();
179 // clear our current dot before we move on
180 redLeds[i] = CRGB::Black;
183 delay(100);
184 }
185
186 for(int i = NUM_LEDS_PER_STRIP-1; i >= 0; i--) {
187 // set our current dot to red, green, and blue
188 redLeds[i] = CRGB::Red;
190 blueLeds[i] = CRGB::Blue;
191 FastLED.show();
192 // clear our current dot before we move on
193 redLeds[i] = CRGB::Black;
196 delay(100);
197 }
198}
#define NUM_LEDS_PER_STRIP
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CRGB blueLeds[NUM_LEDS_PER_STRIP]
CRGB greenLeds[NUM_LEDS_PER_STRIP]
CRGB redLeds[NUM_LEDS_PER_STRIP]
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
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
Definition crgb.h:558
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:622
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Definition crgb.h:512
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:510

References fl::CRGB::Black, fl::CRGB::Blue, blueLeds, FastLED, fl::CRGB::Green, greenLeds, NUM_LEDS_PER_STRIP, fl::CRGB::Red, and redLeds.