Skip to content

Instantly share code, notes, and snippets.

@BenjaminSantiago
Last active September 22, 2021 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjaminSantiago/0cd16129cc5a93437a60f95084e005f9 to your computer and use it in GitHub Desktop.
Save BenjaminSantiago/0cd16129cc5a93437a60f95084e005f9 to your computer and use it in GitHub Desktop.
make it so the neopixels "glow"
from adafruit_circuitplayground import cp
import time
cp.pixels.brightness = 1
sleep_time = 0.001
while True:
for c in range(0, 256):
cp.pixels.fill((c, 0, c))
time.sleep(sleep_time)
for c in range(255, 0, -1):
cp.pixels.fill((c, 0, c))
time.sleep(sleep_time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment