10 #include "driver/adc.h" 11 #include <esp_adc_cal.h> 29 void setup()
override;
void set_channel(adc1_channel_t channel)
Abstract interface for components to request voltage (usually ADC readings)
This class simplifies creating components that periodically check a state.
void setup() override
Setup ADc.
esp_adc_cal_characteristics_t cal_characteristics_[(int) ADC_ATTEN_MAX]
void set_is_temperature()
void set_output_raw(bool output_raw)
void set_attenuation(adc_atten_t attenuation)
Set the attenuation for this pin. Only available on the ESP32.
std::string unique_id() override
void update() override
Update adc values.
void set_autorange(bool autorange)
void set_pin(InternalGPIOPin *pin)
Base-class for all sensors.
float get_setup_priority() const override
HARDWARE_LATE setup priority.
void dump_config() override