#include <Adafruit_NeoPixel.h>
#define NEOPIXEL_PIN 27 // Define the data pin connected to the Neopixel Ring.
#define NUM_PIXELS 16 // Define the number of pixels in your Neopixel Ring.
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_PIXELS, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
// Example: fill the Neopixel Ring with a color (e.g., red).
colorWipe(strip.Color(255, 0, 0), 30); // Red
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t color) {
strip.setPixelColor(NUM_PIXELS, red);
strip.show();
delay(500);
}