pimoroni-pico-rp2350/micropython/examples/plasma_2350/rgb_led.py
2024-08-09 13:43:49 +01:00

16 lines
251 B
Python

from pimoroni import RGBLED
from time import sleep
# Setup the RGB Led
led = RGBLED(16, 17, 18)
# Cycle through RGB
while True:
led.set_rgb(255, 0, 0)
sleep(1)
led.set_rgb(0, 255, 0)
sleep(1)
led.set_rgb(0, 0, 255)
sleep(1)