from machine import ADC,Pin
from utime import sleep
sleep(0.01)
pot=ADC(Pin(26))
while 1:
val=pot.read_u16()
volt=val/65535*3.3
temp=(volt-0.5)/0.01
print(val,volt,temp)
sleep(0.3)
from machine import ADC,Pin
from utime import sleep
sleep(0.01)
pot=ADC(Pin(26))
while 1:
val=pot.read_u16()
volt=val/65535*3.3
temp=(volt-0.5)/0.01
print(val,volt,temp)
sleep(0.3)