2019-11-26 01:34 PM
What all interrupt registers do I need to setup for a specific amount of of shock for a specific duration?
I specifically want to generate an interrupt when there is a vibration in any direction and should be able to tune the amount of vibration(threshold) to generate the interrupt.
SpiTx(LIS2DH_INT1_CFG, 0xCF);
SpiTx(LIS2DH_INT1_THS, 0x01); //1LSB*15.625mg/LSB=16mg
SpiTx(LIS2DH_INT1_DURATION, 0x00);