mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Adding support for chsc6x touch controller (#8258)
This commit is contained in:
25
tests/components/chsc6x/test.esp32-ard.yaml
Normal file
25
tests/components/chsc6x/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_chsc6x
|
||||
scl: 3
|
||||
sda: 21
|
||||
|
||||
spi:
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: ili9xxx_display
|
||||
model: GC9A01A
|
||||
invert_colors: True
|
||||
cs_pin: 18
|
||||
dc_pin: 19
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: chsc6x
|
||||
display: ili9xxx_display
|
||||
interrupt_pin: 20
|
25
tests/components/chsc6x/test.esp32-c3-ard.yaml
Normal file
25
tests/components/chsc6x/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_chsc6x
|
||||
scl: 3
|
||||
sda: 9
|
||||
|
||||
spi:
|
||||
clk_pin: 5
|
||||
mosi_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: ili9xxx_display
|
||||
model: GC9A01A
|
||||
invert_colors: True
|
||||
cs_pin: 18
|
||||
dc_pin: 19
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: chsc6x
|
||||
display: ili9xxx_display
|
||||
interrupt_pin: 20
|
25
tests/components/chsc6x/test.esp32-c3-idf.yaml
Normal file
25
tests/components/chsc6x/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_chsc6x
|
||||
scl: 3
|
||||
sda: 9
|
||||
|
||||
spi:
|
||||
clk_pin: 5
|
||||
mosi_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: ili9xxx_display
|
||||
model: GC9A01A
|
||||
invert_colors: True
|
||||
cs_pin: 18
|
||||
dc_pin: 19
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: chsc6x
|
||||
display: ili9xxx_display
|
||||
interrupt_pin: 20
|
25
tests/components/chsc6x/test.esp32-idf.yaml
Normal file
25
tests/components/chsc6x/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_chsc6x
|
||||
scl: 3
|
||||
sda: 21
|
||||
|
||||
spi:
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: ili9xxx_display
|
||||
model: GC9A01A
|
||||
invert_colors: True
|
||||
cs_pin: 18
|
||||
dc_pin: 19
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: chsc6x
|
||||
display: ili9xxx_display
|
||||
interrupt_pin: 20
|
25
tests/components/chsc6x/test.rp2040-ard.yaml
Normal file
25
tests/components/chsc6x/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_chsc6x
|
||||
scl: 1
|
||||
sda: 0
|
||||
|
||||
spi:
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: ili9xxx_display
|
||||
model: GC9A01A
|
||||
invert_colors: True
|
||||
cs_pin: 18
|
||||
dc_pin: 19
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: chsc6x
|
||||
display: ili9xxx_display
|
||||
interrupt_pin: 20
|
Reference in New Issue
Block a user