#include #define LED_PIN 3 #define NUM_LEDS 40 CRGB leds[NUM_LEDS]; int skyspeed = 3; int colors[25][3] = { {255, 255, 255}, {252, 210, 222}, {255, 140, 170}, {255, 140, 140}, {255, 80, 170}, {255, 70, 100}, {255, 50, 150}, {255, 40, 170}, {255, 40, 170}, {204, 45, 255}, {180, 45, 255}, {150, 50, 255}, {110, 50, 255}, {70, 50, 255}, {50, 50, 255}, {10, 20, 255}, {5, 10, 255}, {10, 30, 255}, {5, 30, 200}, {5, 10, 255}, {10, 20, 210}, {10, 30, 210}, {30, 50, 210}, {20, 40, 230}, {5, 10, 255}, }; void setup() { randomSeed(analogRead(0)); FastLED.addLeds(leds, NUM_LEDS); FastLED.setMaxPowerInVoltsAndMilliamps(5, 650); FastLED.clear(); FastLED.show(); Serial.begin(9600); } void loop() { for (int h = 0; h < 25; h ++) { for (int c = 0; c < 25; c ++) { leds[c+h].setRGB(colors[c][0], colors[c][1], colors[c][2]); delay(skyspeed); FastLED.show(); } } }