Last active
September 22, 2021 06:57
-
-
Save BenjaminSantiago/0cd16129cc5a93437a60f95084e005f9 to your computer and use it in GitHub Desktop.
make it so the neopixels "glow"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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