from machine import ADC,Pin
from time import sleep
#analog Pins are 26,27,28
pot = ADC(Pin(27))
while True:
#ADC value starts from 0 to 65535
value = pot.read_u16()
print(value)
sleep(0.5)
from machine import ADC,Pin
from time import sleep
#analog Pins are 26,27,28
pot = ADC(Pin(27))
while True:
#ADC value starts from 0 to 65535
value = pot.read_u16()
print(value)
sleep(0.5)