From cfebeb7c054c919b04f98f0ff93fb0c652170b57 Mon Sep 17 00:00:00 2001 From: Wouter Van Hoof Date: Mon, 19 Dec 2022 21:54:43 +0100 Subject: [PATCH] Remove adc_gpio_init function Function is deprecated. Functionality is folded into the adc[1,2]_config_channel_atten() functions. https://www.esp32.com/viewtopic.php?t=25244 --- lvgl_touch/adcraw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lvgl_touch/adcraw.c b/lvgl_touch/adcraw.c index 6170b4c..164067d 100644 --- a/lvgl_touch/adcraw.c +++ b/lvgl_touch/adcraw.c @@ -158,7 +158,6 @@ static void setup_adc(gpio_num_t measure) { // Init ADC adc1_channel_t channel = gpio_to_adc[measure]; - adc_gpio_init(ADC_UNIT_1, channel); adc1_config_width(ADC_WIDTH_BIT_10); adc1_config_channel_atten(channel, ADC_ATTEN_DB_11); }