Это старая версия документа!
from machine import Pinimport time_init() adc = machine.ADC(0) while True: value = adc.read() print(value) time.sleep(1)