from machine import Pin
from utime import sleep
red=Pin (15, Pin.OUT)
gren= Pin(2, Pin.OUT)
blue= Pin(0, Pin.OUT)
def colors (r,g,b):
red.value(r)
green.value(g)
blue.value(b)
while True:
colors(0,0,0)
sleep(1)
colors(0,0,1)
sleep (1)