Skip to content

Commit

Permalink
Add some components to the new testing framework (E) (#6176)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbx81 committed Mar 18, 2024
1 parent 95443a4 commit 61f1138
Show file tree
Hide file tree
Showing 111 changed files with 2,106 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/components/e131/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1

e131:

light:
- platform: esp32_rmt_led_strip
id: led_matrix_32x8
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
effects:
- e131:
universe: 1
18 changes: 18 additions & 0 deletions tests/components/e131/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1

e131:

light:
- platform: esp32_rmt_led_strip
id: led_matrix_32x8
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
effects:
- e131:
universe: 1
18 changes: 18 additions & 0 deletions tests/components/e131/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1

e131:

light:
- platform: esp32_rmt_led_strip
id: led_matrix_32x8
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
effects:
- e131:
universe: 1
18 changes: 18 additions & 0 deletions tests/components/e131/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1

e131:

light:
- platform: esp32_rmt_led_strip
id: led_matrix_32x8
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
effects:
- e131:
universe: 1
17 changes: 17 additions & 0 deletions tests/components/e131/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
wifi:
ssid: MySSID
password: password1

e131:

light:
- platform: neopixelbus
name: Neopixelbus Light
pin: 1
type: GRBW
variant: SK6812
method: ESP8266_UART0
num_leds: 256
effects:
- e131:
universe: 1
17 changes: 17 additions & 0 deletions tests/components/e131/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
wifi:
ssid: MySSID
password: password1

e131:

light:
- platform: rp2040_pio_led_strip
id: led_strip
pin: 2
pio: 0
num_leds: 256
rgb_order: GRB
chipset: WS2812
effects:
- e131:
universe: 1
14 changes: 14 additions & 0 deletions tests/components/ee895/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4

sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure
14 changes: 14 additions & 0 deletions tests/components/ee895/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4

sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure
14 changes: 14 additions & 0 deletions tests/components/ee895/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 16
sda: 17

sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure
14 changes: 14 additions & 0 deletions tests/components/ee895/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 16
sda: 17

sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure
14 changes: 14 additions & 0 deletions tests/components/ee895/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4

sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure
14 changes: 14 additions & 0 deletions tests/components/ee895/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4

sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure
24 changes: 24 additions & 0 deletions tests/components/ektf2232/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4

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: ektf2232
interrupt_pin: 6
rts_pin: 7
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
24 changes: 24 additions & 0 deletions tests/components/ektf2232/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4

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: ektf2232
interrupt_pin: 6
rts_pin: 7
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
24 changes: 24 additions & 0 deletions tests/components/ektf2232/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 16
sda: 17

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: ektf2232
interrupt_pin: 14
rts_pin: 15
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
24 changes: 24 additions & 0 deletions tests/components/ektf2232/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 16
sda: 17

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: ektf2232
interrupt_pin: 14
rts_pin: 15
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
24 changes: 24 additions & 0 deletions tests/components/ektf2232/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4

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: ektf2232
interrupt_pin: 12
rts_pin: 13
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
24 changes: 24 additions & 0 deletions tests/components/ektf2232/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4

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: ektf2232
interrupt_pin: 6
rts_pin: 7
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
25 changes: 25 additions & 0 deletions tests/components/emc2101/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 5
sda: 4

emc2101:
pwm:
resolution: 8

output:
- platform: emc2101
id: fan_duty_cycle

sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

0 comments on commit 61f1138

Please sign in to comment.