From 3cfc0022e021ddbd9ce67aced1d59af8f91878ba Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 25 Jan 2024 13:53:51 -0800 Subject: [PATCH] test --- Main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Main.c b/Main.c index c51aa74..4165cfc 100644 --- a/Main.c +++ b/Main.c @@ -52,6 +52,9 @@ int main(int argc, char *argv[]) while (1) { + printf("Button state: %d\n", digitalRead(BUTTON_PIN)); + continue; + if (digitalRead(BUTTON_PIN) == LOW && !buttonPressed) { printf("Button pressed\n"); @@ -100,7 +103,6 @@ int main(int argc, char *argv[]) } else { - printf("UNpressed\n"); buttonPressed = false; continue; }