Take your QT Py and plug it into your computer via a known good data + power USB cable. Your operating system will show a drive named CIRCUITPY when a board is plugged in. If you get a drive named QTPY_BOOT you'll likely need to install CircuitPython.

The QT Py with the SPI flash memory chip is called the "QT Py Haxpress" and uses different CircuitPython firmware from CircuitPython.org if you need to reflash it.

Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit QT Py M0 Haxpress with samd21e18

Install Libraries

You'll need a few CircuitPython libraries in the lib folder on the Feather CIRCUITPY drive for the code to work. Head to https://circuitpython.org/libraries to download the latest library bundle matching the major version of CircuitPython now on your board (6 for CircuitPython 6.x, etc.).

Once you've downloaded the libraries bundle, add these libraries to the lib folder on the Feather:

  • adafruit_led_animation
  • neopixel.mpy

Your QT Py CIRCUITPY drive should look like this after you load the code below.:

Upload Code

Once your QT Py is all setup with CircuitPython and the necessary libraries, you can click on the Download: Project Zip link below the code to get the files.

# SPDX-FileCopyrightText: 2021 Noe Ruiz for Adafruit Industries
# SPDX-License-Identifier: MIT

import board
import neopixel
from adafruit_led_animation.animation.pulse import Pulse
from adafruit_led_animation.color import RED

# Update to match the pin connected to your NeoPixels
pixel_pin = board.D1
# Update to match the number of NeoPixels you have connected
pixel_num = 6

pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=0.5, auto_write=False)

pulse = Pulse(pixels, speed=0.01, color=RED, period=1)

while True:

This guide was first published on Feb 09, 2021. It was last updated on Feb 09, 2021.

This page (Code) was last updated on May 15, 2022.

Text editor powered by tinymce.