Skip to content

Instantly share code, notes, and snippets.

View 29liachen-pixel's full-sized avatar

29liachen-pixel

  • Joined Apr 28, 2026
View GitHub Profile
import board
import neopixel
import time
pixel_pin = board.D2 #the ring data is connected to this pin
num_pixels = 16 #number of leds pixels on the ring
pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False)
RED = (255, 0, 0) # RGB