winter-special-projects / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
Other
0 stars 0 forks source link

Check ADC behaviour #6

Closed graeme-winter closed 1 year ago

graeme-winter commented 1 year ago

Check two connections, no reason to assume others are different - pot connected between +3.3V and GND ->

>>> from machine import Pin, ADC
>>> a = ADC(Pin("A8"))
>>> a.read_u16()
20688
>>> a.read_u16()
33408
>>> a.read_u16()
40544
>>> a = ADC(Pin("A7"))
>>> a.read_u16()
35104