There are ten NeoPixel LEDs on your Circuit Playground Bluefruit. This project lights up all NeoPixels to flash purple and pink!

import time
import board
import neopixel

pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=0.2, auto_write=False)
PURPLE = (10, 0, 25)
PINK = (25, 0, 10)
OFF = (0,0,0)

while True:
    pixels.fill(PURPLE)
    pixels.show()
    time.sleep(0.5)
    pixels.fill(OFF)
    pixels.show()
    time.sleep(0.5)
    pixels.fill(PINK)
    pixels.show()
    time.sleep(0.5)
    pixels.fill(OFF)
    pixels.show()
    time.sleep(0.5)

This guide was first published on Jan 04, 2022. It was last updated on Jan 04, 2022.

This page (Blink Animation) was last updated on Dec 15, 2021.

Text editor powered by tinymce.