mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[icnt86] Support ICNT86 touch driver (#18331)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
co-authored by
pre-commit-ci-lite[bot]
Clyde Stubbs
J. Nick Koston
parent
711733f9af
commit
417b841db7
@@ -0,0 +1,24 @@
|
||||
touchscreen:
|
||||
- platform: icnt86
|
||||
i2c_id: i2c_bus
|
||||
interrupt_pin: ${interrupt_pin_touch}
|
||||
reset_pin: ${reset_pin_touch}
|
||||
display: epaper
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
id: epaper
|
||||
rotation: 90
|
||||
cs_pin: ${cs_pin_display}
|
||||
dc_pin: ${dc_pin_display}
|
||||
busy_pin: ${busy_pin_display}
|
||||
reset_pin: ${reset_pin_display}
|
||||
model: 2.90inv2-r2
|
||||
pages:
|
||||
- id: icnt86_page
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,14 @@
|
||||
substitutions:
|
||||
interrupt_pin_touch: GPIO4
|
||||
reset_pin_touch: GPIO32
|
||||
cs_pin_display: GPIO33
|
||||
dc_pin_display: GPIO21
|
||||
busy_pin_display: GPIO27
|
||||
reset_pin_display: GPIO14
|
||||
clk_pin: GPIO25
|
||||
mosi_pin: GPIO26
|
||||
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
|
||||
spi: !include ../../test_build_components/common/spi/esp32-idf.yaml
|
||||
icnt86: !include common.yaml
|
||||
Reference in New Issue
Block a user