From 0b6551ac529b11348ecdd3bdb7c3ed4a4985894f Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 30 Apr 2021 08:10:21 +0200 Subject: [PATCH] Fix delay at end of game --- super_simon/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/super_simon/src/main.cpp b/super_simon/src/main.cpp index 0c5f97b..aca88b3 100644 --- a/super_simon/src/main.cpp +++ b/super_simon/src/main.cpp @@ -20,7 +20,6 @@ void setup() { configure(); deactivateAll(); digitalWrite(LED_BUILTIN, LOW); - delay(2000); } void loop() { @@ -32,6 +31,8 @@ void loop() { return; } + delay(1200); + currentPosition += 1; byte newItem = random(0, 4); sequence[currentPosition] = newItem; @@ -41,6 +42,4 @@ void loop() { win = false; over = true; } - - delay(2000); }