//The only thing this does is light up each LED one by one in red, then clear them all and repeat.

#include <FastLED.h>

#define NUM_LEDS 512   // 8x32 matrix * 2
#define DATA_PIN D2    // Data pin for WS2812

CRGB leds[NUM_LEDS];  // Array of LEDs

void setup() {
  FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);  // Initialize FastLED
  FastLED.setBrightness(100);  // Set brightness (0-255)
}

void loop() {
  // Clear all LEDs
  FastLED.clear();

  // Enable each LED one by one
  for (int i = 0; i < NUM_LEDS; i++) {
    leds[i] = CRGB::Red;  // Set to a color (e.g., red)
    FastLED.show();  // Update the LED matrix
    delay(50);  // Adjust the speed of the LED lighting (lower = faster)
  }

  delay(1000);  // Hold the final state for a while before clearing
}