#include <FastLED.h>
#define NUM_LEDS_PER_STRIP 20
#define NUM_STRIPS 1
#define NUM_LEDS NUM_LEDS_PER_STRIP
CRGBArray <NUM_LEDS_PER_STRIP * NUM_STRIPS> leds;
CRGBSet PANEL_LED[] = {
leds(3, 0),
leds(3, 1),
leds(3, 2),
leds(3, 3),
leds(3, 4),
leds(3, 5),
leds(0, 3),
leds(4, 7),
leds(8, 11),
leds(12, 15),
leds(16, 19),
};
void setup() {
FastLED.addLeds<NEOPIXEL, 5>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.clear();
}
void loop() {
for (int set = 0; set < sizeof(PANEL_LED) / sizeof(PANEL_LED[0]); set++) {
PANEL_LED[set] = CRGB::Red;
FastLED.delay(500);
PANEL_LED[set] = CRGB::Black;
FastLED.delay(500);
}
}