Here, when the button pressed, the 5v will be sent to pin 2. There's another way to set up a button, which would use the Arduino's internal pull up resistor. Here is ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results