Это старая версия документа!


Exp18.py
  1. from machine import Pin
  2. import time
  3. _init()
  4.  
  5. adc = machine.ADC(0)
  6.  
  7. while True:
  8. value = adc.read()
  9. print(value)
  10. time.sleep(1)