31#include "esp_adc/adc_oneshot.h"
32#include "esp_adc/adc_cali.h"
33#include "esp_adc/adc_cali_scheme.h"
35#include "freertos/FreeRTOS.h"
36#include "freertos/task.h"
37#include "freertos/event_groups.h"
43#define ADC_ATTEN ADC_ATTEN_DB_11
44#define ADC_BITWIDTH_LEN ADC_BITWIDTH_12
54 adc_cali_handle_t adc1_cali_handle[5];
adc_obj_t * adc_handle_t
Definition: adc.h:58
esp_err_t enable_adc1(adc_obj_t **adc_obj)
call function config_adc1() and characterize_adc1().
Definition: adc.c:109
int read_adc(adc_handle_t adc_handle, int gpio)
Reads the adc value from the GPIO(channel) specified.
Definition: adc.c:125
Structure representing an ADC object.
Definition: adc.h:52
adc_oneshot_unit_handle_t adc1_handle
Definition: adc.h:53