Sample codes for ADXL345 Digital 3-Axis Accelerometer