PyLeap will list the device enabled guides, including this one. Our first stop is using Glider (wireless file transfer) inside of PyLeap to work with BundleFly on the Adafruit Learning System to bundle up and send the files on over! The files include code.py and the libraries. For this proof-of-concept we're going to toss a rainbow on over to a Circuit Playground Bluefruit Express.

# SPDX-FileCopyrightText: 2021 Phillip Torrone for Adafruit Industries
#
# SPDX-License-Identifier: MIT

import time
import board
from rainbowio import colorwheel
import neopixel

pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=0.2, auto_write=False)
rainbow_cycle_demo = 1


def rainbow_cycle(wait):
    for j in range(255):
        for i in range(10):
            rc_index = (i * 256 // 10) + j * 5
            pixels[i] = colorwheel(rc_index & 255)
        pixels.show()
        time.sleep(wait)


while True:
    if rainbow_cycle_demo:
        rainbow_cycle(0.05)

This guide was first published on Jun 25, 2021. It was last updated on Oct 20, 2021.

This page (Glide on over to some Rainbows) was last updated on May 25, 2023.

Text editor powered by tinymce.