mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user