Have Python 3 Installed

We assume you already have Python 3 installed on your computer. Note we do not support Python 2 - it's deprecated and no longer supported!

At your command line prompt of choice, check your Python version with python --version

Install hidapi

From the command line, manually install hidapi with

Download: file
pip3 install hidapi

Install Blinka

To install Blinka and its dependencies, run:

Download: file
pip3 install adafruit-blinka

Set Environment Variable

You must do this every time before running circuitpython code, you can set it permanently in windows if you like, for now just type into the same cmd window you're using with Python

set BLINKA_MCP2221=1

Check Platform was detected

In the same command window you set BLINKA_MCP2221=1 env var, run python and run

import board
dir(board)

at the Python REPL. If you get no errors, and you see a list of all the pins available - you're good to go!

This guide was first published on Dec 22, 2019. It was last updated on Dec 22, 2019. This page (Windows) was last updated on Feb 20, 2020.