Refactor touchscreen calibration: Update calibration parameters to use a structured format for improved readability
This commit is contained in:
@@ -32,7 +32,7 @@ wifi:
|
|||||||
ap:
|
ap:
|
||||||
ssid: "${name} Fallback"
|
ssid: "${name} Fallback"
|
||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
||||||
|
|
||||||
# SPI for display and touchscreen
|
# SPI for display and touchscreen
|
||||||
@@ -92,10 +92,11 @@ touchscreen:
|
|||||||
- platform: xpt2046
|
- platform: xpt2046
|
||||||
cs_pin: GPIO33
|
cs_pin: GPIO33
|
||||||
interrupt_pin: GPIO36
|
interrupt_pin: GPIO36
|
||||||
calibration_x_min: 280
|
calibration:
|
||||||
calibration_x_max: 3860
|
x_min: 280
|
||||||
calibration_y_min: 340
|
x_max: 3860
|
||||||
calibration_y_max: 3860
|
y_min: 340
|
||||||
|
y_max: 3860
|
||||||
on_touch:
|
on_touch:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
int tx = touch.x;
|
int tx = touch.x;
|
||||||
|
|||||||
Reference in New Issue
Block a user