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
>>> 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"
}
Documentation
Read the Install Guide, Examples and full API Reference in:
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
EasyMCP2221-1.5.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
Close
Hashes for easymcp2221-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8db7964be40018b20ccc1514e8bfb391280e87b0b0fe8f82f8df3f8d3e6ba0c |
|
MD5 | 1e0ae7092661e9bfd00e659a5f4aedb5 |
|
BLAKE2b-256 | 88c3494b4af64e4da11fc86d330abb023e1a95e587dd782f5220f9e61fb26d5c |