mirror of
https://github.com/esphome/esphome.git
synced 2026-06-02 03:02:19 +08:00
[esp32_touch] Remove section banner comments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,6 @@ namespace esphome::esp32_touch {
|
|||||||
|
|
||||||
static const char *const TAG = "esp32_touch";
|
static const char *const TAG = "esp32_touch";
|
||||||
|
|
||||||
// ==================== Callbacks ====================
|
|
||||||
// V1: called from esp_timer context (software filter)
|
// V1: called from esp_timer context (software filter)
|
||||||
// V2/V3: called from ISR context
|
// V2/V3: called from ISR context
|
||||||
// xQueueSendFromISR is safe from both contexts.
|
// xQueueSendFromISR is safe from both contexts.
|
||||||
@@ -36,8 +35,6 @@ bool IRAM_ATTR ESP32TouchComponent::on_inactive_cb(touch_sensor_handle_t handle,
|
|||||||
return higher == pdTRUE;
|
return higher == pdTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== Setup ====================
|
|
||||||
|
|
||||||
void ESP32TouchComponent::setup() {
|
void ESP32TouchComponent::setup() {
|
||||||
if (!this->create_touch_queue_()) {
|
if (!this->create_touch_queue_()) {
|
||||||
return;
|
return;
|
||||||
@@ -226,8 +223,6 @@ void ESP32TouchComponent::setup() {
|
|||||||
this->release_check_interval_ms_ = this->release_timeout_ms_ / 4;
|
this->release_check_interval_ms_ = this->release_timeout_ms_ / 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== Dump Config ====================
|
|
||||||
|
|
||||||
void ESP32TouchComponent::dump_config() {
|
void ESP32TouchComponent::dump_config() {
|
||||||
this->dump_config_base_();
|
this->dump_config_base_();
|
||||||
|
|
||||||
@@ -362,8 +357,6 @@ void ESP32TouchComponent::dump_config() {
|
|||||||
this->dump_config_sensors_();
|
this->dump_config_sensors_();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== Loop ====================
|
|
||||||
|
|
||||||
void ESP32TouchComponent::loop() {
|
void ESP32TouchComponent::loop() {
|
||||||
const uint32_t now = App.get_loop_component_start_time();
|
const uint32_t now = App.get_loop_component_start_time();
|
||||||
|
|
||||||
@@ -455,8 +448,6 @@ void ESP32TouchComponent::loop() {
|
|||||||
this->check_and_disable_loop_if_all_released_(pads_off);
|
this->check_and_disable_loop_if_all_released_(pads_off);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== Shutdown ====================
|
|
||||||
|
|
||||||
void ESP32TouchComponent::on_shutdown() {
|
void ESP32TouchComponent::on_shutdown() {
|
||||||
if (this->sens_handle_ == nullptr)
|
if (this->sens_handle_ == nullptr)
|
||||||
return;
|
return;
|
||||||
@@ -477,8 +468,6 @@ void ESP32TouchComponent::on_shutdown() {
|
|||||||
this->cleanup_touch_queue_();
|
this->cleanup_touch_queue_();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== Helpers ====================
|
|
||||||
|
|
||||||
void ESP32TouchComponent::dump_config_base_() {
|
void ESP32TouchComponent::dump_config_base_() {
|
||||||
#if !defined(USE_ESP32_VARIANT_ESP32P4)
|
#if !defined(USE_ESP32_VARIANT_ESP32P4)
|
||||||
const char *lv_s = get_low_voltage_reference_str(this->low_voltage_reference_);
|
const char *lv_s = get_low_voltage_reference_str(this->low_voltage_reference_);
|
||||||
|
|||||||
@@ -152,8 +152,6 @@ class ESP32TouchComponent : public Component {
|
|||||||
// Common constants
|
// Common constants
|
||||||
static constexpr uint32_t MINIMUM_RELEASE_TIME_MS = 100;
|
static constexpr uint32_t MINIMUM_RELEASE_TIME_MS = 100;
|
||||||
|
|
||||||
// ==================== PLATFORM SPECIFIC ====================
|
|
||||||
|
|
||||||
#ifdef USE_ESP32_VARIANT_ESP32
|
#ifdef USE_ESP32_VARIANT_ESP32
|
||||||
// ESP32 v1 specific
|
// ESP32 v1 specific
|
||||||
uint32_t iir_filter_{0};
|
uint32_t iir_filter_{0};
|
||||||
|
|||||||
Reference in New Issue
Block a user