Easy MCP2221 is a Python module to interface with Microchip MCP2221 and MCP2221A.
Connected to the USB port, this 14 pin chip part can provide a normal computer with the capabilities of a basic microcontroller.
MCP2221’s peripherals:
4 GPIO
3 channel ADC
DAC
I2C
UART
Clock Output
USB Wake-up via Interrupt Detection.
So you can practice the basics of digital electronics, microcontrollers, and robotics using nothing more than a regular computer, a breadboard, a few parts, and Python.
Quick start
Install:
$ pip install EasyMCP2221
First run:
>>> import EasyMCP2221
>>> mcp = EasyMCP2221.Device()
>>> print(mcp)
{
"Chip settings": {
"Power management options": "enabled",
"USB PID": "0x00DD",
"USB VID": "0x04D8",
"USB requested number of mA": 100
},
"Factory Serial": "01234567",
"GP settings": {},
"USB Manufacturer": "Microchip Technology Inc.",
"USB Product": "MCP2221 USB-I2C/UART Combo",
"USB Serial": "0000000000"
}
GUI
EasyMCP2221 Workbench is a GUI to play with MCP2221 and MCP2221A chips based on EasyMCP2221 library.
Documentation
Read the Install Guide, Examples and full API Reference here: https://easymcp2221.readthedocs.io/
Illustrative blog post with examples, pictures and schematics (spanish): El integrado MCP2221(A)
License
The MIT License (MIT).
Metadata
Release files for EasyMCP2221 1.8.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easymcp2221-1.8.4.tar.gz | 30.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easymcp2221-1.8.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.5 kB
Release files / easymcp2221-1.8.4.tar.gz
| Download URL | easymcp2221-1.8.4.tar.gz |
|---|---|
| Size | 30.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
361488c548322eeb0a887984826313cd2b2c3ff004acfea4ba1c41f753677ce9
|
|
BLAKE2b-256 checksum How to use checksums |
7b2257bf74b2cd1d10f60f457f673ed47a29f38fc3cd237b5f3e717896e3ca2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / easymcp2221-1.8.4-py3-none-any.whl
| Download URL | easymcp2221-1.8.4-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e0a274f1f30defd0ad9a30695fd2f4191c398378ee3f645735c4d015aecf2bb
|
|
BLAKE2b-256 checksum How to use checksums |
7a058017e2c4a004cccff910409073be786e21f0dc1e8b0f37a9de750039df79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|