Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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.

Metadata

Release files for adafruit-circuitpython-mcp230xx 2.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-mcp230xx 2.6.2
File Size Uploaded
adafruit_circuitpython_mcp230xx-2.6.2.tar.gz 31.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-mcp230xx 2.6.2
File Interpreter ABI Platform
adafruit_circuitpython_mcp230xx-2.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 50.4 kB

Release files / adafruit_circuitpython_mcp230xx-2.6.2.tar.gz

Download URL adafruit_circuitpython_mcp230xx-2.6.2.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5c50bb8c326ea680c7f5784d0cdd9f3266c044db6b3d4fa93775ebe4e7485a3b
BLAKE2b-256 checksum
How to use checksums
be1967dd951a9ccd9cfc24e8512883fa9574b7c131ba9d00341e34847716a545
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_mcp230xx-2.6.2-py3-none-any.whl

Download URL adafruit_circuitpython_mcp230xx-2.6.2-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7efbc8b882a56274a144832eb66b0861edc3311061c9bffae5976736072b0909
BLAKE2b-256 checksum
How to use checksums
2edaa87cccc312c0fb196af0a7bf537576a7a698011dfdbf4e5ec80486a04ddc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

2.6.2 This release

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.19

2 release files

2.5.18

2 release files

2.5.17

2 release files

2.5.16

2 release files

2.5.12

2 release files

2.5.11

2 release files

2.5.10

2 release files

2.5.9

2 release files

2.5.8

2 release files

2.5.7

2 release files

2.5.6

2 release files

2.5.5

1 release file

2.5.4

1 release file

2.5.3

1 release file

2.5.2

1 release file

2.5.1

1 release file

2.5.0

1 release file

2.4.6

1 release file

2.4.5

1 release file

2.4.4

1 release file

2.4.3

1 release file

2.4.2

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.3

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.3

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page