Skip to content

Commit c84af94

Browse files
committed
Remove call to setIntEnabled, attachInterrupt enables interrupts
1 parent 44fe330 commit c84af94

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

libraries/CurieIMU/examples/ShockDetect/ShockDetect.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ void setup() {
3838
CurieIMU.setDetectionDuration(CURIE_IMU_SHOCK, CURIE_IMU_TAP_SHOCK_DURATION_50MS); // 50ms
3939
CurieIMU.enableInterrupt(CURIE_IMU_SHOCK, true);
4040

41-
/* Enable Interrupts Notifications */
42-
CurieIMU.setIntEnabled(true);
43-
4441
Serial.println("IMU initialisation complete, waiting for events...");
4542
}
4643

libraries/CurieIMU/examples/StepCount/StepCount.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ void setup() {
5353
// step event handler:
5454
CurieIMU.attachInterrupt(eventCallback);
5555
CurieIMU.enableInterrupt(CURIE_IMU_STEP, true); // turn on step detection
56-
CurieIMU.setIntEnabled(true); // enable interrupts
5756

5857
Serial.println("IMU initialisation complete, waiting for events...");
5958
}

libraries/CurieIMU/examples/TapDetect/TapDetect.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ void setup() {
4343
// Enable Double-Tap detection
4444
CurieIMU.enableInterrupt(CURIE_IMU_DOUBLE_TAP, true);
4545

46-
// Enable Interrupts Notifications
47-
CurieIMU.setIntEnabled(true);
48-
4946
Serial.println("IMU initialisation complete, waiting for events...");
5047
}
5148

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy