#include <FastLED.h>
#define LED_PIN 16
#define NUM_LEDS 9
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2811, LED_PIN, RGB>(leds, NUM_LEDS);
FastLED.clear();
FastLED.show();
// FADE-UP
for (int b = 0; b <= 140; b++) {
FastLED.setBrightness(b);
// Set color // Set color
for (int i = 0; i < 5; i++) leds[i] = CRGB::White;
leds[5] = CRGB::White; leds[5].nscale8(220);
leds[6] = CRGB::White; leds[6].nscale8(210);
leds[7] = CRGB::White; leds[7].nscale8(180);
leds[8] = CRGB::White; leds[8].nscale8(130);
FastLED.show();
delay(5); // Fade speed
}
}
void loop() {
FastLED.show();
delay(1000);
}