#include <Adafruit_NeoPixel.h>
int neo = 10;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, neo, NEO_GRB + NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
strip.begin();
strip.show();
}
void loop() {
// put your main code here, to run repeatedly:
colorWipe(strip.Color(255, 0, 0), 50);
colorWipe(strip.Color(0, 255, 0), 50);
colorWipe(strip.Color(0, 0, 255), 50);
}
void colorWipe(uint32_t c, int wait) {
for( int i=0; i<strip.numPixels(); i++){
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}