pimoroni-pico-rp2350/micropython/examples/tiny_2350/rgb_led.py
2024-08-09 13:44:08 +01:00

16 lines
251 B
Python

from pimoroni import RGBLED
from time import sleep
# Setup the RGB Led
led = RGBLED(18, 19, 20)
# 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)