1 2 3 4 5 6 7 8 9 10
from pyb import ADC from pyb import Pin adc = ADC('X22') print(adc) adc.read() buf = bytearray(100) adc.read_timed(buf, 500)