From 4b6eb4fd5f1ceb8fc5080e80305f638249d23955 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 29 Apr 2021 16:33:12 +0200 Subject: [PATCH] Remove delay when waiting for button --- fastest_presser/src/main.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/fastest_presser/src/main.cpp b/fastest_presser/src/main.cpp index 8401183..752a8d4 100644 --- a/fastest_presser/src/main.cpp +++ b/fastest_presser/src/main.cpp @@ -82,7 +82,6 @@ byte computeWinner() { // Wait for a button press playerA = digitalRead(PLAYER_A); playerB = digitalRead(PLAYER_B); - delay(1); } if (playerA == LOW && playerB == HIGH) { return PLAYER_A; @@ -121,7 +120,6 @@ void waitForReady() { // Wait for a button press playerA = digitalRead(PLAYER_A); playerB = digitalRead(PLAYER_B); - delay(1); } if (playerB == LOW) {