backup 20240718
This commit is contained in:
14
esphome/sensors/touch_gt911
Normal file
14
esphome/sensors/touch_gt911
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
touchscreen:
|
||||
platform: gt911
|
||||
i2c_id: ${touch_bus}
|
||||
id: gt911_touchscreen
|
||||
interrupt_pin: ${touch_irq}
|
||||
on_touch:
|
||||
- then:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
- light.turn_on: led
|
||||
- delay: 5s
|
||||
- light.turn_off: led
|
||||
Reference in New Issue
Block a user