#include <FastLED.h>
#define LED_PIN 2
#define LED_NUMS 80
CRGB leds[LED_NUMS];
void setup() {
// put your setup code here, to run once:
FastLED.addLeds<WS2812,LED_PIN,RGB>(leds,LED_NUMS);
}
void loop() {
// put your main code here, to run repeatedly:
/*for(int i=0;i<LED_NUMS;i++)
{
//fill_gradient_RGB(leds,0,CRGB::Red,5,CRGB::Blue);
//leds[i]=CRGB(random(255),random(255),random(255));
leds[i]=CRGB::Pink;
FastLED.show();
delay(5);
}*/
fill_solid(leds,16,CRGB::Green);
fill_solid(leds+16,16,CRGB::Red);
fill_solid(leds+32,16,CRGB::Blue);
fill_solid(leds+48,16,CRGB::Pink);
fill_solid(leds+60,16,CRGB::White);
FastLED.show();
delay(5);
}