#include <FastLED.h>
#define NUM_LEDS 1024 // Total number of LEDs (32x32)
#define DATA_PIN 2 // Pin connected to the data input of the LED strip
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
FastLED.clear(); // Initialize all LEDs to off
}
void loop() {
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = CRGB::White; // Turn on one LED (white in this case)
FastLED.show(); // Update the strip to reflect changes
delay(100); // Wait 100 milliseconds
leds[i] = CRGB::Black; // Turn off the LED after it lights up
}
}