Created
January 29, 2022 18:35
-
-
Save jaylandro/12541d588136747b72f7af9a50cfd91e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import time | |
import random | |
import board | |
import neopixel | |
pixels = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.3) | |
while True: | |
rgbVar = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) | |
pixels.fill(rgbVar) | |
time.sleep(0.5) | |
print(rgbVar) | |
pixels.fill((0, 0, 0)) | |
time.sleep(0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment