1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_adxl345
2020-11-18 18:38:51 +01:00
..
app.config.test tests/drivers: add Kconfig configuration files and to CI test 2020-11-18 18:38:51 +01:00
main.c drivers/adxl345: fixes & cleanup 2018-08-03 11:12:25 +02:00
Makefile tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
README.md tests/adxl345: add functionnal test 2017-03-20 22:52:58 +01:00

About

This is a test application for the ADXL345 accelerometer.

Datasheet

http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf

Usage

This test application will initialize the ADXL345 sensor with the following parameters:

  • I2C device address set to 0x53
  • full scale parameter set to +/-16 g
  • 200 Hz output data-rate

See RIOT/drivers/adxl345_params.h for the default configuration.

After initialization, the sensor reads the x-, y-, z-axis values every 100ms and prints them to STDOUT.