#include <Adafruit_NeoPixel.h>
#define PIN 8 // Define the pin where the data line is connected to
#define NUMPIXELS 32 // Define the total number of pixels you're using
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin(); // Initialize the strip
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
for(int i=0; i<strip.numPixels(); i++) {
// Turn on the i-th pixel with a color (in this case, red)
strip.setPixelColor(i, strip.Color(255,125 ,0));
strip.show(); // Display the pixel color
// Turn off the i-th pixel
strip.setPixelColor(i, strip.Color(0,0,0));
delay(30); // Delay for a period of time (milliseconds) to see the 'chase' effect
}
}