Skip to content

Instantly share code, notes, and snippets.

@furkanbakkal
Created January 10, 2022 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furkanbakkal/3bca32a22ad09ae0e6ed384a62187e30 to your computer and use it in GitHub Desktop.
Save furkanbakkal/3bca32a22ad09ae0e6ed384a62187e30 to your computer and use it in GitHub Desktop.
from neopixel import Neopixel
import time
numpix = 12 #number of neopixel leds
strip = Neopixel(numpix, 0, 0, "GRB")
color = (0, 255, 255) #specify colour as RGB
strip.brightness(25) #brigtness of neopixels led
for i in range(numpix):
strip.set_pixel(i, color) #setpixel(lednumber, colour)
strip.show() #show
time.sleep(sleep_time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment