Several of the functions refer to a variable thresh, likely an abbreviation for threshold.
The tap function looks promising.
Accelerometer interrupts generally are tripped by a change larger than the threshold and exceeding a period of time.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
http://www.espruino.com/modules/ADXL345.js
Several of the functions refer to a variable thresh, likely an abbreviation for threshold.
The tap function looks promising.
Accelerometer interrupts generally are tripped by a change larger than the threshold and exceeding a period of time.
The datasheet for the ADXL345 might help you figure it out.
http://www.analog.com/en/products/mems/accelerometers/adxl345.html#product-overview