Skip to content

Instantly share code, notes, and snippets.

View s1oane's full-sized avatar
💖

sloane s1oane

💖
View GitHub Profile
import time
import board
import neopixel
from digitalio import DigitalInOut, Direction, Pull
import touchio
touch_pad = board.A0
touch = touchio.TouchIn(touch_pad)
pixel_pin = board.D2
import time
import board
import neopixel
pixel_pin = board.D2
num_pixels = 16
pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.7, auto_write=False)
darkOrange = (122, 80, 0)
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)
darkOrange = (122, 80, 0) #RGB