gdgib / esphome_sn74hc595

A more controllable fork of the sn74hc595 component for ESPHome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

esphome_sn74hc595

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 becomes sn74hc595i in your configuration file
  • Pins with inverted: true will have the correct state on reset. In short restore_mode plays nice with inverted. This avoids relays pulsing on boot-up and reset.

Example

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

About

A more controllable fork of the sn74hc595 component for ESPHome

License:GNU General Public License v3.0


Languages

Language:C++ 60.3%Language:Python 39.7%