Circuit Diagram

There are two different button configurations described below.

  1. The RPi.GPIO uses 1k resistors connected to the 3.3v rail 
  2. The CircuitPython code uses software pull ups.

CONFIG #1 - RPi.GPIO with 1k Pull Up Resistors

Important things to note:

Config #2 CircuitPython T-Cobbler

Note that we are not using pull up resistors and do not need to connect to the 3.3v rail. We can do direct pin to button and button to GND connections with CircuitPython configuration.

This guide was first published on Jul 29, 2012. It was last updated on 2018-12-08 16:32:10 -0500. This page (Circuit Diagram) was last updated on Dec 08, 2018.