Skip to main content

CircuitPython library for controlling a MCP23008 or MCP23017 I2C GPIO expander.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython module for the MCP23017/08 I2C and MCP23S17/08 SPI I/O extenders.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-mcp230xx

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-mcp230xx

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-mcp230xx

Usage Example

See examples/mcp230xx_simpletest.py for a demo of the usage.

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Warning

Some people have reported an undocumented bug that can potentially corrupt the I2C bus. It occurs if an MCP230XX input pin state changes during I2C readout. This should be very rare. For more information, see this forum post and this knowledge base article .

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit-circuitpython-mcp230xx-2.5.11.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-mcp230xx-2.5.11.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-mcp230xx-2.5.11.tar.gz
Algorithm Hash digest
SHA256 c0eda614b2f4dd4c1f1a84b567653bd0fb1a5e5a26c5277403b9f81c574ad5e4
MD5 0203e29979e30fd7088b62be64b23233
BLAKE2b-256 5b2df09ad678f19536e32f92510608f2d65bb82b41460a8d71d10a986b73c407

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_mcp230xx-2.5.11-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_mcp230xx-2.5.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d386008ae9e47790865436b288ea2fabee3f981a0e9487a77fab247c2328280f
MD5 1ba5cbf14a9271390d3b3a99f4f411a1
BLAKE2b-256 77342519e88f78db8aca0df33a7e13b12ad248a2008280f4c9e1d255d5fa6a3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page