Back up any existing code or files you want to keep from your MagTag CIRCUITPY drive.

Fetch the files for our NextBus clock from Github:

Unzip this file after downloading.

The bitmaps and fonts folders should be copied into the CIRCUITPY root directory. If folders with these names already exist, copy the individual .BMP and .BDF files into the corresponding folders.

code.py and nextbus.py should also be copied to the CIRCUITPY root directory.

One of the files in the project folder — nextbus_routefinder.pydoes not get copied…that’s “full” Python code which we’ll use on the next page.

One additional file — secrets.py — isn’t distributed in the project folder…if you don’t already have this file from a prior MagTag project, we’ll create this file on the next page.

Here’s a map of all this project’s required images, fonts and code on the CIRCUITPY drive:

If you run out of space when copying items to CIRCUITPY: make a backup of any files currently on that drive, then delete files that aren’t related to this project to free up space.

This guide was first published on Nov 25, 2020. It was last updated on Nov 25, 2020.

This page (Install Code and Graphics) was last updated on Apr 10, 2021.

Text editor powered by tinymce.