from machine import ADC
import time
time.sleep(0.1) # Wait for USB to become ready
pot = ADC(0)
while True:
pot_value = pot.read_u16()
print(pot_value)
time.sleep(2)
from machine import ADC
import time
time.sleep(0.1) # Wait for USB to become ready
pot = ADC(0)
while True:
pot_value = pot.read_u16()
print(pot_value)
time.sleep(2)