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

◆ loop()

void loop ( )

Definition at line 30 of file ArrayOfLedArrays.ino.

30 {
31 // This outer loop will go over each strip, one at a time
32 for(int x = 0; x < NUM_STRIPS; x++) {
33 // This inner loop will go over each led in the current strip, one at a time
34 for(int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
35 leds[x][i] = CRGB::Red;
36 FastLED.show();
37 leds[x][i] = CRGB::Black;
38 delay(100);
39 }
40 }
41}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_STRIPS
#define NUM_LEDS_PER_STRIP
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:611
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:499

References CRGB::Black, FastLED, leds, NUM_LEDS_PER_STRIP, NUM_STRIPS, CRGB::Red, and x.