AnsweredAssumed Answered

Configure LIS2DH for both single click and double click

Question asked by chandan bhatia on May 8, 2018
Latest reply on May 9, 2018 by chandan bhatia

Hello, I want to configure LIS2DH for generating interrupt for single click as well as double click, Can we do that? I am using INT1 for FIFO so INT2 is for clicks interrupt, Individually I can able to get interrupt from them but when I am combining single and double click in same code, I am not able to get single interrupt, Its showing only for double INT.

 

My sensors configurations are as below. Please suggest.

 

CTRL_REG1 =0x37
CTRL_REG2 = 0x00
CTRL_REG3 = 0x04
CTRL_REG4 = 0x10
CTRL_REG5 = 0x40
CTRL_REG6 = 0x80

FIFO_CTRL_REG=0x99

CLICK_CFG = 0x3F
CLICK_THS = 0x20
TIME_LIMIT = 0x10
TIME_LATENCY = 0x10
TIME_WINDOW = 0x40

 

Thanks

Outcomes