Skip to main content
Help us improve Python packaging – donate today!

This is a Microchip MCP2221(A) HID Library by python3.

Project Description

=====================================================
PyMCP2221A
=====================================================

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

https://github.com/trezor/cython-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
----------------------------------------------------

.. image:: ./img/mcp2221.PNG

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)

Release history Release notifications

This version
History Node

1.3.1

History Node

1.3.0

History Node

1.2.0

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
PyMCP2221A-1.3.1.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None Mar 17, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page