adding ADXL345 functions