After going through all the install steps for your OS, run these checks as simple tests to make sure everything is installed correctly. See the rest of the page for some potential hiccups you may run into.
Go ahead and plug in your MCP2221 to a USB port on your PC.
Most of these tests are done via the Python REPL, at the >>> prompt. To get there, simply launch Python:
$ python3 Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
import hid hid.enumerate()
You should get a dump of everything attached to your USB ports.
import hid device = hid.device() device.open(0x04D8, 0x00DD)
it should run without any errors:
If for some reason the MCP2221 can not be found, you might see something like this:
Check your USB cable connection. On linux based systems, this may be due to the udev rule not working and hitting a permissions issue. So double check theĀ udev rule setup.
import os os.environ["BLINKA_MCP2221"]
If you get a KeyError it means you did not set the environment variable right:
If you have set it correctly, you'll get a value back:
Page last edited January 15, 2025
Text editor powered by tinymce.