Is adc_gpio_init() being deprecated?

Kaisha
Posts: 42
Joined: Thu Mar 05, 2020 8:59 pm

Is adc_gpio_init() being deprecated?

Postby Kaisha » Tue Dec 28, 2021 7:12 am

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.

Kaisha
Posts: 42
Joined: Thu Mar 05, 2020 8:59 pm

Re: Is adc_gpio_init() being deprecated?

Postby Kaisha » Fri Jan 07, 2022 7:47 pm

Anyone??

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Is adc_gpio_init() being deprecated?

Postby ESP_Sprite » Sat Jan 08, 2022 2:51 am

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().

Kaisha
Posts: 42
Joined: Thu Mar 05, 2020 8:59 pm

Re: Is adc_gpio_init() being deprecated?

Postby Kaisha » Sat Jan 08, 2022 4:40 pm

Thank-you, that's what I needed to know.

Who is online

Users browsing this forum: Bing [Bot], ESP_Roland and 202 guests