from machine import Pin
from utime import sleep
rojo= Pin(32, Pin.OUT)
verde= Pin(26, Pin.OUT)
azul= Pin(12, Pin.OUT)
def XD(a, b, c):
rojo (not a)
verde (not b)
azul (not c)
while True:
XD(1, 0, 0); print ("Rojo") ; sleep (2)
XD(0, 1, 0); print ("Verde") ; sleep (2)
XD(0, 0, 1); print ("Azul") ; sleep (2)
XD(1, 0, 1); print ("Morado") ; sleep (2)
XD(0, 1, 1); print ("Celeste") ; sleep (2)
XD(1, 1, 0); print ("Amarillo") ; sleep (2)
XD(1, 1, 1); print ("Blanco") ; sleep (2)
XD(0, 0, 0); print ("Ninguno") ; sleep (2)