From 6fc30899aedaa8f119c944d32621ecee0c08cc91 Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 25 Jan 2024 13:47:26 -0800 Subject: [PATCH] adding in boolean condition --- Main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Main.c b/Main.c index da1e674..0b8f59b 100644 --- a/Main.c +++ b/Main.c @@ -1,7 +1,7 @@ +#include #include #include -#include // these are based on the wiringPi pin numbers #define YELLOW_PIN 26 // GPIO 12 @@ -44,6 +44,10 @@ int main(int argc, char *argv[]) pullUpDnControl(BUTTON_PIN, PUD_UP); enum LED_STATE ledState = BLANK; + digitalWrite(YELLOW_PIN, LOW); + digitalWrite(GREEN_PIN, LOW); + digitalWrite(BLUE_PIN, LOW); + digitalWrite(RED_PIN, LOW); bool buttonPressed = false; while (1)