updated ansync timer

This commit is contained in:
Sean 2022-04-06 22:38:05 -04:00
parent 62666ebb8c
commit ad9de1e1e4

View file

@ -31,8 +31,13 @@ void rainbow_random() {
} }
} }
} }
currentTimer = 0;
maxTimer = 1875; // 30 ms
} }
if ( timerReset) {
for (byte x = 0; x <= 3; x++) { for (byte x = 0; x <= 3; x++) {
for (byte y = 0; y <= 3; y++) { for (byte y = 0; y <= 3; y++) {
for (byte z = 0; z <= 3; z++) { for (byte z = 0; z <= 3; z++) {
@ -47,6 +52,8 @@ void rainbow_random() {
} }
flushBuffer(); flushBuffer();
clearBuffer(); clearBuffer();
delay(30); //delay(30);
currentTimer = 0;
timerReset = false;
}
} }