MCP23017-python
MCP23017 GPIO-Expander Python Library for RaspberryPi
Features
currently implemented features:
- set pin mode INPUT or OUTPUT
- set pin mode of all pins
- digital write pin HIGH or LOW
- digital read pin state
- digital read pin state of all pins
- enable interrupt on a pin
- enable interrupt on all pins
- enable interrupt mirroring of BANK_A and BANK_B
- read interrupt flags to see which pin triggered the interrupt
- read the interrupt capture value of the pin when the interrupt happened
Getting started
Setup a MCP23017 object
from mcp23017 import *
from i2c import I2C
import smbus
i2c = I2C(smbus.SMBus(1)) # creates a I2C Object as a wrapper for the SMBus
mcp = MCP23017(0x20, i2c) # creates an MCP object with the given address
Metadata
Release files for mcp23017 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp23017-1.1.0.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp23017-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / mcp23017-1.1.0.tar.gz
| Download URL | mcp23017-1.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68352c260290e04bf6de19adc2dc670f40c73b6c764fef0782dae58e4d4e928d
|
|
BLAKE2b-256 checksum How to use checksums |
0d27f647b73d53ce5d160962ad857d01bedc2a622c2b9deb4890db16936712e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / mcp23017-1.1.0-py3-none-any.whl
| Download URL | mcp23017-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc0fc10a460df4a68eb076c756fbbfcd168dbff78ac97431cdb4868b8fded222
|
|
BLAKE2b-256 checksum How to use checksums |
cb0a0c24f3727d341813880fc00d48ac5a2d9fb6157d4c5e8e4753c8c5636ee7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for mcp23017 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.