mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[CI] Consolidate some tests (F) (#8195)
This commit is contained in:
36
tests/components/ft63x6/common.yaml
Normal file
36
tests/components/ft63x6/common.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
spi:
|
||||
- id: spi_ft63x6
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: ${reset_pin}
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
interrupt_pin: ${interrupt_pin}
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: false
|
||||
mirror_y: true
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: tp touched
|
||||
on_update:
|
||||
- logger.log:
|
||||
format: to updated
|
||||
on_release:
|
||||
- logger.log:
|
||||
format: to released
|
||||
@@ -1,39 +1,9 @@
|
||||
spi:
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
substitutions:
|
||||
clk_pin: GPIO0
|
||||
mosi_pin: GPIO2
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
i2c:
|
||||
sda: GPIO18
|
||||
scl: GPIO19
|
||||
|
||||
display:
|
||||
- id: my_display
|
||||
platform: ili9xxx
|
||||
dimensions: 480x320
|
||||
model: ST7796
|
||||
cs_pin: 15
|
||||
dc_pin: 21
|
||||
reset_pin: 22
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
auto_clear_enabled: false
|
||||
invert_colors: false
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
interrupt_pin: GPIO39
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: false
|
||||
mirror_y: true
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: tp touched
|
||||
on_update:
|
||||
- logger.log:
|
||||
format: to updated
|
||||
on_release:
|
||||
- logger.log:
|
||||
format: to released
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
clk_pin: GPIO0
|
||||
mosi_pin: GPIO2
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 18
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
interrupt_pin: GPIO12
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user