28 lines
442 B
YAML
28 lines
442 B
YAML
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
|