mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-23 21:51:53 +01:00
Correct output pin declaration (#9)
The way it was declared it didn't invert. It's needed an extra indentation in the line "inverted: True".
This commit is contained in:
parent
dc929e3186
commit
c3c50f2854
@ -250,8 +250,9 @@ of the basic functions.
|
||||
# Register the green LED as a dimmable output ....
|
||||
- platform: esp8266_pwm
|
||||
id: s20_green_led
|
||||
pin: GPIO13
|
||||
inverted: True
|
||||
pin:
|
||||
number: GPIO13
|
||||
inverted: True
|
||||
|
||||
light:
|
||||
# ... and then make a light out of it.
|
||||
@ -280,7 +281,7 @@ in Home Assistant, replace the last part with this:
|
||||
id: s20_green_led
|
||||
pin:
|
||||
number: GPIO13
|
||||
inverted: True
|
||||
inverted: True
|
||||
# Note: do *not* make the relay a dimmable (PWM) signal, relays cannot handle that
|
||||
- platform: binary
|
||||
id: s20_relay
|
||||
|
Loading…
Reference in New Issue
Block a user