diff options
| author | robert-hh <robert@hammelrath.com> | 2022-06-05 10:34:23 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-10-06 22:41:44 +1100 |
| commit | 5c7e93ec48b04a6a049cc7f2ec90230cd64ecba2 (patch) | |
| tree | 9c93ccdd212ac239041a56f103f52f8820a8eceb /py/objstr.h | |
| parent | 6765d4bbd66c19898158504ed8102ebd8de4c645 (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/objstr.h')
0 files changed, 0 insertions, 0 deletions
