Fix delay at end of game
This commit is contained in:
parent
c231919eb2
commit
0b6551ac52
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,6 @@ void setup() {
|
||||||
configure();
|
configure();
|
||||||
deactivateAll();
|
deactivateAll();
|
||||||
digitalWrite(LED_BUILTIN, LOW);
|
digitalWrite(LED_BUILTIN, LOW);
|
||||||
delay(2000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
@ -32,6 +31,8 @@ void loop() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delay(1200);
|
||||||
|
|
||||||
currentPosition += 1;
|
currentPosition += 1;
|
||||||
byte newItem = random(0, 4);
|
byte newItem = random(0, 4);
|
||||||
sequence[currentPosition] = newItem;
|
sequence[currentPosition] = newItem;
|
||||||
|
@ -41,6 +42,4 @@ void loop() {
|
||||||
win = false;
|
win = false;
|
||||||
over = true;
|
over = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(2000);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue