mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Add some components to the new testing framework (S part 2) (#6227)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
7e8ed5c391
commit
06829b53fe
169 changed files with 3818 additions and 0 deletions
14
tests/components/sn74hc165/test.esp32-c3-idf.yaml
Normal file
14
tests/components/sn74hc165/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
sn74hc165:
|
||||
id: sn74hc165_hub
|
||||
clock_pin: 3
|
||||
data_pin: 4
|
||||
load_pin: 5
|
||||
clock_inhibit_pin: 6
|
||||
sr_count: 2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sn74hc165_pin_0
|
||||
pin:
|
||||
sn74hc165: sn74hc165_hub
|
||||
number: 0
|
14
tests/components/sn74hc165/test.esp32-c3.yaml
Normal file
14
tests/components/sn74hc165/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
sn74hc165:
|
||||
id: sn74hc165_hub
|
||||
clock_pin: 3
|
||||
data_pin: 4
|
||||
load_pin: 5
|
||||
clock_inhibit_pin: 6
|
||||
sr_count: 2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sn74hc165_pin_0
|
||||
pin:
|
||||
sn74hc165: sn74hc165_hub
|
||||
number: 0
|
14
tests/components/sn74hc165/test.esp32-idf.yaml
Normal file
14
tests/components/sn74hc165/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
sn74hc165:
|
||||
id: sn74hc165_hub
|
||||
clock_pin: 13
|
||||
data_pin: 14
|
||||
load_pin: 15
|
||||
clock_inhibit_pin: 16
|
||||
sr_count: 2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sn74hc165_pin_0
|
||||
pin:
|
||||
sn74hc165: sn74hc165_hub
|
||||
number: 0
|
14
tests/components/sn74hc165/test.esp32.yaml
Normal file
14
tests/components/sn74hc165/test.esp32.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
sn74hc165:
|
||||
id: sn74hc165_hub
|
||||
clock_pin: 13
|
||||
data_pin: 14
|
||||
load_pin: 15
|
||||
clock_inhibit_pin: 16
|
||||
sr_count: 2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sn74hc165_pin_0
|
||||
pin:
|
||||
sn74hc165: sn74hc165_hub
|
||||
number: 0
|
14
tests/components/sn74hc165/test.esp8266.yaml
Normal file
14
tests/components/sn74hc165/test.esp8266.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
sn74hc165:
|
||||
id: sn74hc165_hub
|
||||
clock_pin: 13
|
||||
data_pin: 14
|
||||
load_pin: 15
|
||||
clock_inhibit_pin: 16
|
||||
sr_count: 2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sn74hc165_pin_0
|
||||
pin:
|
||||
sn74hc165: sn74hc165_hub
|
||||
number: 0
|
14
tests/components/sn74hc165/test.rp2040.yaml
Normal file
14
tests/components/sn74hc165/test.rp2040.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
sn74hc165:
|
||||
id: sn74hc165_hub
|
||||
clock_pin: 3
|
||||
data_pin: 4
|
||||
load_pin: 5
|
||||
clock_inhibit_pin: 6
|
||||
sr_count: 2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sn74hc165_pin_0
|
||||
pin:
|
||||
sn74hc165: sn74hc165_hub
|
||||
number: 0
|
15
tests/components/sntp/test.esp32-c3-idf.yaml
Normal file
15
tests/components/sntp/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
15
tests/components/sntp/test.esp32-c3.yaml
Normal file
15
tests/components/sntp/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
15
tests/components/sntp/test.esp32-idf.yaml
Normal file
15
tests/components/sntp/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
15
tests/components/sntp/test.esp32.yaml
Normal file
15
tests/components/sntp/test.esp32.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
15
tests/components/sntp/test.esp8266.yaml
Normal file
15
tests/components/sntp/test.esp8266.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
15
tests/components/sntp/test.rp2040.yaml
Normal file
15
tests/components/sntp/test.rp2040.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
12
tests/components/sonoff_d1/test.esp32-idf.yaml
Normal file
12
tests/components/sonoff_d1/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
uart:
|
||||
- id: uart_sonoff_d1
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
|
||||
light:
|
||||
- platform: sonoff_d1
|
||||
id: d1_light
|
||||
name: Sonoff D1 Dimmer
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
use_rm433_remote: false
|
12
tests/components/sonoff_d1/test.esp32.yaml
Normal file
12
tests/components/sonoff_d1/test.esp32.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
uart:
|
||||
- id: uart_sonoff_d1
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
|
||||
light:
|
||||
- platform: sonoff_d1
|
||||
id: d1_light
|
||||
name: Sonoff D1 Dimmer
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
use_rm433_remote: false
|
12
tests/components/sonoff_d1/test.esp8266.yaml
Normal file
12
tests/components/sonoff_d1/test.esp8266.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
uart:
|
||||
- id: uart_sonoff_d1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
|
||||
light:
|
||||
- platform: sonoff_d1
|
||||
id: d1_light
|
||||
name: Sonoff D1 Dimmer
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
use_rm433_remote: false
|
17
tests/components/speaker/test.esp32-c3-idf.yaml
Normal file
17
tests/components/speaker/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- speaker.play: [0, 1, 2, 3]
|
||||
- speaker.stop
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 6
|
||||
i2s_bclk_pin: 7
|
||||
i2s_mclk_pin: 5
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 3
|
||||
mode: mono
|
17
tests/components/speaker/test.esp32-c3.yaml
Normal file
17
tests/components/speaker/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- speaker.play: [0, 1, 2, 3]
|
||||
- speaker.stop
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 6
|
||||
i2s_bclk_pin: 7
|
||||
i2s_mclk_pin: 5
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 3
|
||||
mode: mono
|
17
tests/components/speaker/test.esp32-idf.yaml
Normal file
17
tests/components/speaker/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- speaker.play: [0, 1, 2, 3]
|
||||
- speaker.stop
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 16
|
||||
i2s_bclk_pin: 17
|
||||
i2s_mclk_pin: 15
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 13
|
||||
mode: mono
|
17
tests/components/speaker/test.esp32.yaml
Normal file
17
tests/components/speaker/test.esp32.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- speaker.play: [0, 1, 2, 3]
|
||||
- speaker.stop
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 16
|
||||
i2s_bclk_pin: 17
|
||||
i2s_mclk_pin: 15
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 13
|
||||
mode: mono
|
9
tests/components/speed/test.esp32-c3-idf.yaml
Normal file
9
tests/components/speed/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
9
tests/components/speed/test.esp32-c3.yaml
Normal file
9
tests/components/speed/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
9
tests/components/speed/test.esp32-idf.yaml
Normal file
9
tests/components/speed/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
9
tests/components/speed/test.esp32.yaml
Normal file
9
tests/components/speed/test.esp32.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
9
tests/components/speed/test.esp8266.yaml
Normal file
9
tests/components/speed/test.esp8266.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
9
tests/components/speed/test.rp2040.yaml
Normal file
9
tests/components/speed/test.rp2040.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
5
tests/components/spi/test.esp32-c3-idf.yaml
Normal file
5
tests/components/spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
spi:
|
||||
- id: spi_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
5
tests/components/spi/test.esp32-c3.yaml
Normal file
5
tests/components/spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
spi:
|
||||
- id: spi_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
5
tests/components/spi/test.esp32-idf.yaml
Normal file
5
tests/components/spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
spi:
|
||||
- id: spi_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
5
tests/components/spi/test.esp32.yaml
Normal file
5
tests/components/spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
spi:
|
||||
- id: spi_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
5
tests/components/spi/test.esp8266.yaml
Normal file
5
tests/components/spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
spi:
|
||||
- id: spi_spi
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
5
tests/components/spi/test.rp2040.yaml
Normal file
5
tests/components/spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
spi:
|
||||
- id: spi_spi
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
11
tests/components/spi_device/test.esp32-c3-idf.yaml
Normal file
11
tests/components/spi_device/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
spi:
|
||||
- id: spi_device1
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
spi_device:
|
||||
id: spi_device_test
|
||||
data_rate: 2MHz
|
||||
mode: 3
|
||||
bit_order: lsb_first
|
11
tests/components/spi_device/test.esp32-c3.yaml
Normal file
11
tests/components/spi_device/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
spi:
|
||||
- id: spi_device1
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
spi_device:
|
||||
id: spi_device_test
|
||||
data_rate: 2MHz
|
||||
mode: 3
|
||||
bit_order: lsb_first
|
11
tests/components/spi_device/test.esp32-idf.yaml
Normal file
11
tests/components/spi_device/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
spi:
|
||||
- id: spi_device1
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
spi_device:
|
||||
id: spi_device_test
|
||||
data_rate: 2MHz
|
||||
mode: 3
|
||||
bit_order: lsb_first
|
11
tests/components/spi_device/test.esp32.yaml
Normal file
11
tests/components/spi_device/test.esp32.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
spi:
|
||||
- id: spi_device1
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
spi_device:
|
||||
id: spi_device_test
|
||||
data_rate: 2MHz
|
||||
mode: 3
|
||||
bit_order: lsb_first
|
11
tests/components/spi_device/test.esp8266.yaml
Normal file
11
tests/components/spi_device/test.esp8266.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
spi:
|
||||
- id: spi_device1
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
spi_device:
|
||||
id: spi_device_test
|
||||
data_rate: 2MHz
|
||||
mode: 3
|
||||
bit_order: lsb_first
|
11
tests/components/spi_device/test.rp2040.yaml
Normal file
11
tests/components/spi_device/test.rp2040.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
spi:
|
||||
- id: spi_device1
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
spi_device:
|
||||
id: spi_device_test
|
||||
data_rate: 2MHz
|
||||
mode: 3
|
||||
bit_order: lsb_first
|
13
tests/components/spi_led_strip/test.esp32-c3-idf.yaml
Normal file
13
tests/components/spi_led_strip/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
spi:
|
||||
- id: spi_spi_led_strip
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
light:
|
||||
- platform: spi_led_strip
|
||||
num_leds: 4
|
||||
color_correct: [80%, 60%, 100%]
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
13
tests/components/spi_led_strip/test.esp32-c3.yaml
Normal file
13
tests/components/spi_led_strip/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
spi:
|
||||
- id: spi_spi_led_strip
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
light:
|
||||
- platform: spi_led_strip
|
||||
num_leds: 4
|
||||
color_correct: [80%, 60%, 100%]
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
13
tests/components/spi_led_strip/test.esp32-idf.yaml
Normal file
13
tests/components/spi_led_strip/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
spi:
|
||||
- id: spi_spi_led_strip
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
light:
|
||||
- platform: spi_led_strip
|
||||
num_leds: 4
|
||||
color_correct: [80%, 60%, 100%]
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
13
tests/components/spi_led_strip/test.esp32.yaml
Normal file
13
tests/components/spi_led_strip/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
spi:
|
||||
- id: spi_spi_led_strip
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
light:
|
||||
- platform: spi_led_strip
|
||||
num_leds: 4
|
||||
color_correct: [80%, 60%, 100%]
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
13
tests/components/spi_led_strip/test.esp8266.yaml
Normal file
13
tests/components/spi_led_strip/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
spi:
|
||||
- id: spi_spi_led_strip
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
light:
|
||||
- platform: spi_led_strip
|
||||
num_leds: 4
|
||||
color_correct: [80%, 60%, 100%]
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
13
tests/components/spi_led_strip/test.rp2040.yaml
Normal file
13
tests/components/spi_led_strip/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
spi:
|
||||
- id: spi_spi_led_strip
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
light:
|
||||
- platform: spi_led_strip
|
||||
num_leds: 4
|
||||
color_correct: [80%, 60%, 100%]
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
83
tests/components/sprinkler/test.esp32-c3-idf.yaml
Normal file
83
tests/components/sprinkler/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,83 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- sprinkler.start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_from_queue: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_single_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
- sprinkler.shutdown: yard_sprinkler_ctrlr
|
||||
- sprinkler.next_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.previous_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.pause: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume_or_start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.queue_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 2
|
||||
run_duration: 900s
|
||||
- sprinkler.clear_queued_valves: yard_sprinkler_ctrlr
|
||||
- sprinkler.set_multiplier:
|
||||
id: yard_sprinkler_ctrlr
|
||||
multiplier: 1.5
|
||||
- sprinkler.set_repeat:
|
||||
id: yard_sprinkler_ctrlr
|
||||
repeat: 2
|
||||
- sprinkler.set_divider:
|
||||
id: yard_sprinkler_ctrlr
|
||||
divider: 2
|
||||
- sprinkler.set_valve_run_duration:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: switch2
|
||||
optimistic: true
|
||||
|
||||
sprinkler:
|
||||
- id: yard_sprinkler_ctrlr
|
||||
main_switch: Yard Sprinklers
|
||||
auto_advance_switch: Yard Sprinklers Auto Advance
|
||||
reverse_switch: Yard Sprinklers Reverse
|
||||
pump_start_pump_delay: 2s
|
||||
pump_stop_valve_delay: 4s
|
||||
pump_switch_off_during_valve_open_delay: true
|
||||
valve_open_delay: 5s
|
||||
valves:
|
||||
- valve_switch: Yard Valve 0
|
||||
enable_switch: Enable Yard Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 1
|
||||
enable_switch: Enable Yard Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 2
|
||||
enable_switch: Enable Yard Valve 2
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- id: garden_sprinkler_ctrlr
|
||||
main_switch: Garden Sprinklers
|
||||
auto_advance_switch: Garden Sprinklers Auto Advance
|
||||
reverse_switch: Garden Sprinklers Reverse
|
||||
valve_overlap: 5s
|
||||
valves:
|
||||
- valve_switch: Garden Valve 0
|
||||
enable_switch: Enable Garden Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Garden Valve 1
|
||||
enable_switch: Enable Garden Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
83
tests/components/sprinkler/test.esp32-c3.yaml
Normal file
83
tests/components/sprinkler/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,83 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- sprinkler.start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_from_queue: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_single_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
- sprinkler.shutdown: yard_sprinkler_ctrlr
|
||||
- sprinkler.next_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.previous_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.pause: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume_or_start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.queue_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 2
|
||||
run_duration: 900s
|
||||
- sprinkler.clear_queued_valves: yard_sprinkler_ctrlr
|
||||
- sprinkler.set_multiplier:
|
||||
id: yard_sprinkler_ctrlr
|
||||
multiplier: 1.5
|
||||
- sprinkler.set_repeat:
|
||||
id: yard_sprinkler_ctrlr
|
||||
repeat: 2
|
||||
- sprinkler.set_divider:
|
||||
id: yard_sprinkler_ctrlr
|
||||
divider: 2
|
||||
- sprinkler.set_valve_run_duration:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: switch2
|
||||
optimistic: true
|
||||
|
||||
sprinkler:
|
||||
- id: yard_sprinkler_ctrlr
|
||||
main_switch: Yard Sprinklers
|
||||
auto_advance_switch: Yard Sprinklers Auto Advance
|
||||
reverse_switch: Yard Sprinklers Reverse
|
||||
pump_start_pump_delay: 2s
|
||||
pump_stop_valve_delay: 4s
|
||||
pump_switch_off_during_valve_open_delay: true
|
||||
valve_open_delay: 5s
|
||||
valves:
|
||||
- valve_switch: Yard Valve 0
|
||||
enable_switch: Enable Yard Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 1
|
||||
enable_switch: Enable Yard Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 2
|
||||
enable_switch: Enable Yard Valve 2
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- id: garden_sprinkler_ctrlr
|
||||
main_switch: Garden Sprinklers
|
||||
auto_advance_switch: Garden Sprinklers Auto Advance
|
||||
reverse_switch: Garden Sprinklers Reverse
|
||||
valve_overlap: 5s
|
||||
valves:
|
||||
- valve_switch: Garden Valve 0
|
||||
enable_switch: Enable Garden Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Garden Valve 1
|
||||
enable_switch: Enable Garden Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
83
tests/components/sprinkler/test.esp32-idf.yaml
Normal file
83
tests/components/sprinkler/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,83 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- sprinkler.start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_from_queue: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_single_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
- sprinkler.shutdown: yard_sprinkler_ctrlr
|
||||
- sprinkler.next_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.previous_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.pause: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume_or_start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.queue_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 2
|
||||
run_duration: 900s
|
||||
- sprinkler.clear_queued_valves: yard_sprinkler_ctrlr
|
||||
- sprinkler.set_multiplier:
|
||||
id: yard_sprinkler_ctrlr
|
||||
multiplier: 1.5
|
||||
- sprinkler.set_repeat:
|
||||
id: yard_sprinkler_ctrlr
|
||||
repeat: 2
|
||||
- sprinkler.set_divider:
|
||||
id: yard_sprinkler_ctrlr
|
||||
divider: 2
|
||||
- sprinkler.set_valve_run_duration:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: switch2
|
||||
optimistic: true
|
||||
|
||||
sprinkler:
|
||||
- id: yard_sprinkler_ctrlr
|
||||
main_switch: Yard Sprinklers
|
||||
auto_advance_switch: Yard Sprinklers Auto Advance
|
||||
reverse_switch: Yard Sprinklers Reverse
|
||||
pump_start_pump_delay: 2s
|
||||
pump_stop_valve_delay: 4s
|
||||
pump_switch_off_during_valve_open_delay: true
|
||||
valve_open_delay: 5s
|
||||
valves:
|
||||
- valve_switch: Yard Valve 0
|
||||
enable_switch: Enable Yard Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 1
|
||||
enable_switch: Enable Yard Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 2
|
||||
enable_switch: Enable Yard Valve 2
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- id: garden_sprinkler_ctrlr
|
||||
main_switch: Garden Sprinklers
|
||||
auto_advance_switch: Garden Sprinklers Auto Advance
|
||||
reverse_switch: Garden Sprinklers Reverse
|
||||
valve_overlap: 5s
|
||||
valves:
|
||||
- valve_switch: Garden Valve 0
|
||||
enable_switch: Enable Garden Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Garden Valve 1
|
||||
enable_switch: Enable Garden Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
83
tests/components/sprinkler/test.esp32.yaml
Normal file
83
tests/components/sprinkler/test.esp32.yaml
Normal file
|
@ -0,0 +1,83 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- sprinkler.start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_from_queue: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_single_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
- sprinkler.shutdown: yard_sprinkler_ctrlr
|
||||
- sprinkler.next_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.previous_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.pause: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume_or_start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.queue_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 2
|
||||
run_duration: 900s
|
||||
- sprinkler.clear_queued_valves: yard_sprinkler_ctrlr
|
||||
- sprinkler.set_multiplier:
|
||||
id: yard_sprinkler_ctrlr
|
||||
multiplier: 1.5
|
||||
- sprinkler.set_repeat:
|
||||
id: yard_sprinkler_ctrlr
|
||||
repeat: 2
|
||||
- sprinkler.set_divider:
|
||||
id: yard_sprinkler_ctrlr
|
||||
divider: 2
|
||||
- sprinkler.set_valve_run_duration:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: switch2
|
||||
optimistic: true
|
||||
|
||||
sprinkler:
|
||||
- id: yard_sprinkler_ctrlr
|
||||
main_switch: Yard Sprinklers
|
||||
auto_advance_switch: Yard Sprinklers Auto Advance
|
||||
reverse_switch: Yard Sprinklers Reverse
|
||||
pump_start_pump_delay: 2s
|
||||
pump_stop_valve_delay: 4s
|
||||
pump_switch_off_during_valve_open_delay: true
|
||||
valve_open_delay: 5s
|
||||
valves:
|
||||
- valve_switch: Yard Valve 0
|
||||
enable_switch: Enable Yard Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 1
|
||||
enable_switch: Enable Yard Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 2
|
||||
enable_switch: Enable Yard Valve 2
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- id: garden_sprinkler_ctrlr
|
||||
main_switch: Garden Sprinklers
|
||||
auto_advance_switch: Garden Sprinklers Auto Advance
|
||||
reverse_switch: Garden Sprinklers Reverse
|
||||
valve_overlap: 5s
|
||||
valves:
|
||||
- valve_switch: Garden Valve 0
|
||||
enable_switch: Enable Garden Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Garden Valve 1
|
||||
enable_switch: Enable Garden Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
83
tests/components/sprinkler/test.esp8266.yaml
Normal file
83
tests/components/sprinkler/test.esp8266.yaml
Normal file
|
@ -0,0 +1,83 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- sprinkler.start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_from_queue: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_single_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
- sprinkler.shutdown: yard_sprinkler_ctrlr
|
||||
- sprinkler.next_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.previous_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.pause: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume_or_start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.queue_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 2
|
||||
run_duration: 900s
|
||||
- sprinkler.clear_queued_valves: yard_sprinkler_ctrlr
|
||||
- sprinkler.set_multiplier:
|
||||
id: yard_sprinkler_ctrlr
|
||||
multiplier: 1.5
|
||||
- sprinkler.set_repeat:
|
||||
id: yard_sprinkler_ctrlr
|
||||
repeat: 2
|
||||
- sprinkler.set_divider:
|
||||
id: yard_sprinkler_ctrlr
|
||||
divider: 2
|
||||
- sprinkler.set_valve_run_duration:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: switch2
|
||||
optimistic: true
|
||||
|
||||
sprinkler:
|
||||
- id: yard_sprinkler_ctrlr
|
||||
main_switch: Yard Sprinklers
|
||||
auto_advance_switch: Yard Sprinklers Auto Advance
|
||||
reverse_switch: Yard Sprinklers Reverse
|
||||
pump_start_pump_delay: 2s
|
||||
pump_stop_valve_delay: 4s
|
||||
pump_switch_off_during_valve_open_delay: true
|
||||
valve_open_delay: 5s
|
||||
valves:
|
||||
- valve_switch: Yard Valve 0
|
||||
enable_switch: Enable Yard Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 1
|
||||
enable_switch: Enable Yard Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 2
|
||||
enable_switch: Enable Yard Valve 2
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- id: garden_sprinkler_ctrlr
|
||||
main_switch: Garden Sprinklers
|
||||
auto_advance_switch: Garden Sprinklers Auto Advance
|
||||
reverse_switch: Garden Sprinklers Reverse
|
||||
valve_overlap: 5s
|
||||
valves:
|
||||
- valve_switch: Garden Valve 0
|
||||
enable_switch: Enable Garden Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Garden Valve 1
|
||||
enable_switch: Enable Garden Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
83
tests/components/sprinkler/test.rp2040.yaml
Normal file
83
tests/components/sprinkler/test.rp2040.yaml
Normal file
|
@ -0,0 +1,83 @@
|
|||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- sprinkler.start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_from_queue: yard_sprinkler_ctrlr
|
||||
- sprinkler.start_single_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
- sprinkler.shutdown: yard_sprinkler_ctrlr
|
||||
- sprinkler.next_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.previous_valve: yard_sprinkler_ctrlr
|
||||
- sprinkler.pause: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume: yard_sprinkler_ctrlr
|
||||
- sprinkler.resume_or_start_full_cycle: yard_sprinkler_ctrlr
|
||||
- sprinkler.queue_valve:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 2
|
||||
run_duration: 900s
|
||||
- sprinkler.clear_queued_valves: yard_sprinkler_ctrlr
|
||||
- sprinkler.set_multiplier:
|
||||
id: yard_sprinkler_ctrlr
|
||||
multiplier: 1.5
|
||||
- sprinkler.set_repeat:
|
||||
id: yard_sprinkler_ctrlr
|
||||
repeat: 2
|
||||
- sprinkler.set_divider:
|
||||
id: yard_sprinkler_ctrlr
|
||||
divider: 2
|
||||
- sprinkler.set_valve_run_duration:
|
||||
id: yard_sprinkler_ctrlr
|
||||
valve_number: 0
|
||||
run_duration: 600s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: switch2
|
||||
optimistic: true
|
||||
|
||||
sprinkler:
|
||||
- id: yard_sprinkler_ctrlr
|
||||
main_switch: Yard Sprinklers
|
||||
auto_advance_switch: Yard Sprinklers Auto Advance
|
||||
reverse_switch: Yard Sprinklers Reverse
|
||||
pump_start_pump_delay: 2s
|
||||
pump_stop_valve_delay: 4s
|
||||
pump_switch_off_during_valve_open_delay: true
|
||||
valve_open_delay: 5s
|
||||
valves:
|
||||
- valve_switch: Yard Valve 0
|
||||
enable_switch: Enable Yard Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 1
|
||||
enable_switch: Enable Yard Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Yard Valve 2
|
||||
enable_switch: Enable Yard Valve 2
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- id: garden_sprinkler_ctrlr
|
||||
main_switch: Garden Sprinklers
|
||||
auto_advance_switch: Garden Sprinklers Auto Advance
|
||||
reverse_switch: Garden Sprinklers Reverse
|
||||
valve_overlap: 5s
|
||||
valves:
|
||||
- valve_switch: Garden Valve 0
|
||||
enable_switch: Enable Garden Valve 0
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
||||
- valve_switch: Garden Valve 1
|
||||
enable_switch: Enable Garden Valve 1
|
||||
pump_switch_id: switch1
|
||||
run_duration: 10s
|
||||
valve_switch_id: switch2
|
36
tests/components/sps30/test.esp32-c3-idf.yaml
Normal file
36
tests/components/sps30/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
i2c:
|
||||
- id: i2c_sps30
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: sps30
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
id: workshop_PM_1_0
|
||||
pm_2_5:
|
||||
name: Workshop PM <2.5µm Weight concentration
|
||||
id: workshop_PM_2_5
|
||||
pm_4_0:
|
||||
name: Workshop PM <4µm Weight concentration
|
||||
id: workshop_PM_4_0
|
||||
pm_10_0:
|
||||
name: Workshop PM <10µm Weight concentration
|
||||
id: workshop_PM_10_0
|
||||
pmc_0_5:
|
||||
name: Workshop PM <0.5µm Number concentration
|
||||
id: workshop_PMC_0_5
|
||||
pmc_1_0:
|
||||
name: Workshop PM <1µm Number concentration
|
||||
id: workshop_PMC_1_0
|
||||
pmc_2_5:
|
||||
name: Workshop PM <2.5µm Number concentration
|
||||
id: workshop_PMC_2_5
|
||||
pmc_4_0:
|
||||
name: Workshop PM <4µm Number concentration
|
||||
id: workshop_PMC_4_0
|
||||
pmc_10_0:
|
||||
name: Workshop PM <10µm Number concentration
|
||||
id: workshop_PMC_10_0
|
||||
address: 0x69
|
||||
update_interval: 10s
|
36
tests/components/sps30/test.esp32-c3.yaml
Normal file
36
tests/components/sps30/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
i2c:
|
||||
- id: i2c_sps30
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: sps30
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
id: workshop_PM_1_0
|
||||
pm_2_5:
|
||||
name: Workshop PM <2.5µm Weight concentration
|
||||
id: workshop_PM_2_5
|
||||
pm_4_0:
|
||||
name: Workshop PM <4µm Weight concentration
|
||||
id: workshop_PM_4_0
|
||||
pm_10_0:
|
||||
name: Workshop PM <10µm Weight concentration
|
||||
id: workshop_PM_10_0
|
||||
pmc_0_5:
|
||||
name: Workshop PM <0.5µm Number concentration
|
||||
id: workshop_PMC_0_5
|
||||
pmc_1_0:
|
||||
name: Workshop PM <1µm Number concentration
|
||||
id: workshop_PMC_1_0
|
||||
pmc_2_5:
|
||||
name: Workshop PM <2.5µm Number concentration
|
||||
id: workshop_PMC_2_5
|
||||
pmc_4_0:
|
||||
name: Workshop PM <4µm Number concentration
|
||||
id: workshop_PMC_4_0
|
||||
pmc_10_0:
|
||||
name: Workshop PM <10µm Number concentration
|
||||
id: workshop_PMC_10_0
|
||||
address: 0x69
|
||||
update_interval: 10s
|
36
tests/components/sps30/test.esp32-idf.yaml
Normal file
36
tests/components/sps30/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
i2c:
|
||||
- id: i2c_sps30
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: sps30
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
id: workshop_PM_1_0
|
||||
pm_2_5:
|
||||
name: Workshop PM <2.5µm Weight concentration
|
||||
id: workshop_PM_2_5
|
||||
pm_4_0:
|
||||
name: Workshop PM <4µm Weight concentration
|
||||
id: workshop_PM_4_0
|
||||
pm_10_0:
|
||||
name: Workshop PM <10µm Weight concentration
|
||||
id: workshop_PM_10_0
|
||||
pmc_0_5:
|
||||
name: Workshop PM <0.5µm Number concentration
|
||||
id: workshop_PMC_0_5
|
||||
pmc_1_0:
|
||||
name: Workshop PM <1µm Number concentration
|
||||
id: workshop_PMC_1_0
|
||||
pmc_2_5:
|
||||
name: Workshop PM <2.5µm Number concentration
|
||||
id: workshop_PMC_2_5
|
||||
pmc_4_0:
|
||||
name: Workshop PM <4µm Number concentration
|
||||
id: workshop_PMC_4_0
|
||||
pmc_10_0:
|
||||
name: Workshop PM <10µm Number concentration
|
||||
id: workshop_PMC_10_0
|
||||
address: 0x69
|
||||
update_interval: 10s
|
36
tests/components/sps30/test.esp32.yaml
Normal file
36
tests/components/sps30/test.esp32.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
i2c:
|
||||
- id: i2c_sps30
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: sps30
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
id: workshop_PM_1_0
|
||||
pm_2_5:
|
||||
name: Workshop PM <2.5µm Weight concentration
|
||||
id: workshop_PM_2_5
|
||||
pm_4_0:
|
||||
name: Workshop PM <4µm Weight concentration
|
||||
id: workshop_PM_4_0
|
||||
pm_10_0:
|
||||
name: Workshop PM <10µm Weight concentration
|
||||
id: workshop_PM_10_0
|
||||
pmc_0_5:
|
||||
name: Workshop PM <0.5µm Number concentration
|
||||
id: workshop_PMC_0_5
|
||||
pmc_1_0:
|
||||
name: Workshop PM <1µm Number concentration
|
||||
id: workshop_PMC_1_0
|
||||
pmc_2_5:
|
||||
name: Workshop PM <2.5µm Number concentration
|
||||
id: workshop_PMC_2_5
|
||||
pmc_4_0:
|
||||
name: Workshop PM <4µm Number concentration
|
||||
id: workshop_PMC_4_0
|
||||
pmc_10_0:
|
||||
name: Workshop PM <10µm Number concentration
|
||||
id: workshop_PMC_10_0
|
||||
address: 0x69
|
||||
update_interval: 10s
|
36
tests/components/sps30/test.esp8266.yaml
Normal file
36
tests/components/sps30/test.esp8266.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
i2c:
|
||||
- id: i2c_sps30
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: sps30
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
id: workshop_PM_1_0
|
||||
pm_2_5:
|
||||
name: Workshop PM <2.5µm Weight concentration
|
||||
id: workshop_PM_2_5
|
||||
pm_4_0:
|
||||
name: Workshop PM <4µm Weight concentration
|
||||
id: workshop_PM_4_0
|
||||
pm_10_0:
|
||||
name: Workshop PM <10µm Weight concentration
|
||||
id: workshop_PM_10_0
|
||||
pmc_0_5:
|
||||
name: Workshop PM <0.5µm Number concentration
|
||||
id: workshop_PMC_0_5
|
||||
pmc_1_0:
|
||||
name: Workshop PM <1µm Number concentration
|
||||
id: workshop_PMC_1_0
|
||||
pmc_2_5:
|
||||
name: Workshop PM <2.5µm Number concentration
|
||||
id: workshop_PMC_2_5
|
||||
pmc_4_0:
|
||||
name: Workshop PM <4µm Number concentration
|
||||
id: workshop_PMC_4_0
|
||||
pmc_10_0:
|
||||
name: Workshop PM <10µm Number concentration
|
||||
id: workshop_PMC_10_0
|
||||
address: 0x69
|
||||
update_interval: 10s
|
36
tests/components/sps30/test.rp2040.yaml
Normal file
36
tests/components/sps30/test.rp2040.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
i2c:
|
||||
- id: i2c_sps30
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: sps30
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
id: workshop_PM_1_0
|
||||
pm_2_5:
|
||||
name: Workshop PM <2.5µm Weight concentration
|
||||
id: workshop_PM_2_5
|
||||
pm_4_0:
|
||||
name: Workshop PM <4µm Weight concentration
|
||||
id: workshop_PM_4_0
|
||||
pm_10_0:
|
||||
name: Workshop PM <10µm Weight concentration
|
||||
id: workshop_PM_10_0
|
||||
pmc_0_5:
|
||||
name: Workshop PM <0.5µm Number concentration
|
||||
id: workshop_PMC_0_5
|
||||
pmc_1_0:
|
||||
name: Workshop PM <1µm Number concentration
|
||||
id: workshop_PMC_1_0
|
||||
pmc_2_5:
|
||||
name: Workshop PM <2.5µm Number concentration
|
||||
id: workshop_PMC_2_5
|
||||
pmc_4_0:
|
||||
name: Workshop PM <4µm Number concentration
|
||||
id: workshop_PMC_4_0
|
||||
pmc_10_0:
|
||||
name: Workshop PM <10µm Number concentration
|
||||
id: workshop_PMC_10_0
|
||||
address: 0x69
|
||||
update_interval: 10s
|
25
tests/components/ssd1306_i2c/test.esp32-c3-idf.yaml
Normal file
25
tests/components/ssd1306_i2c/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1306_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
contrast: 60%
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_i2c/test.esp32-c3.yaml
Normal file
25
tests/components/ssd1306_i2c/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1306_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
contrast: 60%
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_i2c/test.esp32-idf.yaml
Normal file
25
tests/components/ssd1306_i2c/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1306_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
contrast: 60%
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_i2c/test.esp32.yaml
Normal file
25
tests/components/ssd1306_i2c/test.esp32.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1306_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
contrast: 60%
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_i2c/test.esp8266.yaml
Normal file
25
tests/components/ssd1306_i2c/test.esp8266.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1306_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
contrast: 60%
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_i2c/test.rp2040.yaml
Normal file
25
tests/components/ssd1306_i2c/test.rp2040.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1306_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
contrast: 60%
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_spi/test.esp32-c3-idf.yaml
Normal file
25
tests/components/ssd1306_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1306_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1306_spi
|
||||
model: SSD1306 128x64
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_spi/test.esp32-c3.yaml
Normal file
25
tests/components/ssd1306_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1306_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1306_spi
|
||||
model: SSD1306 128x64
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_spi/test.esp32-idf.yaml
Normal file
25
tests/components/ssd1306_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1306_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1306_spi
|
||||
model: SSD1306 128x64
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_spi/test.esp32.yaml
Normal file
25
tests/components/ssd1306_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1306_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1306_spi
|
||||
model: SSD1306 128x64
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_spi/test.esp8266.yaml
Normal file
25
tests/components/ssd1306_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1306_spi
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: ssd1306_spi
|
||||
model: SSD1306 128x64
|
||||
cs_pin: 15
|
||||
dc_pin: 16
|
||||
reset_pin: 5
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1306_spi/test.rp2040.yaml
Normal file
25
tests/components/ssd1306_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1306_spi
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_spi
|
||||
model: SSD1306 128x64
|
||||
cs_pin: 5
|
||||
dc_pin: 6
|
||||
reset_pin: 7
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1322_spi/test.esp32-c3-idf.yaml
Normal file
25
tests/components/ssd1322_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1322_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1322_spi
|
||||
model: SSD1322 256x64
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1322_spi/test.esp32-c3.yaml
Normal file
25
tests/components/ssd1322_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1322_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1322_spi
|
||||
model: SSD1322 256x64
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1322_spi/test.esp32-idf.yaml
Normal file
25
tests/components/ssd1322_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1322_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1322_spi
|
||||
model: SSD1322 256x64
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1322_spi/test.esp32.yaml
Normal file
25
tests/components/ssd1322_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1322_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1322_spi
|
||||
model: SSD1322 256x64
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1322_spi/test.esp8266.yaml
Normal file
25
tests/components/ssd1322_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1322_spi
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: ssd1322_spi
|
||||
model: SSD1322 256x64
|
||||
cs_pin: 15
|
||||
dc_pin: 16
|
||||
reset_pin: 5
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1322_spi/test.rp2040.yaml
Normal file
25
tests/components/ssd1322_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1322_spi
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1322_spi
|
||||
model: SSD1322 256x64
|
||||
cs_pin: 5
|
||||
dc_pin: 6
|
||||
reset_pin: 7
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1325_spi/test.esp32-c3-idf.yaml
Normal file
25
tests/components/ssd1325_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1325_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1325_spi
|
||||
model: SSD1325 128x64
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1325_spi/test.esp32-c3.yaml
Normal file
25
tests/components/ssd1325_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1325_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1325_spi
|
||||
model: SSD1325 128x64
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1325_spi/test.esp32-idf.yaml
Normal file
25
tests/components/ssd1325_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1325_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1325_spi
|
||||
model: SSD1325 128x64
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1325_spi/test.esp32.yaml
Normal file
25
tests/components/ssd1325_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1325_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1325_spi
|
||||
model: SSD1325 128x64
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1325_spi/test.esp8266.yaml
Normal file
25
tests/components/ssd1325_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1325_spi
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: ssd1325_spi
|
||||
model: SSD1325 128x64
|
||||
cs_pin: 15
|
||||
dc_pin: 16
|
||||
reset_pin: 5
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1325_spi/test.rp2040.yaml
Normal file
25
tests/components/ssd1325_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1325_spi
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1325_spi
|
||||
model: SSD1325 128x64
|
||||
cs_pin: 5
|
||||
dc_pin: 6
|
||||
reset_pin: 7
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1327_i2c/test.esp32-c3-idf.yaml
Normal file
24
tests/components/ssd1327_i2c/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1327_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1327_i2c
|
||||
model: SSD1327_128x128
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1327_i2c/test.esp32-c3.yaml
Normal file
24
tests/components/ssd1327_i2c/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1327_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1327_i2c
|
||||
model: SSD1327_128x128
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1327_i2c/test.esp32-idf.yaml
Normal file
24
tests/components/ssd1327_i2c/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1327_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
display:
|
||||
- platform: ssd1327_i2c
|
||||
model: SSD1327_128x128
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1327_i2c/test.esp32.yaml
Normal file
24
tests/components/ssd1327_i2c/test.esp32.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1327_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
display:
|
||||
- platform: ssd1327_i2c
|
||||
model: SSD1327_128x128
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1327_i2c/test.esp8266.yaml
Normal file
24
tests/components/ssd1327_i2c/test.esp8266.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1327_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1327_i2c
|
||||
model: SSD1327_128x128
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1327_i2c/test.rp2040.yaml
Normal file
24
tests/components/ssd1327_i2c/test.rp2040.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
i2c:
|
||||
- id: i2c_ssd1327_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1327_i2c
|
||||
model: SSD1327_128x128
|
||||
reset_pin: 3
|
||||
address: 0x3C
|
||||
id: display1
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 10, 10);
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1327_spi/test.esp32-c3-idf.yaml
Normal file
25
tests/components/ssd1327_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1327_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1327_spi
|
||||
model: SSD1327 128x128
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1327_spi/test.esp32-c3.yaml
Normal file
25
tests/components/ssd1327_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1327_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1327_spi
|
||||
model: SSD1327 128x128
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1327_spi/test.esp32-idf.yaml
Normal file
25
tests/components/ssd1327_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1327_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1327_spi
|
||||
model: SSD1327 128x128
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1327_spi/test.esp32.yaml
Normal file
25
tests/components/ssd1327_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1327_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1327_spi
|
||||
model: SSD1327 128x128
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1327_spi/test.esp8266.yaml
Normal file
25
tests/components/ssd1327_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1327_spi
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: ssd1327_spi
|
||||
model: SSD1327 128x128
|
||||
cs_pin: 15
|
||||
dc_pin: 16
|
||||
reset_pin: 5
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1327_spi/test.rp2040.yaml
Normal file
25
tests/components/ssd1327_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1327_spi
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1327_spi
|
||||
model: SSD1327 128x128
|
||||
cs_pin: 5
|
||||
dc_pin: 6
|
||||
reset_pin: 7
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1331_spi/test.esp32-c3-idf.yaml
Normal file
24
tests/components/ssd1331_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
spi:
|
||||
- id: spi_ssd1331_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1331_spi
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1331_spi/test.esp32-c3.yaml
Normal file
24
tests/components/ssd1331_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
spi:
|
||||
- id: spi_ssd1331_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1331_spi
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1331_spi/test.esp32-idf.yaml
Normal file
24
tests/components/ssd1331_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
spi:
|
||||
- id: spi_ssd1331_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1331_spi
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1331_spi/test.esp32.yaml
Normal file
24
tests/components/ssd1331_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
spi:
|
||||
- id: spi_ssd1331_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1331_spi
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1331_spi/test.esp8266.yaml
Normal file
24
tests/components/ssd1331_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
spi:
|
||||
- id: spi_ssd1331_spi
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: ssd1331_spi
|
||||
cs_pin: 15
|
||||
dc_pin: 16
|
||||
reset_pin: 5
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
24
tests/components/ssd1331_spi/test.rp2040.yaml
Normal file
24
tests/components/ssd1331_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
spi:
|
||||
- id: spi_ssd1331_spi
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1331_spi
|
||||
cs_pin: 5
|
||||
dc_pin: 6
|
||||
reset_pin: 7
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1351_spi/test.esp32-c3-idf.yaml
Normal file
25
tests/components/ssd1351_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1351_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1351_spi
|
||||
model: "SSD1351 128x128"
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1351_spi/test.esp32-c3.yaml
Normal file
25
tests/components/ssd1351_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1351_spi
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: ssd1351_spi
|
||||
model: "SSD1351 128x128"
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
25
tests/components/ssd1351_spi/test.esp32-idf.yaml
Normal file
25
tests/components/ssd1351_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
spi:
|
||||
- id: spi_ssd1351_spi
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ssd1351_spi
|
||||
model: "SSD1351 128x128"
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue