ADXL345 Interrupt

Hi, i’m wondering to setup interrupt when accelerometer slope is more than 2degrees.
It’s possible to set it with i2cLib and ADXL345 library ? Because when i set interrupt normally, adxl345 is all the time checking slope and it all the time changes.

Thanks for any help !

Please post your code. Please use code tags.