mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
[CI] Consolidate some tests (T) (#8208)
This commit is contained in:
25
tests/components/tt21100/common.yaml
Normal file
25
tests/components/tt21100/common.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: ${disp_reset_pin}
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: ${interrupt_pin}
|
||||
reset_pin: ${reset_pin}
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
@@ -1,25 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
disp_reset_pin: GPIO12
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: 14
|
||||
reset_pin: 15
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
disp_reset_pin: GPIO10
|
||||
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: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: 6
|
||||
reset_pin: 7
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
disp_reset_pin: GPIO10
|
||||
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: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: 6
|
||||
reset_pin: 7
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
disp_reset_pin: GPIO12
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: 14
|
||||
reset_pin: 15
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,44 +0,0 @@
|
||||
i2c:
|
||||
sda: GPIO8
|
||||
scl: GPIO18
|
||||
|
||||
spi:
|
||||
clk_pin: 7
|
||||
mosi_pin: 11
|
||||
miso_pin: 9
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: my_display
|
||||
model: ili9341
|
||||
cs_pin: 5
|
||||
dc_pin: 12
|
||||
reset_pin: 33
|
||||
auto_clear_enabled: false
|
||||
data_rate: 40MHz
|
||||
dimensions: 320x240
|
||||
update_interval: never
|
||||
invert_colors: false
|
||||
transform:
|
||||
mirror_y: false
|
||||
mirror_x: false
|
||||
swap_xy: true
|
||||
|
||||
touchscreen:
|
||||
- platform: tt21100
|
||||
address: 0x24
|
||||
interrupt_pin: GPIO3
|
||||
on_touch:
|
||||
- logger.log: "Touchscreen:: Touched"
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
index: 0
|
||||
name: "Home"
|
||||
|
||||
- platform: touchscreen
|
||||
name: FanLo
|
||||
x_min: 0
|
||||
x_max: 105
|
||||
y_min: 0
|
||||
y_max: 80
|
@@ -1,25 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
disp_reset_pin: GPIO12
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: 14
|
||||
reset_pin: 15
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_tt21100
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
disp_reset_pin: GPIO10
|
||||
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: tt21100
|
||||
display: ssd1306_display
|
||||
interrupt_pin: 6
|
||||
reset_pin: 7
|
||||
|
||||
binary_sensor:
|
||||
- platform: tt21100
|
||||
name: Home Button
|
||||
index: 1
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user