mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[esp32_touch] Support voltage_attenuation with new unified driver
The new touch_volt_lim_h_t enum combines high_voltage_reference and voltage_attenuation into a single value. Map the two user-facing config options to the correct combined enum using a lookup table. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
5818d03378
commit
e65438b27c
@@ -4,7 +4,6 @@ esp32_touch:
|
||||
measurement_duration: 8ms
|
||||
low_voltage_reference: 0.5V
|
||||
high_voltage_reference: 2.7V
|
||||
voltage_attenuation: 1.5V
|
||||
|
||||
binary_sensor:
|
||||
- platform: esp32_touch
|
||||
|
||||
Reference in New Issue
Block a user