Files
Core2forAWS-MicroPython/tests/pyb/adc.py
T

11 lines
128 B
Python
Raw Normal View History

from pyb import ADC
from pyb import Pin
adc = ADC('X22')
print(adc)
adc.read()
buf = bytearray(100)
adc.read_timed(buf, 500)