Skip to content

kmpelectronics/KMP_MCP23S08

Repository files navigation

KMP MCP23S08 library

Description

This is an Arduino library for a SPI expander MCP23S08. With this expander you can add 8 inputs or/and outputs to your board. More details about the MCP23S08 chip you can see here. We use this expander in our products:

Installation

Open Arduino IDE. From many selects Sketch -> Include Library -> Manage libraries. In Library Manager search for "KMP MCP23S08 library" and install the library.

Examples

With this library we provide following examples:

  • InputOutput. The example reads input state and set the same state to the output in this case a LED. When you press the button the LED is On.
  • RunningLeds. We set all pins as outputs and simulate running lights. Move LED from left to right and opposite.

KMP Electronics invests time and resources providing this open source code, please support KMP Electronics and open-source hardware by purchasing products from KMP Electronics!

License

This project is licensed under the MIT License, see LICENSE for further information.