Hello, I used your example to configure the LIS2DS12, in single TAP mode, but the INT1 pin always remains high even when reading the TAP_SRC register. Could you give me some suggestions of what is missing in the configuration?
Single-tap example
Hereafter an example code which implements the SW routine for single-tap detection.
1. Write 60h in CTRL1
// Turn on the accelerometer
// ODR = 400 Hz, FS = ±2 g
2. Write 38h in CTRL3 // Enable tap detection on X, Y, Z-axis
3. Write 09h in TAP_6D_THS // Set tap threshold
4. Write 06h in INT_DUR // Set quiet and shock time windows
5. Write 00h in WAKE_UP_THS // Only single tap enabled (SINGLE_DOUBLE_TAP = 0)
6. Write 40h in CTRL4 // Single-tap interrupt driven to INT1 pin
