updated ansync timer
This commit is contained in:
parent
62666ebb8c
commit
ad9de1e1e4
1 changed files with 21 additions and 14 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue