Posts by matheusaf • 19 points
1 post
-
-1
votes1
answer57
viewsQ: Arduino leds lighting up without pressing the button
I don’t know why, but the leds light up even if I don’t press the button. int button = 12; int led1 = 2; int led2 = 3; int led3 = 4; int led4 = 5; int led5 = 6; int led6 = 7; int buttonState = 0;…