Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4dcc9e

Browse files
committed
esp32/machine_adc: Add new ADCBlock-based API.
Rework the ADC implementation to use the micropython#4213 API (mostly) adding support for calibrated voltage readings and the ADC2 block. Resolves micropython#6219. Part-resolves micropython#3943.
1 parent d9749f9 commit f4dcc9e

File tree

5 files changed

+353
-106
lines changed

5 files changed

+353
-106
lines changed

ports/esp32/boards/sdkconfig.base

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,8 @@ CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
5858
# To reduce iRAM usage
5959
CONFIG_ESP32_WIFI_IRAM_OPT=n
6060
CONFIG_ESP32_WIFI_RX_IRAM_OPT=n
61+
62+
# ADC calibration
63+
CONFIG_ADC_CAL_EFUSE_TP_ENABLE=y
64+
CONFIG_ADC_CAL_EFUSE_VREF_ENABLE=y
65+
CONFIG_ADC_CAL_LUT_ENABLE=y

0 commit comments

Comments
 (0)