7 #include <esp_idf_version.h> 11 #if ESP_IDF_VERSION_MAJOR >= 4 12 #include <driver/touch_sensor.h> 14 #include <driver/touch_pad.h> 18 namespace esp32_touch {
20 class ESP32TouchBinarySensor;
44 void setup()
override;
const float DATA
For components that import data from directly connected sensors like DHT.
uint32_t setup_mode_last_log_print_
void on_shutdown() override
friend ESP32TouchComponent
bool iir_filter_enabled_() const
Is the IIR filter enabled?
std::vector< ESP32TouchBinarySensor * > children_
void set_setup_mode(bool setup_mode)
void dump_config() override
float get_setup_priority() const override
void set_low_voltage_reference(touch_low_volt_t low_voltage_reference)
const uint16_t wakeup_threshold_
void set_measurement_duration(uint16_t meas_cycle)
uint16_t get_threshold() const
void set_threshold(uint16_t threshold)
void register_touch_pad(ESP32TouchBinarySensor *pad)
touch_volt_atten_t voltage_attenuation_
void set_iir_filter(uint32_t iir_filter)
uint16_t get_value() const
touch_high_volt_t high_voltage_reference_
uint16_t get_wakeup_threshold() const
touch_pad_t get_touch_pad() const
void set_sleep_duration(uint16_t sleep_duration)
void set_voltage_attenuation(touch_volt_atten_t voltage_attenuation)
Base class for all binary_sensor-type classes.
void set_high_voltage_reference(touch_high_volt_t high_voltage_reference)
Simple helper class to expose a touch pad value as a binary sensor.
touch_low_volt_t low_voltage_reference_