diff options
Diffstat (limited to 'tests/pyb/adc.py')
-rw-r--r-- | tests/pyb/adc.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pyb/adc.py b/tests/pyb/adc.py new file mode 100644 index 0000000000..7bed54e9f8 --- /dev/null +++ b/tests/pyb/adc.py @@ -0,0 +1,10 @@ +from pyb import ADC +from pyb import Pin + +adc = ADC('X22') +print(adc) + +adc.read() + +buf = bytearray(100) +adc.read_timed(buf, 500) |