diff options
author | purewack <bobimaster15@gmail.com> | 2025-01-02 11:44:00 +0000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-05 17:01:51 +1000 |
commit | 5f058e9863c0770aa8a4defe23f70919cea94160 (patch) | |
tree | 141b7593c0fa4c57e5543f8eef35212268015a4e /ports/esp32/modules/inisetup.py | |
parent | 2c2f0b292afbeb41a23a742c3cd74a714e9c03c0 (diff) | |
download | micropython-master.tar.gz micropython-master.zip |
This commit updates the ADC to use the new driver `esp_adc/adc_oneshot.h`.
There are several errata notes about not being able to change the bit-width
of the ADCs certain chips. The only chip that can switch resolution to a
lower one is the normal ESP32. ESP32 C2 and S3 are stuck at 12 bits, while
S2 is at 13 bits.
On the S2, you can change the resolution, but it has no effect on the
resolution, rather, it prevents attenuation from working at all!
The resolution is set to the maximum possible for each SoC, with the ESP32
being the only one not throwing errors when trying to set the bit-width to
9, 10, 11 or 12 bits using `ADC.width(bits)`.
Signed-off-by: Damian Nowacki (purewack) bobimaster15@gmail.com
Diffstat (limited to 'ports/esp32/modules/inisetup.py')
0 files changed, 0 insertions, 0 deletions