import time
from machine import Pin
red = Pin(14, Pin.OUT)
green = Pin(13, Pin.OUT)
blue = Pin(12, Pin.OUT)
def turn_off_all():
red.off()
green.off()
blue.off()
# Blink RGB LED in sequence
while True:
# Red ON
turn_off_all()
red.on()
print("Red ON")
time.sleep(1)
# Green ON
turn_off_all()
green.on()
print("Green ON")
time.sleep(1)
# Blue ON
turn_off_all()
blue.on()
print("Blue ON")
time.sleep(1)