Reminder: You must power down your Pi before plugging any connector into the 5v or 3.3v pins. You can damage and even kill the pi if you don't power it down before plugging something to the pins.
Power down your pi.
Plug in your “T-Cobbler Plus” connector, as shown.
Make sure you get the connector plugged in exactly over the pins as shown! Do not twist the cable/miss any pins, or it will not work.
Make sure the switch spans the gap of the breadboard. This will place each leg on its own row.
Connect one side of the switch to an input pin on the Raspberry Pi. In this case we use pin 19.
Connect the other side of the switch to and GND.
Open the editor “Thonny Python IDE”
Open the file from your downloaded examples : button.py
You may want to save a copy so you have the original.
Press “Run” in Thonny.
When you press the button you should see "button pressed" in the debug window.
Press “stop” to stop running the file.
Challenges
Can you add an LED to GPIO18 and have the LED turn on when you press the button?
Can you add an LED to GPIO18 and have the LED flash when you press the button?
Can you add a 2nd button to a different GPIO pin and have it print something different?
Can you add a 2nd button to a different GPIO pin and have a different message print on both buttons AND have a message print only when both buttons are pressed?