Skip to content

Commit 2096441

Browse files
committed
Fixes tap delay in example four
1 parent 5be8ada commit 2096441

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/example4_tap/example4_tap.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
44
This example shows the how to enable the tap interrupts.
55
6-
Please refer to the header file for more possible settings, found here:
7-
..\SparkFun_KX13X_Arduino_Library\src\sfe_kx13x_defs.h
8-
96
Written by Elias Santistevan @ SparkFun Electronics, October 2022
107
11-
Product:
8+
Products:
129
10+
SparkFun Triple Axis Accelerometer Breakout - KX132:
1311
https://www.sparkfun.com/products/17871
1412
13+
SparkFun Triple Axis Accelerometer Breakout - KX134:
14+
https://www.sparkfun.com/products/17589
15+
16+
1517
Repository:
1618
1719
https://github.com/sparkfun/SparkFun_KX13X_Arduino_Library
@@ -84,6 +86,6 @@ void loop()
8486
if( kxAccel.unknownTap() || kxAccel.doubleTapDetected() ) // These all share the same bit space
8587
kxAccel.clearInterrupt();
8688

87-
delay(25); // Delay should be 1/ODR (Output Data Rate), default tap ODR is 400Hz
89+
delay(2.5); // Delay should be 1/ODR (Output Data Rate), default tap ODR is 400Hz
8890

8991
}

0 commit comments

Comments
 (0)