import machine
from machine import Pin
from machine import PWM
#definimos salida
ledRojo = Pin(2,Pin.OUT)
pwm = PWM(ledRojo)
pwm.freq(50)
pwm.duty(1023)
import machine
from machine import Pin
from machine import PWM
#definimos salida
ledRojo = Pin(2,Pin.OUT)
pwm = PWM(ledRojo)
pwm.freq(50)
pwm.duty(1023)