Code: Select all
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, 2, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.show();
}
void loop() {
for (int x=0; x<=12; x++){
for (int y=255; y>0; y--){
uint32_t yellow = strip.Color(255, y, 0);
strip.setPixelColor(x, yellow);
strip.show();
}
}
}