Skip to content

Commit 47ddab3

Browse files
committed
doku
1 parent b8378fb commit 47ddab3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Each physical button requires its own `OneButton` instance. You can initialize t
3838
*/
3939

4040
OneButton btn = OneButton(
41-
BUTTON_PIN, // Input pin for the button
42-
LOW, // Button is active LOW
43-
true // Enable internal pull-up resistor
41+
BUTTON_PIN, // Input pin for the button
42+
true, // Button is active LOW
43+
true // Enable internal pull-up resistor
4444
);
4545
```
4646

@@ -58,9 +58,9 @@ OneButton btn = OneButton(
5858
*/
5959

6060
OneButton btn = OneButton(
61-
BUTTON_PIN, // Input pin for the button
62-
HIGH, // Button is active high
63-
false // Disable internal pull-up resistor
61+
BUTTON_PIN, // Input pin for the button
62+
false, // Button is active high
63+
false // Disable internal pull-up resistor
6464
);
6565
```
6666

@@ -81,7 +81,7 @@ btn.attachClick(handleClick);
8181

8282
// Double Click event attachment with lambda
8383
btn.attachDoubleClick([]() {
84-
Serial.println("Double Press!");
84+
Serial.println("Double Pressed!");
8585
});
8686
```
8787

0 commit comments

Comments
 (0)