#include #define LED_PIN 3 #define NUM_LEDS 150 CRGB leds[NUM_LEDS]; void setup() { FastLED.addLeds(leds, NUM_LEDS); FastLED.setMaxPowerInVoltsAndMilliamps(12, 500); FastLED.clear(); FastLED.show(); Serial.begin(9600); } void loop() { // Turn lights from green to blue from left to right R G B for (int a=0; a<5; a++){ for (int w=0; w<150; w++){ leds[w-1].setRGB(0,0,0); leds[w+0].setRGB(45,45,45); leds[w+1].setRGB(65,65,65); leds[w+2].setRGB(95,95,95); leds[w+3].setRGB(135,175,135); leds[w+4].setRGB(175,175,175); leds[w+5].setRGB(215,215,215); leds[w+6].setRGB(255,255,255); delay(500); FastLED.show(); } delay(5000); FastLED.show(); } }