From the course: Learning CircuitPython with Circuit Playground Express

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using external libraries

Using external libraries - Python Tutorial

From the course: Learning CircuitPython with Circuit Playground Express

Start my 1-month free trial

Using external libraries

- [Instructor] We've seen how to download the library bundle from circuitpython.org. Now we'll use one of the libraries from the bundle in a program. We're going to look at a library called adafruit_led_animation. The library makes it easy to show and control NeoPixel animations. One nice thing about this library is that beyond the Circuit Playground Express, it's simple to use the library with external NeoPixels. Before we look at the sample application, here are a few quick notes about how this library works. First, there are several animations built into the library. Each animation in the library requires a separate import statement. This allows you to import just the animations you want and reduces the amount of memory the library uses. Second, each animation you use is assigned to a variable while setting options for the animation. Finally, once the animation is set up, you frequently call the animate function…

Contents