Hey guys, I am trying to do click detection for my LIS3DH accelerometer. For single click, what I should add inside my code? Here is my code, please help me.
LIS3DH_SetClickCFG(LIS3DH_ZD_DISABLE | LIS3DH_ZS_DISABLE | LIS3DH_YD_DISABLE | LIS3DH_YS_DISABLE | LIS3DH_XD_DISABLE |LIS3DH_XS_ENABLE);
Do I need to add Latency, Limit and Window inside the code? I tried to add it but when I call LIS3DH_SetClickLatency(200) inside the function, there was a warning Implicit declaration something like that.