Skip to content

Commit c0c758c

Browse files
authored
Merge pull request #1492 from 0xdefec71f/patch-1
fix markup for compatibility to Material for MkDocs
2 parents 06a2bc5 + 5476d29 commit c0c758c

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/Buttons-and-Switches.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ All board are not born equal so does your own diy realisations, you might have c
1010

1111
The first thing is to correctly select the Button or Switch variant accordingly in the "Configure module" or "Configure template" menu.
1212
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
1920

2021
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
2426

2527
# Button vs. Switch
2628
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

Comments
 (0)