1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Create GT911 Touchscreen component (#4027)

Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
Jesse Hills
2023-11-28 09:44:09 +13:00
committed by GitHub
parent a15a812466
commit f63f722afb
11 changed files with 314 additions and 0 deletions

View File

@@ -405,6 +405,10 @@ binary_sensor:
y_max: 100
on_press:
- logger.log: Touched
- platform: gt911
id: touch_key_911
index: 0
- platform: gpio
name: MaxIn Pin 4
@@ -725,6 +729,10 @@ touchscreen:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
- platform: gt911
interrupt_pin: GPIO3
display: inkplate_display
i2s_audio:
i2s_lrclk_pin: GPIO26