Install Software

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.

Last updated on Feb 06, 2018 Published on Feb 01, 2018