Coding Circuit Playground Express

Once you've finished setting up your Circuit Playground Express with CircuitPython, you can access the code and necessary libraries by downloading the Project Bundle.

To do this, click on the Download Project Bundle button in the window below. It will download as a zipped folder.

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

from adafruit_led_animation.color import WHITE

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

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

pulse = Pulse(pixels, speed=0.05, color=WHITE, period=5)

while True:
    pulse.animate()

Upload the Code and Libraries to the Circuit Playground Express

After downloading the Project Bundle, plug your Circuit Playground Express into the computer USB port. You should see a new flash drive appear in the computer's File Explorer or Finder (depending on your operating system) called CIRCUITPY. Unzip the folder and copy the following items to the Circuit Playground Express CIRCUITPY drive. 

Your Circuit Playground Express CIRCUITPY drive should look like this after copying the lib folder and the code.py file.

This guide was first published on Aug 31, 2021. It was last updated on 2021-08-31 14:20:13 -0400.

This page (Code) was last updated on Sep 22, 2021.

Text editor powered by tinymce.