#include #define LED_PIN 9 #define COLOR_ORDER GRB #define CHIPSET WS2812 #define NUM_LEDS 64 #define BRIGHTNESS 64 CRGB leds[NUM_LEDS]; CRGB colors[] = {CRGB::White, CRGB::White, CRGB::Red ,CRGB::Green ,CRGB::Blue}; void setup() { FastLED.addLeds(leds, NUM_LEDS).setCorrection(TypicalSMD5050); FastLED.setBrightness( BRIGHTNESS ); } void loop() { int i=0; int j=0; for (j=0;j<=4;j++) { for (i=0;i<=NUM_LEDS;i++) { leds[i]= colors[j]; } FastLED.show(); delay(500); } }