import time
from machine import Pin
rojo=Pin(0,Pin.OUT)
azul=Pin(2,Pin.OUT)
boton=Pin(27,Pin.OUT)
for i in range(5):
rojo.on()
time.sleep(0.5)
rojo.off()
time.sleep(0.5)
while True:
if boton.value()==0:
azul.on()
time.sleep(0.5)
azul.off()
time.sleep(0.5)
else:
print("apagate cosa er")
break
time.sleep(1)