void loop() {
int microsec =
200000 / leds.numPixels(); // change them all in 0.2 seconds
//normaly 2000000 aka 2seconds
// uncomment for voltage controlled speed
// millisec = analogRead(A9) / 40;
colorWipe(RED, microsec);
colorWipe(GREEN, microsec);
colorWipe(BLUE, microsec);
colorWipe(YELLOW, microsec);
colorWipe(PINK, microsec);
colorWipe(ORANGE, microsec);
colorWipe(WHITE, microsec);
}
void colorWipe(int color, int wait)
{
for (int i=0; i <
60; i++) {
//normally leds.numPixels()
leds.setPixel(i, color);
leds.show();
delayMicroseconds(wait);
}
}