Once you've finished setting up your QT Py RP2040 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.

# SPDX-FileCopyrightText: 2022 Noe Ruiz for Adafruit Industries
# SPDX-License-Identifier: MIT
# Ghost with Glasses Neon Sign
import board
import neopixel
from adafruit_led_animation.animation.blink import Blink
from adafruit_led_animation.animation.comet import Comet
from adafruit_led_animation.animation.chase import Chase
from adafruit_led_animation.animation.pulse import Pulse
from adafruit_led_animation.group import AnimationGroup
from adafruit_led_animation.sequence import AnimationSequence
from adafruit_led_animation import color

ghost_pixels = neopixel.NeoPixel(board.SDA, 90, brightness=0.5,
    auto_write=False, pixel_order=neopixel.RGB)
glasses_pixels = neopixel.NeoPixel(board.SCL, 33, brightness=0.5,
    auto_write=False, pixel_order=neopixel.RGB)

animations = AnimationSequence(
    # Synchronized animations
    AnimationGroup(
        Chase(ghost_pixels,speed=0.02, color=color.CYAN, size=40, spacing=5),
        Blink(glasses_pixels, speed=.4, color=color.PURPLE),
        sync=False,
    ),

    # Sequential animations
    Pulse(glasses_pixels, speed=0.01, color=color.WHITE, period=2),

    # Synchronized
    AnimationGroup(
        Pulse(glasses_pixels, speed=0.01, color=color.PURPLE, period=1),
        Comet(ghost_pixels, speed=0.01, color=color.CYAN, tail_length=50, bounce=False),
        sync=True,
    ),

    advance_interval=4.0,
    auto_clear=True,
    auto_reset=True,
)

while True:
    animations.animate()
# SPDX-FileCopyrightText: 2022 Noe Ruiz for Adafruit Industries
# SPDX-License-Identifier: MIT
# Grim Reaper and Moon Neon Sign
import board
import neopixel
from adafruit_led_animation.animation.chase import Chase
from adafruit_led_animation.animation.pulse import Pulse
from adafruit_led_animation.group import AnimationGroup
from adafruit_led_animation.sequence import AnimationSequence
from adafruit_led_animation import color

knife_leds = neopixel.NeoPixel(board.SDA, 48, brightness=0.8,
    auto_write=False, pixel_order=neopixel.RGB)
repear_leds = neopixel.NeoPixel(board.SCL, 60, brightness=0.8,
    auto_write=False, pixel_order=neopixel.RGB)

animations = AnimationSequence(

    AnimationGroup(
        Chase(knife_leds, speed=0.02, color=color.PURPLE, spacing=12, size=40),
        Pulse(repear_leds, speed=0.01, color=color.GREEN, period=3),
        sync=True,
    ),
    advance_interval=8.0,
    auto_clear=True,
    auto_reset=True,
)

while True:
    animations.animate()
# SPDX-FileCopyrightText: 2022 Noe Ruiz for Adafruit Industries
# SPDX-License-Identifier: MIT
# Werewolf and Moon Neon Sign
import board
import neopixel
from adafruit_led_animation.animation.blink import Blink
from adafruit_led_animation.animation.comet import Comet
from adafruit_led_animation.animation.pulse import Pulse
from adafruit_led_animation.group import AnimationGroup
from adafruit_led_animation.sequence import AnimationSequence
from adafruit_led_animation import color

moon_leds = neopixel.NeoPixel(board.SDA, 60, brightness=0.8,
    auto_write=False, pixel_order=neopixel.RGB)
wolf_leds = neopixel.NeoPixel(board.SCL, 57, brightness=0.8,
    auto_write=False, pixel_order=neopixel.RGB)

animations = AnimationSequence(
    Blink(wolf_leds, speed=0.07, color=color.BLUE),
    Pulse(wolf_leds, speed=0.01, color=color.PURPLE, period=3),
    AnimationGroup(
        Pulse(wolf_leds, speed=0.01, color=color.PURPLE, period=3),
        Comet(moon_leds, speed=0.01, color=color.AMBER, tail_length=60, reverse=True),
        sync=True,
    ),
    AnimationGroup(
        Pulse(wolf_leds, speed=0.01, color=color.PURPLE, period=3),
        Pulse(moon_leds, speed=0.01, color=color.AMBER, period=3),
        sync=True,
    ),
    AnimationGroup(
        Pulse(wolf_leds, speed=0.01, color=color.PURPLE, period=3),
        Pulse(moon_leds, speed=0.01, color=color.AMBER, period=3),
        sync=True,
    ),
    advance_interval=2.0,
    auto_clear=True,
    auto_reset=True,
)

while True:
    animations.animate()

Upload the Code and Libraries to the QT Py RP2040

After downloading the Project Bundle, plug your QT Py into the computer's USB port with a known good USB data+power cable. 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 QT Py RP20402's CIRCUITPY drive. 

  • code.py
  • lib

Your QT Py RP2040 CIRCUITPY drive should look like this after copying the lib folder and the code.py file.

This guide was first published on Oct 25, 2022. It was last updated on Oct 25, 2022.

This page (Coding Neon Signs) was last updated on Mar 10, 2023.

Text editor powered by tinymce.