Getting Started with CircuitPython

Are you new to using CircuitPython? No worries, there is a full getting started guide here.

Additionally, Adafruit has made life even easier for you with this getting started guide for the TrellisM4. If you need to install CircuitPython, go to that page and follow the steps.

The great news is that this isn't really any more complicated than copying files to a USB drive! Just make sure you put things in the right place!

Install Libraries

Check out the CircuitPython Libraries page of this guide for a detailed explanation of how to load the library bundle on your board.

For this project, you will also need to install the following libraries according to the instructions above:

  • adafruit_bus_device (folder)
  • adafruit_fancyled (folder)
  • adafruit_adxl34x.mpy (file)
  • adafruit_matrixkeypad.mpy (file)
  • adafruit_trellism4.mpy (file)
  • neopixel.mpy (file)

This will let us take advantage of the features of the TrellisM4, they keypad, the accelerometer, and the blinky lights - all of which we'll need.

Place the libraries in the /lib folder of your CIRCUITPY drive that shows up when the NeoTrellis M4 is connected to your computer via USB. If the lib folder is not on your CIRCUITPY drive, create the folder and place the needed libraries inside it.

The contents of the /lib folder should look like this:

This guide was first published on Feb 13, 2019. It was last updated on Jul 18, 2024.

This page (Install CircuitPython) was last updated on Mar 08, 2024.

Text editor powered by tinymce.