mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add some components to the new testing framework (W) (#6232)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
107
tests/components/waveshare_epaper/test.esp32-c3-idf.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,107 @@
|
||||
spi:
|
||||
- id: spi_waveshare_epaper
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.esp32-c3.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,107 @@
|
||||
spi:
|
||||
- id: spi_waveshare_epaper
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.esp32-idf.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,107 @@
|
||||
spi:
|
||||
- id: spi_bme280
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.esp8266.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp8266.yaml
Normal file
@@ -0,0 +1,107 @@
|
||||
spi:
|
||||
- id: spi_bme280
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.rp2040.yaml
Normal file
107
tests/components/waveshare_epaper/test.rp2040.yaml
Normal file
@@ -0,0 +1,107 @@
|
||||
spi:
|
||||
- id: spi_bme280
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
Reference in New Issue
Block a user