From 2c95299010e68d129a7be1c62d2e2f9af2561e53 Mon Sep 17 00:00:00 2001 From: sanni Date: Tue, 1 Nov 2022 22:50:14 +0100 Subject: [PATCH] Turn LED off when rotary button is pressed --- Cart_Reader/Cart_Reader.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index b0bbfed..b8c7d0e 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -2929,6 +2929,7 @@ int checkButton() { buttonState = reading; // Button was pressed down if (buttonState == 0) { + setColor_RGB(0, 0, 0); unsigned long pushTime = millis(); // Wait until button was let go again while ((PING & (1 << PING2)) >> PING2 == 0) {