Skip to content

Allow using shift register outputs for pin assignments #14

@cass3825

Description

@cass3825

Here's what I'm hoping to accomplish:

display:
- platform: 7segment_gpio
  id: lcd
  digit_pins: [G1,G2,G3,G4]
  iterate_digits: false
  segment_pins: [G,F,E,D,C,B,A,DP]

sn74hc595:
  - id: 'sn74hc595_hub'
    data_pin: GPIO20
    clock_pin: GPIO8
    latch_pin: GPIO19
    oe_pin: GPIO21
    sr_count: 3

output:
  - platform: gpio
    id: "A"
    pin:
      sn74hc595: sn74hc595_hub
      number: 0
      inverted: false

  - platform: gpio
    id: "B"
    pin:
      sn74hc595: sn74hc595_hub
      number: 1
      inverted: false

  - platform: gpio
    id: "C"
    pin:
      sn74hc595: sn74hc595_hub
      number: 2
      inverted: false

  - platform: gpio
    id: "D"
    pin:
      sn74hc595: sn74hc595_hub
      number: 3
      inverted: false

  - platform: gpio
    id: "E"
    pin:
      sn74hc595: sn74hc595_hub
      number: 4
      inverted: false

  - platform: gpio
    id: "F"
    pin:
      sn74hc595: sn74hc595_hub
      number: 5
      inverted: false

  - platform: gpio
    id: "G"
    pin:
      sn74hc595: sn74hc595_hub
      number: 6
      inverted: false

  - platform: gpio
    id: "DP"
    pin:
      sn74hc595: sn74hc595_hub
      number: 7
      inverted: false

  - platform: gpio
    id: "G1"
    pin:
      sn74hc595: sn74hc595_hub
      number: 8
      inverted: True

  - platform: gpio
    id: "G2"
    pin:
      sn74hc595: sn74hc595_hub
      number: 9
      inverted: True

  - platform: gpio
    id: "G3"
    pin:
      sn74hc595: sn74hc595_hub
      number: 10
      inverted: True

  - platform: gpio
    id: "G4"
    pin:
      sn74hc595: sn74hc595_hub
      number: 11
      inverted: True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions