#include <FastLED.h>
#define NUM_LEDS 240
CRGB led1[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812B, 9, GRB>(led1, NUM_LEDS);
FastLED.setBrightness(100);
}
void loop() {
for (int a = 0; a <= NUM_LEDS ; a++) {
led1[a] = CRGB(255, 0, 0);
FastLED.show();
delay(30);
}
for (int a = NUM_LEDS; a >= 0; a--) {
led1[a] = CRGB::Black;
FastLED.show();
delay(30);
}
}