#include <FastLED.h>
#define NUM_LEDS 16
#define LED 5
CRGB leds[NUM_LEDS];
void vermelho(){
for(int i=0; i<NUM_LEDS; i++){
leds[i] = CRGB::Red;
FastLED.show();
}
}
void setup() {
FastLED.addLeds<NEOPIXEL, LED>(leds, NUM_LEDS); //inicializa leds
}
void loop() {
vermelho();
delay(500);
for(int i=0;i<NUM_LEDS;i++){
leds[i]~= CRGB::Black;
FastLED.show();
}
delay(500);
}