GPIO Expander Bonnet for Raspberry Pi Adafruit GPIO Expander Bonnet for Raspberry Pi provides 16x more digital input/output pins to the existing 40x I2C pins on the Pi board computer. The outputs are grouped into two 16-pin connectors with matching ground pins. Each pin can be set to be a digital output (high or low) or as an input with an internal pull-up if required. The GPIO Expander Bonnet connects to Raspberry Pi through SDA/SCL I2C pins for control. This bonnet can be programmed using the CircuitPython library, and the built-in MCP23017 chip converts Python commands to pin instructions.