Contains examples of using the MCP23017 integrated circuit with Arduino. The MCP23017 expands the I/O pins of the Arduino. The MCP23017 uses I2C communication with Arduino. These examples are as follows:
-
ReadingToSingleMCP23017WithAdafLib: Reads from the inputs of a single MCP23017 expander using the Adafruit-MCP23017-master library.
-
ReadingToSingleMCP23017WithWireLib: Reads from the inputs of a single MCP23017 expander using the Wire library.
-
WritingToSingleMCP23017WithAdafLib: Writes to the outputs of a single MCP23017 expander using the Adafruit-MCP23017-master library.
-
WritingToSingleMCP23017WithWireLib: Writes to the outputs of a single MCP23017 expander using the Wire library.
-
WritingToTwoMCP23017WithAdafLib: Writes to the outputs of two MCP23017 expanders using the Adafruit-MCP23017-master library. Values are sent to the outputs based on input from the Serial Monitor.
-
WritingToTwoMCP23017WithWireLib: Writes to the outputs of two MCP23017 expanders using the Wire library.
Programming Language: C/C++ Programming Language
IDE: Arduino IDE Version - 2.2.0
Arduino Used: Arduino Uno
Arduino Library: To use the Adafruit_MCP23017 library, include the Adafruit-MCP23017-master.zip file in your Arduino IDE.
Arduino Connection Diagram: The connection diagram is shown in the (Arduino-MCP23017 I2C Comm.png) image.