mirror of
https://github.com/esphome/esphome.git
synced 2026-10-13 17:52:51 +00:00
[spd2010] Add touchscreen platform (#19057)
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
co-authored by
clydebarrow
J. Nick Koston
parent
6a463c801e
commit
646f386f12
@@ -0,0 +1,25 @@
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: spd2010_display
|
||||
model: SSD1306_128X64
|
||||
|
||||
touchscreen:
|
||||
- platform: spd2010
|
||||
id: spd2010_touchscreen
|
||||
display: spd2010_display
|
||||
interrupt_pin: ${interrupt_pin}
|
||||
reset_pin: ${reset_pin}
|
||||
- platform: spd2010
|
||||
id: spd2010_polling_touchscreen
|
||||
display: spd2010_display
|
||||
address: 0x54
|
||||
update_interval: 100ms
|
||||
calibration:
|
||||
x_min: 0
|
||||
x_max: 479
|
||||
y_min: 0
|
||||
y_max: 479
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
interrupt_pin: "20"
|
||||
reset_pin: "21"
|
||||
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
|
||||
spd2010: !include common.yaml
|
||||
Reference in New Issue
Block a user