Installing Blinka and CircuitPython libraries is very easy using Thonny. It has a built-in file transfer feature that makes copying the files very easy.

Using the File Transfer Interface

First you'll want to show the file transfer pane. You can get there by clicking View Files.

A files pane should appear on the left side of the main window. You can resize the elements to make it easier to see. Your local files should be at the top while the files on your Raspberry Pi Pico are on the bottom.

To upload, right-click on a folder or file, choose Upload to and it will upload to the current folder you are in on the Pico.

Install Blinka and PlatformDetect

Blinka and PlatformDetect are both required to run Blinka on MicroPython. Neither of them are included in the bundle, so you will need to download them from GitHub. You can download the latest releases from GitHub by following these links:

Click the Source code (zip) link to download.

Once you have downloaded the release files, go ahead and unzip them using your favorite zip utility software and place the files in a safe location such as your desktop.

Blinka, PlatformDetect, and libraries can be installed in either the root of the Pico or you can create a lib folder and copy the libraries inside of there.

To install the PlatformDetect, use Thonny's Files pane to navigate to the location where you unzipped the files and upload the adafruit_platformdetect folder to the Pico. 

To install the Blinka, navigate to the location where you unzipped the Blinka files and upload everything inside of the src folder to the Pico.

The easiest way to do that is to go inside of the src folder, highlight everything, right-click, and choose Upload to.

If you want to free up some more room, many of the linux board and microcontroller files can be removed under the adafruit_blinka folder. The only ones used by the Pico are the adafruit_blinka/microcontroller/rp2040.py and adafruit_blinka/board/raspberrypi/pico.py.

After you finish copying all of the files, this is what your Raspberry Pi Pico should look like.

Libraries in MPY format will not work in MicroPython. You'll need to use the libraries ending in .py.

Install CircuitPython Libraries

First start by downloading the latest CircuitPython library bundle from circuitpython.org.

Download the adafruit-circuitpython-bundle-py-*.zip bundle zip file, and unzip a folder of the same name. Inside you'll find a lib folder. The entire collection of libraries is too large to fit on the Raspberry Pi Pico. Instead, add each library as you need it, this will reduce the space usage but you'll need to put in a little more effort.

Like you did with Blinka and PlatformDetect, use Thonny's File Transfer system to navigate to the bundle folder. Select any library files or folders you want to transfer, and select Upload to.

This guide was first published on May 19, 2021. It was last updated on May 19, 2021.

This page (Installing Blinka and Libraries) was last updated on May 18, 2021.

Text editor powered by tinymce.