Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time # librería delay
- import board # librería placa
- import neopixel
- led = neopixel.NeoPixel(board.NEOPIXEL, 1) # Seteo de pin y cantidad de LEDs
- led.brightness = 0.5 # Brillo de 0 a 1 (1 es 100% y 0.5 es 50%)
- while True:
- led[0] = (255, 0, 0) # Valores RGB (R, G, B)
- time.sleep(0.5)
- led[0] = (0, 255, 0)
- time.sleep(0.5)
- led[0] = (0, 0, 255)
- time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement