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

◆ loop()

void loop ( )

Definition at line 32 of file ArrayOfLedArrays.ino.

32 {
33 // This outer loop will go over each strip, one at a time
34 for(int x = 0; x < NUM_STRIPS; x++) {
35 // This inner loop will go over each led in the current strip, one at a time
36 for(int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
37 leds[x][i] = CRGB::Red;
38 FastLED.show();
39 leds[x][i] = CRGB::Black;
40 delay(100);
41 }
42 }
43}
fl::CRGB leds[NUM_LEDS]
#define NUM_LEDS_PER_STRIP
#define NUM_STRIPS
int x
Definition simple.h:92
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_PER_STRIP, NUM_STRIPS, fl::CRGB::Red, and x.