Adc analog to digital converter9/21/2023 By setting higher attenuation it is possible to read higher voltages.ĭue to ADC characteristics, most accurate results are obtained within the “suggested range” shown in the following table. The default ADC voltage is for attenuation 0 dB and listed in the table below. ![]() Set the attenuation of a particular channel on ADC1, and configure its associated GPIO pin mux. Gpio_num: output buffer to hold the GPIO numberĮsp_err_t adc1_config_channel_atten ( adc1_channel_t channel, adc_atten_t atten ) ¶ Get the GPIO number of a specific ADC1 channel. esp_err_t adc1_pad_get_io_num ( adc1_channel_t channel, gpio_num_t * gpio_num ) ¶ Call this function when done using the ADC. ADC will stay powered on while the counter is greater than 0. void adc_power_release (void ) ¶ĭecrement the usage counter for ADC module. ![]() Call adc_power_release when done using the ADC. ![]() Increment the usage counter for ADC module.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |