From d4214ca983c9dd2b0dcc641880c46c302f82add8 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Sat, 28 Feb 2026 20:37:56 -0500 Subject: [PATCH] Refactor touchscreen calibration: Update calibration parameters to use a structured format for improved readability --- esphome/master_bedroom_remote.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/esphome/master_bedroom_remote.yaml b/esphome/master_bedroom_remote.yaml index 9b43f1d..5257be1 100644 --- a/esphome/master_bedroom_remote.yaml +++ b/esphome/master_bedroom_remote.yaml @@ -32,7 +32,7 @@ wifi: ap: ssid: "${name} Fallback" password: !secret wifi_password - + captive_portal: # SPI for display and touchscreen @@ -92,10 +92,11 @@ touchscreen: - platform: xpt2046 cs_pin: GPIO33 interrupt_pin: GPIO36 - calibration_x_min: 280 - calibration_x_max: 3860 - calibration_y_min: 340 - calibration_y_max: 3860 + calibration: + x_min: 280 + x_max: 3860 + y_min: 340 + y_max: 3860 on_touch: - lambda: |- int tx = touch.x;