Skip to content

Instantly share code, notes, and snippets.

@alexanderlavrushko
alexanderlavrushko / NeoPixelConstantSum.py
Last active December 18, 2021 19:29
Animate NeoPixels and keep total brightness on the same level, make your eyes comfortable by avoiding blinks and flashes. Control with BluefruitConnect app. YouTube: https://youtu.be/09F7x-rpTm0
# NeoPixel animations with constant total brightness.
# Made for Circuit Playground Bluefruit
# Follow this guide to setup the board - https://learn.adafruit.com/adafruit-circuit-playground-bluefruit
#
# Can be controlled from Bluefruit LE Connect application - https://learn.adafruit.com/bluefruit-le-connect/ios-setup
# In the app:
# 1. Connect to CIRCUITPY device
# 2. In menu Controller => Control Pad:
# - Button 1 - set animation type "loop classic"
# - Button 2 - set animation type "loop chase" (it's set by default)