This library enables users to communicate with the ADXL345 accelerometer through the I2C bus on the mbed. The API names are similar and work nearly the same way as those made in the SPI libraries for the ADXL345.
Fork of ADXL345_I2C by
--- a/ADXL345_I2C.h Thu May 12 01:19:36 2011 +0000 +++ b/ADXL345_I2C.h Mon Oct 02 08:28:52 2017 +0000 @@ -146,7 +146,7 @@ * @param Pointer to a buffer to hold the accelerometer value for the * x-axis, y-axis and z-axis [in that order]. */ - void getOutput(int* readings); + void getOutput(int16_t* readings); /** * Read the device ID register on the device.