@@ -38,9 +38,9 @@ Each physical button requires its own `OneButton` instance. You can initialize t
38
38
*/
39
39
40
40
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
44
44
);
45
45
```
46
46
@@ -58,9 +58,9 @@ OneButton btn = OneButton(
58
58
*/
59
59
60
60
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
64
64
);
65
65
```
66
66
@@ -81,7 +81,7 @@ btn.attachClick(handleClick);
81
81
82
82
// Double Click event attachment with lambda
83
83
btn.attachDoubleClick([]() {
84
- Serial.println("Double Press !");
84
+ Serial.println("Double Pressed !");
85
85
});
86
86
```
87
87
0 commit comments