from machine import ADC
from machine import Pin
from machine import sleep
pin = Pin(34, Pin.IN);
adc = ADC(pin);
while True:
val = adc.read_u16();
print("Значение потенциометра = ", adc.read_u16());
from machine import ADC
from machine import Pin
from machine import sleep
pin = Pin(34, Pin.IN);
adc = ADC(pin);
while True:
val = adc.read_u16();
print("Значение потенциометра = ", adc.read_u16());