Switching between analog and digital GPIO pin
Switching between analog and digital GPIO pin
If I switch a pin to use the adc with adc_gpio_init(), and later I want to use the pin for digital I/O. Is there some de-init function that needs to be called? Is a simple call to gpio_config(), with the appropriate settings, sufficient? Do I need to recalibrate? Call adc1_config_channel_atten() again if I switch back to the ADC?
Who is online
Users browsing this forum: ChatGPT-User, PerplexityBot, PetalBot and 1 guest