Skip to content

tvlad1234/ADXL345-Cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ADXL345-Cube

ADXL345 Library for STM32Cube
Based on Adafruit ADXL345

Initializing the sensor

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);

Reading the sensor

readADXLAccel(float *gx, float *gy, float *gz) provides the acceleration in m/s^2

Releases

No releases published

Packages

No packages published

Languages