How to make LIS2DW12 generate interrupt for major vibrations and not for small vibrations?
I have LIS2DW12 connected to STM32L072RZT6 MCU. INT1 pin of LIS2DW12 is connected to PC13 (wakeup pin2) of MCU. I am trying to wake up MCU from standby using LIS2DW12 with the 6D orientation example in https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lis2dw12_STdC/example
But I can see that MCU wakes up even for small vibrations for example if I tap on the table where the set up is kept.
How can I improve the code so that the interrupt is generated only when there are major vibrations?
