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 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results