#include "FastLED.h" // include the FastLED library
#define LED_COUNT 104 // number of LEDs in the strip
#define DATA_PIN 3 // pin to which the LED strip is connected
CRGB leds[LED_COUNT]; // create an array of LEDs
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, LED_COUNT); // initialize the LED strip
randomSeed(analogRead(0)); // initialize the random number generator
}
void loop() {
// iterate over each LED
for (int i = 0; i < LED_COUNT; i++) {
// set the LED to a random color
leds[i] = CHSV(random(256), 255, 255);
FastLED.show(); // show the updated LED colors on the strip
delay(40); // wait for 100 milliseconds
}
}