Is adc_gpio_init() being deprecated?
Is adc_gpio_init() being deprecated?
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.
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: Is adc_gpio_init() being deprecated?
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?
Thank-you, that's what I needed to know.
Who is online
Users browsing this forum: No registered users and 108 guests