Python module to interface with MCP2221 focused on ease of use.
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file easymcp2221-1.8.1.tar.gz
.
File metadata
- Download URL: easymcp2221-1.8.1.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e6d03e932721073a1af63ea63fde8e8fa7fd4b8e1437171b8d147c443f6e4eb |
|
MD5 | ce472332a1e013a10a58ad7d3ebd6c08 |
|
BLAKE2b-256 | f09cfebfb4423cc737b1d27ad23f98c8710dc3f5ec5afefea2d9d6058b61fd16 |
File details
Details for the file easymcp2221-1.8.1-py3-none-any.whl
.
File metadata
- Download URL: easymcp2221-1.8.1-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 097b7d60e24c194a5f8df9839a9cd15d13f9249d23f05d9d1c456167539bf257 |
|
MD5 | 4129f125d727620474b950df0ff34adf |
|
BLAKE2b-256 | b0e0794537e847acf0ec13b1ef4d7bf5c5810f8f6471ea229e150babe9380b28 |