MCP2317 I2C 16 bit I/O expander

MCP2317 I2C 16 bit I/O expander

Hello World

Import programMCP_test

Example of how to use the library for the MCP23017 16 bit expander port for I2C.

Library

Import libraryMCP23017

Added support for banked registers

Pinout

Datasheet

http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf

Notes

The I2C I/O expander chip is similar to the SPI device MCP23S17.

DigiKey stocks and sells both SPI and I2C versions in a DIP for around $1.50.