summaryrefslogtreecommitdiff
path: root/py/objnamedtuple.h
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-06-05 10:34:23 +0200
committerDamien George <damien@micropython.org>2022-10-06 22:41:44 +1100
commit5c7e93ec48b04a6a049cc7f2ec90230cd64ecba2 (patch)
tree9c93ccdd212ac239041a56f103f52f8820a8eceb /py/objnamedtuple.h
parent6765d4bbd66c19898158504ed8102ebd8de4c645 (diff)
samd/machine_adc: Add the machine.ADC class.
With the method read_u16(). Keyword arguments of the constructor are: - bits=n The resolution; default is 12. - average=n The average of samples, which are taken and cumulated. The default value is 16. Averaging by hw is faster than averaging in code. The ADC runs at a clock freq 1.5 MHz. A single 12 bit conversion takes 8 microseconds.
Diffstat (limited to 'py/objnamedtuple.h')
0 files changed, 0 insertions, 0 deletions