Button Cell

Need:

Setting up the buttons:

  1. Place the 2 tactile buttons onto the breadboard horizontally so that one is to the left of the other button.
  2. Using jumper wires, connect one side of each of the buttons to a GND port on the Raspberry Pi.
  3. Using one of the jumper wires, connect the other side of the left button to port 23 on the Raspberry Pi.
  4. 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:

  1. Click the folder icon on the top left of the computer screen.
  2. Select the "button_test.py" program
  3. Click the play button on the top left of the computer screen.
  4. Try pressing the left and right buttons. You will see the '0' move left and right along the screen.