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
This commit is contained in:
parent
33ca7b739b
commit
cfebeb7c05
|
@ -158,7 +158,6 @@ static void setup_adc(gpio_num_t measure)
|
||||||
{
|
{
|
||||||
// Init ADC
|
// Init ADC
|
||||||
adc1_channel_t channel = gpio_to_adc[measure];
|
adc1_channel_t channel = gpio_to_adc[measure];
|
||||||
adc_gpio_init(ADC_UNIT_1, channel);
|
|
||||||
adc1_config_width(ADC_WIDTH_BIT_10);
|
adc1_config_width(ADC_WIDTH_BIT_10);
|
||||||
adc1_config_channel_atten(channel, ADC_ATTEN_DB_11);
|
adc1_config_channel_atten(channel, ADC_ATTEN_DB_11);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue