Fix delay at end of game

This commit is contained in:
Gabriel Augendre 2021-04-30 08:10:21 +02:00
parent c231919eb2
commit 0b6551ac52

View file

@ -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);
} }