Is adc_gpio_init() being deprecated?
Posted: Tue Dec 28, 2021 7:12 am
by Kaisha
What happened to adc_gpio_init()? I don't see it in latest ESP IDF documentation, nor it is used in the example code. There's no discussion (that I can find anywhere) explaining why it was removed and what replaces it. In fact there's a lot of functions/functionality in the newest ADC page (
https://docs.espressif.com/projects/esp ... s/adc.html) that isn't explained anywhere that I can see.
Re: Is adc_gpio_init() being deprecated?
Posted: Fri Jan 07, 2022 7:47 pm
by Kaisha
Anyone??
Re: Is adc_gpio_init() being deprecated?
Posted: Sat Jan 08, 2022 2:51 am
by ESP_Sprite
It's indeed deprecated (although I can't find why). You should still be able to use it if you include deprecated/driver/adc_deprecated.h. The functionality itself seems to be folded into the adc[1,2]_config_channel_atten() functions, so if your code calls that, you can simply remove the call to adc_gpio_init().
Re: Is adc_gpio_init() being deprecated?
Posted: Sat Jan 08, 2022 4:40 pm
by Kaisha
Thank-you, that's what I needed to know.