import Pin, PWM,ADC
from machine
pwm =PWM(Pin(10))
adc = ADC(machine.Pin(28))
pwm.freq(1000)
while True:
duty = adc.read_u16()
pwm.duty_u16(duty)
import Pin, PWM,ADC
from machine
pwm =PWM(Pin(10))
adc = ADC(machine.Pin(28))
pwm.freq(1000)
while True:
duty = adc.read_u16()
pwm.duty_u16(duty)