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.

Dependencies:   mbed

Fork of ADXL345_I2C by Peter Swanson

Revision:
2:c2067856a052
Parent:
1:d9412b56f98a
diff -r d9412b56f98a -r c2067856a052 ADXL345_I2C.h
--- 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.