#include <FastLED.h>
#define LED_PIN 7
#define NUM_LEDS 20
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i <= 19; i++) {
leds[i] = CRGB(45, 25, 190);
FastLED.show();
delay(20);
}
for (int i = 19; i >= 0; i--) {
leds[i] = CRGB(175, 22, 129);
FastLED.show();
delay(30);
for (int i = 19; i >= 0; i--) {
leds[i] = CRGB(215, 20, 101);
FastLED.show();
delay(40);
}
}
}