ReadyToDie:
I have connected 5V to the button, and the other part of the button (switch) is connected to the digital port 2.
where is your pulldown resistor?
ReadyToDie:
I have connected 5V to the button, and the other part of the button (switch) is connected to the digital port 2.
where is your pulldown resistor?