You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute/porting.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,9 @@ The pinout is stored in the **device config string**.
90
90
|**`B`**| Reset button | • Puts device in pairing |
91
91
|**`L`**| Network led | • Blinks while pairing <br> • Is the backlight sometimes |
92
92
|**`S`**| Switch | • User input <br> • Tactile/touch button or external switch <br> • Spam to put in pairing mode |
93
-
|**`R`**| Relay / Triac | • Output <br> • Non-latching: `RC1` - 1 pin: on when high <br> • Latching: `RC2C3` - 2 pins: pulse on, pulse off |
93
+
|**`R`**| Relay / Triac | • Output <br> • Non-latching: `RC1` - 1 pin: on when high <br> • Latching: `RC2C3` - 2 pins: pulse on, pulse off <br> • Add `i` to invert (active-low): `RC1i`|
94
94
|**`X`**| Cover Switch | • User input for cover control <br> • Format: `XA2B3u` - 2 pins + pull resistor: open button, close button |
95
-
|**`C`**| Cover | • Motor control for curtains/blinds/shades <br> • Format: `CA2B3` - 2 pins: open relay, close relay |
95
+
|**`C`**| Cover | • Motor control for curtains/blinds/shades <br> • Format: `CA2B3` - 2 pins: open relay, close relay <br> • Add `i` to invert both relays (active-low): `CA2B3i`|
96
96
|**`I`**| Indicator LED | • 1 per relay, follows state <br> • Briefly flashes on button press (binding confirmation) <br> • Blinks while pairing if there is no network led |
97
97
98
98
For buttons (`B`), switches (`S`), and cover switches (`X`), the next character chooses the internal pull-up/down resistor:
@@ -101,7 +101,7 @@ For buttons (`B`), switches (`S`), and cover switches (`X`), the next character
101
101
Usually, pressing the button bridges the GPIO pin to Ground (active low).
102
102
⤷ So we need a pull-up resistor `u`: to hold it at VCC (high) while not-pressed.
103
103
104
-
For LEDs, add `i` to invert the state.
104
+
For LEDs (`L`, `I`), relays (`R`), and cover relays (`C`), add `i` to invert the output (active-low).
0 commit comments