1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/adxl345
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
app.config.test tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
main.c tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02: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.