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/Buttons-and-Switches.md
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,19 @@ All board are not born equal so does your own diy realisations, you might have c
10
10
11
11
The first thing is to correctly select the Button or Switch variant accordingly in the "Configure module" or "Configure template" menu.
12
12
the variants supported by ESP8266 are following :
13
-
* Button : Button active low, internal pull-up resistor
14
-
* Button_n : Button active low, no internal pull-up resistor (_n like NoPullUp)
15
-
* Button_i : Button inverted, active high with internal pull-up resistor
16
-
* Button_in : Button inverted, active high no internal pull-up resistor (_in like Inverted NoPullUp)
17
-
* Switch : Switch with internal pull-up resistor
18
-
* Switch_n : Switch without pull-up resistor
13
+
14
+
- Button : Button active low, internal pull-up resistor
15
+
- Button_n : Button active low, no internal pull-up resistor (_n like NoPullUp)
16
+
- Button_i : Button inverted, active high with internal pull-up resistor
17
+
- Button_in : Button inverted, active high no internal pull-up resistor (_in like Inverted NoPullUp)
18
+
- Switch : Switch with internal pull-up resistor
19
+
- Switch_n : Switch without pull-up resistor
19
20
20
21
the ESP32 supports all forementionned variants plus :
21
-
* Button_d : Button with internal pull-down resistor
22
-
* Button_id : Button inverted, active high with internal pull-down resistor
23
-
* Switch_d : Switch with internal pull-down resistor
22
+
23
+
- Button_d : Button with internal pull-down resistor
24
+
- Button_id : Button inverted, active high with internal pull-down resistor
25
+
- Switch_d : Switch with internal pull-down resistor
24
26
25
27
# Button vs. Switch
26
28
A button (also called a push-button) is a momentary or non-latching switch which causes a temporary change in the state of an electrical circuit only while the switch is pressed. An automatic mechanism (i.e. a spring) returns the switch to its default position immediately afterwards, restoring the initial circuit condition.
0 commit comments