What is.
This is a Microchip MCP2221(A) HID Library in python.
MCP2221 & MCP2221A work in Python.
Install
This library uses hitapi.
pip install hidapi
PyMCP2221A Install
pip install PyMCP2221A
Sample
from PyMCP2221A import PyMCP2221A
mcp2221 = PyMCP2221A.PyMCP2221A()
and More. SMBus (system management bus) compatible function
from PyMCP2221A import SMBus
bus = SMBus.SMBus()
Setup
Example
MCP2221 ADC : OK :
https://github.com/nonNoise/PyMCP2221A/blob/master/example/MCP2221_ADC.py
MCP2221 DAC : OK :
https://github.com/nonNoise/PyMCP2221A/blob/master/example/MCP2221_DAC.py
MCP2221 GPIO : OK :
https://github.com/nonNoise/PyMCP2221A/blob/master/example/MCP2221_GPIO.py
MCP2221 Interrupt : No :
MCP2221 Clock : OK :
https://github.com/nonNoise/PyMCP2221A/blob/master/example/MCP2221_ClockOUT.py
MCP2221 I2C : OK :
https://github.com/nonNoise/PyMCP2221A/blob/master/example/MCP2221_i2cdetect.py
https://github.com/nonNoise/PyMCP2221A/blob/master/example/MCP2221_EEPROM_WriteReadTest.py
License
The MIT License (MIT) Copyright (c) 2017 Yuta Kitagami (kitagami@artifactnoise.com,@nonnoise)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PyMCP2221A-1.4.0.tar.gz.
File metadata
- Download URL: PyMCP2221A-1.4.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ade5e4bc3eee4ef3550e747d4b9f84ee85577012385cb85ad380059939f6145e
|
|
| MD5 |
467edb71097955b84c9373b9f776192e
|
|
| BLAKE2b-256 |
f2f776fb522afc95363ff243ceec4a211adca08bddd161e524fe5f1df12fe784
|