from machine import Pin, PWM, ADC
from utime import sleep
LED = PWM(Pin(15))
LED.freq(1000)
POT = ADC(26)
while True:
valor = POT.read_u16()
LED.duty_u16(valor)
sleep(0.01)from machine import Pin, PWM, ADC
from utime import sleep
LED = PWM(Pin(15))
LED.freq(1000)
POT = ADC(26)
while True:
valor = POT.read_u16()
LED.duty_u16(valor)
sleep(0.01)