summaryrefslogtreecommitdiffstatshomepage
path: root/lib/libm_dbl/sqrt.c
diff options
context:
space:
mode:
authorpurewack <bobimaster15@gmail.com>2025-01-02 11:44:00 +0000
committerDamien George <damien@micropython.org>2025-06-05 17:01:51 +1000
commit5f058e9863c0770aa8a4defe23f70919cea94160 (patch)
tree141b7593c0fa4c57e5543f8eef35212268015a4e /lib/libm_dbl/sqrt.c
parent2c2f0b292afbeb41a23a742c3cd74a714e9c03c0 (diff)
downloadmicropython-master.tar.gz
micropython-master.zip
esp32: Update ADC driver update to the new esp_adc API.HEADmaster
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 'lib/libm_dbl/sqrt.c')
0 files changed, 0 insertions, 0 deletions