#include <Adafruit_NeoPixel.h>
#define pin 6
Adafruit_NeoPixel ring=Adafruit_NeoPixel(48,pin,NEO_GRB+NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
ring.begin();
ring.show();
}
void loop() {
// put your main code here, to run repeatedly:
wipe(ring.Color(181,90,242),46);
wipe(ring.Color(77, 232, 118),46);
}
void wipe(uint32_t c, uint8_t wait ){
for(int i = 0; i<ring.numPixels(); i++ ){
ring.setPixelColor(i,c);
ring.show();
delay(30);
}
}
// https://www.youtube.com/watch?v=iCHVCKXWWSY