from machine import Pin, ADC, PWM
POT_Value = ADC(0)
LED = PWM(Pin(7))
LED.freq(1000)
while True:
LED.duty_u16(POT_Value.read_u16())
from machine import Pin, ADC, PWM
POT_Value = ADC(0)
LED = PWM(Pin(7))
LED.freq(1000)
while True:
LED.duty_u16(POT_Value.read_u16())