This code is used to test the ADXL345 class.