The examples in this guide are no longer supported. Check out the MCP23xx guide for CircuitPython and Python usage: https://learn.adafruit.com/using-mcp23008-mcp23017-with-circuitpython/overview
While the Raspberry Pi packs and awful lot of punch for the price, and it's fairly flexible where HW expandability is concerned, there are situations where you might want a bit more basic digital IO. Thankfully, it's an easy problem to solve with an I2C-enabled device like the MCP23008 (for an extra 8 GPIO pins) or the MCP23017 (for an extra 16 GPIO pins). This tutorial will show you how you can get up and running quickly with either of these chips.
What You'll Need
- A Raspberry Pi Model B
- A Pi Cobbler Breakout
- An MCP23017 or MCP23008
- And LED and a resistor to test with if you don't have a DMM or an oscilloscope
- If you're not using Occidentalis, Adafruit's own Raspberry Pi distro, you'll also need to make sure your Pi is configured for I2C before running through this tutorial. (If you're using Occidentalis, I2C is already enabled, though, and you're ready to go!)
If you're not using Occidentalis, Adafruit's own Raspberry Pi distro, you'll also need to make sure your Pi is configured for I2C before running through our tutorial at http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c (If you're using Occidentalis, I2C is already enabled, though, and you're ready to go!)
Page last edited March 08, 2024
Text editor powered by tinymce.