From 6dee9bf6b66927b9a4384974f39f307baef957e9 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 6 Mar 2022 20:03:18 +0100 Subject: [PATCH] Fix sound randomly on or off at startup --- super_simon/src/utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/super_simon/src/utils.cpp b/super_simon/src/utils.cpp index 37aebe3..cafa280 100644 --- a/super_simon/src/utils.cpp +++ b/super_simon/src/utils.cpp @@ -14,6 +14,7 @@ const uint16_t TONES[] = {TONE_GREEN, TONE_YELLOW, TONE_BLUE, TONE_RED}; bool soundEnabled = true; void configure() { + pinMode(BUTTON_GREEN, INPUT_PULLUP); if (buttonIsPressed(GREEN_INDEX)) { soundEnabled = false; }