How to calibrate digital output accelerometers like ADXL345 or ADXL345 to obtain the outputs as 'g' values? I have interfaced it with TM4C1294XL and the communication is through I2C protocol. Platform used is Energia.