import time
from machine import Pin
led_morado = Pin(4,Pin.OUT)
while True:
led_morado.value(1)
time.sleep(2)
print("Led encendido")
led_morado.value(0)
print ("Led apagado")
time.sleep(0.5)
import time
from machine import Pin
led_morado = Pin(4,Pin.OUT)
while True:
led_morado.value(1)
time.sleep(2)
print("Led encendido")
led_morado.value(0)
print ("Led apagado")
time.sleep(0.5)