An improved fork of the sn74hc595 component for ESPHome.
Changes from the base component:
- You must add the external component as shown in the example
sn74hc595
becomessn74hc595i
in your configuration file- Pins with
inverted: true
will have the correct state on reset. In shortrestore_mode
plays nice withinverted
. This avoids relays pulsing on boot-up and reset.
external_components:
- source: github://gdgib/esphome_sn74hc595@v0.0.2
sn74hc595i:
- id: 'sn74hc595_hub'
latch_pin: D7
oe_pin: D6
sr_count: 2
switch:
- platform: gpio
name: "SN74HC595 Pin #0"
pin:
sn74hc595: sn74hc595_hub
number: 0
inverted: true