Skip to content

Instantly share code, notes, and snippets.

@BenjaminSantiago
Last active September 22, 2021 06:32
Show Gist options
  • Save BenjaminSantiago/1a5961b8a379b1ebbf8618de412d6255 to your computer and use it in GitHub Desktop.
Save BenjaminSantiago/1a5961b8a379b1ebbf8618de412d6255 to your computer and use it in GitHub Desktop.
Use button A to light up the neopixels
"""
Here, we'll use the button to light up all the neopixels
"""
# --------------------------
from adafruit_circuitplayground import cp
# --------------------------
# --------------------------
while True:
if cp.button_a:
cp.pixels.fill((255,255,255))
# --------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment