mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[CI] Consolidate some tests (C) (#8186)
This commit is contained in:
@@ -1,27 +1,21 @@
|
||||
touchscreen:
|
||||
- platform: cst816
|
||||
id: my_touchscreen
|
||||
interrupt_pin:
|
||||
number: 21
|
||||
reset_pin: GPIO16
|
||||
skip_probe: false
|
||||
transform:
|
||||
mirror_x: false
|
||||
mirror_y: false
|
||||
swap_xy: false
|
||||
|
||||
i2c:
|
||||
sda: 3
|
||||
scl: 4
|
||||
- id: i2c_cst816
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
spi:
|
||||
- id: spi_ili9xxx
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
|
||||
display:
|
||||
- id: my_display
|
||||
platform: ili9xxx
|
||||
dimensions: 480x320
|
||||
model: ST7796
|
||||
cs_pin: 18
|
||||
dc_pin: 20
|
||||
reset_pin: 22
|
||||
cs_pin: ${cs_pin}
|
||||
dc_pin: ${dc_pin}
|
||||
reset_pin: ${disp_reset_pin}
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
@@ -29,9 +23,16 @@ display:
|
||||
auto_clear_enabled: false
|
||||
invert_colors: false
|
||||
|
||||
spi:
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
touchscreen:
|
||||
- id: ts_cst816
|
||||
platform: cst816
|
||||
interrupt_pin: ${interrupt_pin}
|
||||
reset_pin: ${reset_pin}
|
||||
skip_probe: false
|
||||
transform:
|
||||
mirror_x: false
|
||||
mirror_y: false
|
||||
swap_xy: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: cst816
|
||||
|
@@ -1 +1,12 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO0
|
||||
mosi_pin: GPIO2
|
||||
cs_pin: GPIO4
|
||||
dc_pin: GPIO5
|
||||
disp_reset_pin: GPIO12
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
<<: !include common.yaml
|
||||
|
12
tests/components/cst816/test.esp32-c3-ard.yaml
Normal file
12
tests/components/cst816/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
cs_pin: GPIO8
|
||||
dc_pin: GPIO9
|
||||
disp_reset_pin: GPIO10
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
<<: !include common.yaml
|
12
tests/components/cst816/test.esp32-c3-idf.yaml
Normal file
12
tests/components/cst816/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
cs_pin: GPIO8
|
||||
dc_pin: GPIO9
|
||||
disp_reset_pin: GPIO10
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
<<: !include common.yaml
|
12
tests/components/cst816/test.esp32-idf.yaml
Normal file
12
tests/components/cst816/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO0
|
||||
mosi_pin: GPIO2
|
||||
cs_pin: GPIO4
|
||||
dc_pin: GPIO5
|
||||
disp_reset_pin: GPIO12
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user