#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel pixels=Adafruit_NeoPixel(12, 5);
int delayval = 100;
int redColor = 0;
int greenColor = 0;
int blueColor = 0;
void setup() {
pixels.begin();
}
void loop() {
setColor();
for (int i=0; i < 12; i++) {
pixels.setPixelColor(i, pixels.Color(redColor, greenColor, blueColor));
pixels.show();
delay(delayval);
}
}
void setColor(){
redColor = random(0, 255);
greenColor = random(0, 255);
blueColor = random(0, 255);
}