Button Cell
Need:
- 2 tactile buttons
- 4 jumper wires
Setting up the buttons:
- Place the 2 tactile buttons onto the breadboard horizontally so that one is to the left of the other button.
- Using jumper wires, connect one side of each of the buttons to a GND port on the Raspberry Pi.
- Using one of the jumper wires, connect the other side of the left button to port 23 on the Raspberry Pi.
- Using the last jumper wire, connect the other side of the right button to port 18 on the Raspberry Pi.
[insert wiring diagram]
Running the program:
- Click the folder icon on the top left of the computer screen.
- Select the "button_test.py" program
- Click the play button on the top left of the computer screen.
- Try pressing the left and right buttons. You will see the '0' move left and right along the screen.