File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/TouchPads/TouchTypes Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,19 @@ void loop() {
30
30
// polling the sensor for new measure
31
31
carrier.Buttons .update ();
32
32
33
- if (carrier.Button1 .onTouchDown ()) {
33
+ if (carrier.Button0 .onTouchDown ()) {
34
34
Serial.println (" Touched Down Button 1" );
35
35
}
36
- if (carrier.Button2 .onTouchUp ()) {
36
+ if (carrier.Button1 .onTouchUp ()) {
37
37
Serial.println (" Release Touch Button 2" );
38
38
}
39
- if (carrier.Button3 .onTouchChange ()) {
39
+ if (carrier.Button2 .onTouchChange ()) {
40
40
Serial.println (" Changed Touch Button 3" );
41
41
}
42
- if (carrier.Button4 .getTouch ()) {
42
+ if (carrier.Button3 .getTouch ()) {
43
43
Serial.println (" Touching Button 4" );
44
44
}
45
- if (carrier.Button5 .getTouch ()) {
45
+ if (carrier.Button4 .getTouch ()) {
46
46
Serial.println (" Touching Button 5" );
47
47
}
48
48
delay (20 );
You can’t perform that action at this time.
0 commit comments