Skip to content

Commit 2f8fd3e

Browse files
authored
Add files via upload
1 parent 50ef335 commit 2f8fd3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/SwitchExample/SwitchExample.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const byte pushButtonpin = 10; // downButton
55
const byte toggleSwitchpin = 9; // upButton
6-
const byte multiresponseButtonpin = 8; // selectButton
6+
const byte multiresponseButtonpin = 4; // selectButton
77
const byte alleventsButtonpin = 7; // weldButton
88
const byte buzzerPin = 3; // for beep when a switch is pressed
99

@@ -22,8 +22,9 @@ void beepCallbackFunction(void* s) // optional
2222
}
2323

2424
void setup()
25-
{ Serial.begin(9600);
26-
toggleSwitch.setBeepAllCallback(&beepCallbackFunction/*, "Beep done"*/); // needed only for one switch because of static
25+
{ Serial.begin(115200);
26+
toggleSwitch.setBeepAllCallback(&beepCallbackFunction/*, "Beep done"*/); // needed only for one switch because of static
27+
// multiresponseButton.doubleClickPeriod=0; disable doubleClick()
2728
}
2829

2930
void loop()

0 commit comments

Comments
 (0)