import time
from machine import Pin ,PWM ,ADC
ledr = PWM(Pin(5))
m = ADC(26)
ledr.freq(500)
while True:
ledr.duty_u16(m.read_u16())
import time
from machine import Pin ,PWM ,ADC
ledr = PWM(Pin(5))
m = ADC(26)
ledr.freq(500)
while True:
ledr.duty_u16(m.read_u16())