#include <Adafruit_NeoPixel.h>
#define PIN 8
int Color_to_lit = 1;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.setBrightness(1000);
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
colorWipe(strip.Color(0, 0, 255), 500);
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}