Skip to content

Commit

Permalink
update for new pin schema
Browse files Browse the repository at this point in the history
  • Loading branch information
velijv committed Jan 11, 2024
1 parent f79dba3 commit 47094a5
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions switchman-m5-3c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,15 @@ switch:
id: ${device_name}_switch_left
pin:
number: 23
allow_other_uses: true

- platform: gpio
name: Center
restore_mode: RESTORE_DEFAULT_ON
id: ${device_name}_switch_center
pin:
number: 19
allow_other_uses: true
on_turn_on:
light.turn_on: ${device_name}_led_center
on_turn_off:
Expand All @@ -194,6 +196,7 @@ switch:
id: ${device_name}_switch_right
pin:
number: 22
allow_other_uses: true
on_turn_on:
light.turn_on: ${device_name}_led_right
on_turn_off:
Expand All @@ -206,20 +209,28 @@ output:
id: red_output

- platform: ledc
pin: 5
pin:
number: 5
allow_other_uses: true
frequency: 1000 Hz
id: blue_output

- platform: gpio
pin: 23
pin:
number: 23
allow_other_uses: true
id: ${device_name}_output_led_left

- platform: gpio
pin: 19
pin:
number: 19
allow_other_uses: true
id: ${device_name}_output_led_center

- platform: gpio
pin: 22
pin:
number: 22
allow_other_uses: true
id: ${device_name}_output_led_right

light:
Expand All @@ -244,6 +255,7 @@ light:
pin:
number: 5
inverted: true
allow_other_uses: true
# individual red LEDs
- platform: binary
id: ${device_name}_led_left
Expand Down

0 comments on commit 47094a5

Please sign in to comment.