I am just learning Arduino right now. I am trying to make a program where you push a button to turn on an LED using digitalWrite. However, when I push the button the LED stays on even once I have let go of the button. I am not sure what is wrong because I followed a tutorial for this program. I have attached my code and picture of the wiring.
5 posts - 4 participants