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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Arduino switch and button library for components having 3 switched positions of
15
15
Declare each switch or button, by indicating any 2 digital pins:
16
16
17
17
```c++
18
-
Toggle sw1(3, 4); // GPIO 3 and 4
18
+
Toggle sw1(7, 8); // GPIO 7 and 8
19
19
```
20
20
21
21
The library sets pin in input mode with the internal pull-up resistor enabled by default. All switches have to be repeatedly polled which is done in the `loop()` function.
@@ -48,7 +48,7 @@ This sketch prints every sw1 transition (fully debounced and deglitched):
0 commit comments