Plug the Circuit Playground Express into a USB power supply or a battery pack with the JST battery port. The bat will power up and you'll see its wings start flapping, along with the NeoPixel comet animation.

There are a few parameters in the code that you can customize for different effects.

You can adjust the angle range (min_range and max_range) of the wings and the number of degrees that the wings move each time (degree_change) for different flapping effects.

You can change the color of the animation for the NeoPixels. You can also change the animation that shows on the NeoPixels. Check out the CircuitPython LED Animations guide to see the other options available in the library.

This guide was first published on Oct 25, 2022. It was last updated on Jun 18, 2024.

This page (Usage) was last updated on Mar 08, 2024.

Text editor powered by tinymce.