1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

allow touchscreen buttons outside of display dimensions (#8296)

Co-authored-by: Dennis Marinus <dmarinus@apple.com>
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
Dennis Marinus
2025-03-07 15:41:54 -08:00
committed by GitHub
parent 83e090cc7e
commit 10cea51739
6 changed files with 86 additions and 6 deletions

View File

@@ -34,3 +34,19 @@ touchscreen:
on_release:
- logger.log:
format: to released
calibration:
x_min: 0
x_max: 320
y_min: 0
y_max: 400
binary_sensor:
- platform: touchscreen
name: Bottom Left Touch
use_raw: true
x_min: 0
x_max: 100
y_min: 400
y_max: 480
on_press:
logger.log: Left pressed