Install & Use

You’ll find adafruit_fancyled in the Adafruit CircuitPython Library Bundle, downloadable here if you don’t already have it:

Place the adafruit_fancyled folder in the “lib” folder on your USB-connected CircuitPython device. CircuitPython library installation is covered in more detail in the Welcome to CircuitPython guide.

At the start of your CircuitPython code, import the adafruit_fancyled library…you can “import as” and assign it a shorter name that’s easier to type, such as “fancy”:

import adafruit_fancyled.adafruit_fancyled as fancy

To work with NeoPixel strips on most pins, also import the “board” and “neopixel” libraries:

import board
import neopixel

For the built-in NeoPixels on Circuit Playground Express, import cpx from the adafruit_circuitplayground.express library (NeoPixel support is built-in as part of cpx):

from adafruit_circuitplayground.express import cpx

There are two example scripts, cpx_rotate.py (for Circuit Playground Express) and neopixel_rotate.py (for NeoPixels on any digital pin) that demonstrate the library in use.

This guide was first published on Feb 01, 2018. It was last updated on Jan 08, 2018.

This page (Install Software) was last updated on Jan 11, 2018.

Text editor powered by tinymce.