CircuitPython library for controlling a MCP23008 or MCP23017 I2C GPIO expander.
Project description
Introduction
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit-circuitpython-mcp230xx-2.5.9.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-mcp230xx-2.5.9.tar.gz
- Upload date:
- Size: 33.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f23b80a035f6d35482ce99fd014ed6908b5a54ea55b2de363b6493d99c7c7c9d |
|
MD5 | d1ba9ff9c6d20eb10f746aabaf2b5883 |
|
BLAKE2b-256 | 49d277f2e45dba4cbaa5b56189eb112777e60cf555f14c5334939d14691884a5 |
File details
Details for the file adafruit_circuitpython_mcp230xx-2.5.9-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_mcp230xx-2.5.9-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d90840f5ddc24cead038d7c9b8c6074bb5cbd821f95df472b3f516096c99a8 |
|
MD5 | f60381a3b66661e9eeb2139725337bc4 |
|
BLAKE2b-256 | b4d44174bfac1394f3ab7211e4433e25e58ce7c10aee98c244cdb040819cc744 |