ADXL345 Library for STM32Cube
Based on Adafruit ADXL345
Before reading the sensor, it must be initialized with adxlBegin.
adxlBegin takes a pointer to the I2C Handler and returns 1 if connection was successful.
Example: adxlBegin(&hi2c1);
readADXLAccel(float *gx, float *gy, float *gz)
provides the acceleration in m/s^2