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
I found the current documentation confusing as it did not clearly state whether the code is look at the pin # or GPIO #. Looking on the forums others were having the same issue. My goal is to make it clear that GPIO # is what users should be entering into their configs.
Copy file name to clipboardExpand all lines: source/_components/switch.rpi_gpio.markdown
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,20 @@ switch:
30
30
Configuration variables:
31
31
32
32
- **ports** array (*Required*): Array of used ports.
33
-
- **port: name** (*Required*): Port numbers and corresponding names.
33
+
- **port: name** (*Required*): Port numbers and corresponding names (GPIO #).
34
34
- **invert_logic** (*Optional*): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).
35
35
36
36
For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#GPIO_connector) about the Raspberry Pi.
37
37
38
+
A common question is what does Port refer to, this number is the actual GPIO # not the pin #.
39
+
For example, if you have a relay connected to pin 11 its GPIO # is 17.
0 commit comments