Using Arduino, 2 wires, one pushbutton, and one led, and Arduino, turn on and off an LED (or anything else you decide to turn on and off).
Instead of using the typical button schematic using a pullup or pushdown resistor, like the Fritzing image, here's a way to get around that, using Arduino, and declaring the button pin as a digital input, but then writing HIGH to that digital input pin.
In the setup function:
LED from pin 13 to ground
Wire it like the schematic in the photograph:
Arduino pin 2 to the button pin.
the other side of the button is wired directly to ground.
Upload the following code: