You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
11 lines
128 B
Python
11 lines
128 B
Python
|
|
from pyb import ADC
|
||
|
|
from pyb import Pin
|
||
|
|
|
||
|
|
adc = ADC('X22')
|
||
|
|
print(adc)
|
||
|
|
|
||
|
|
adc.read()
|
||
|
|
|
||
|
|
buf = bytearray(100)
|
||
|
|
adc.read_timed(buf, 500)
|