mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[sn74hc595] Enforce type field to distinguish gpio vs spi mode (#6609)
This commit is contained in:
27
tests/components/sn74hc595/test.esp32-c3-idf.yaml
Normal file
27
tests/components/sn74hc595/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_sn74hc595
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
sn74hc595:
|
||||
- id: sn74hc595_hub
|
||||
clock_pin: 0
|
||||
data_pin: 1
|
||||
latch_pin: 2
|
||||
oe_pin: 3
|
||||
sr_count: 2
|
||||
- id: sn74hc595_hub_2
|
||||
latch_pin: 8
|
||||
oe_pin: 9
|
||||
spi_id: spi_sn74hc595
|
||||
type: spi
|
||||
sr_count: 2
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: SN74HC595 Pin 0
|
||||
pin:
|
||||
sn74hc595: sn74hc595_hub_2
|
||||
number: 0
|
||||
inverted: false
|
27
tests/components/sn74hc595/test.esp32-c3.yaml
Normal file
27
tests/components/sn74hc595/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_sn74hc595
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
sn74hc595:
|
||||
- id: sn74hc595_hub
|
||||
clock_pin: 0
|
||||
data_pin: 1
|
||||
latch_pin: 2
|
||||
oe_pin: 3
|
||||
sr_count: 2
|
||||
- id: sn74hc595_hub_2
|
||||
latch_pin: 8
|
||||
oe_pin: 9
|
||||
spi_id: spi_sn74hc595
|
||||
type: spi
|
||||
sr_count: 2
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: SN74HC595 Pin 0
|
||||
pin:
|
||||
sn74hc595: sn74hc595_hub_2
|
||||
number: 0
|
||||
inverted: false
|
27
tests/components/sn74hc595/test.esp32-idf.yaml
Normal file
27
tests/components/sn74hc595/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_sn74hc595
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
sn74hc595:
|
||||
- id: sn74hc595_hub
|
||||
clock_pin: 12
|
||||
data_pin: 13
|
||||
latch_pin: 14
|
||||
oe_pin: 18
|
||||
sr_count: 2
|
||||
- id: sn74hc595_hub_2
|
||||
latch_pin: 21
|
||||
oe_pin: 22
|
||||
spi_id: spi_sn74hc595
|
||||
type: spi
|
||||
sr_count: 2
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: SN74HC595 Pin 0
|
||||
pin:
|
||||
sn74hc595: sn74hc595_hub_2
|
||||
number: 0
|
||||
inverted: false
|
27
tests/components/sn74hc595/test.esp32.yaml
Normal file
27
tests/components/sn74hc595/test.esp32.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_sn74hc595
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
sn74hc595:
|
||||
- id: sn74hc595_hub
|
||||
clock_pin: 12
|
||||
data_pin: 13
|
||||
latch_pin: 14
|
||||
oe_pin: 18
|
||||
sr_count: 2
|
||||
- id: sn74hc595_hub_2
|
||||
latch_pin: 21
|
||||
oe_pin: 22
|
||||
spi_id: spi_sn74hc595
|
||||
type: spi
|
||||
sr_count: 2
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: SN74HC595 Pin 0
|
||||
pin:
|
||||
sn74hc595: sn74hc595_hub_2
|
||||
number: 0
|
||||
inverted: false
|
27
tests/components/sn74hc595/test.esp8266.yaml
Normal file
27
tests/components/sn74hc595/test.esp8266.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_sn74hc595
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
sn74hc595:
|
||||
- id: sn74hc595_hub
|
||||
clock_pin: 0
|
||||
data_pin: 2
|
||||
latch_pin: 4
|
||||
oe_pin: 5
|
||||
sr_count: 2
|
||||
- id: sn74hc595_hub_2
|
||||
latch_pin: 15
|
||||
oe_pin: 16
|
||||
spi_id: spi_sn74hc595
|
||||
type: spi
|
||||
sr_count: 2
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: SN74HC595 Pin 0
|
||||
pin:
|
||||
sn74hc595: sn74hc595_hub_2
|
||||
number: 0
|
||||
inverted: false
|
27
tests/components/sn74hc595/test.rp2040.yaml
Normal file
27
tests/components/sn74hc595/test.rp2040.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_sn74hc595
|
||||
clk_pin: 6
|
||||
mosi_pin: 5
|
||||
miso_pin: 4
|
||||
|
||||
sn74hc595:
|
||||
- id: sn74hc595_hub
|
||||
clock_pin: 0
|
||||
data_pin: 1
|
||||
latch_pin: 2
|
||||
oe_pin: 3
|
||||
sr_count: 2
|
||||
- id: sn74hc595_hub_2
|
||||
latch_pin: 8
|
||||
oe_pin: 9
|
||||
spi_id: spi_sn74hc595
|
||||
type: spi
|
||||
sr_count: 2
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: SN74HC595 Pin 0
|
||||
pin:
|
||||
sn74hc595: sn74hc595_hub_2
|
||||
number: 0
|
||||
inverted: false
|
Reference in New Issue
Block a user