1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/mma8x5x
2024-03-26 14:53:35 +01: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 manual test application for the MMA8x5x accelerometer driver.

Usage

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

  • full scale parameter set to +/-2 g
  • 200 Hz output data-rate

To change these parameters, you can override them by setting their corresponding defines in your build environment, e.g.

CFLAGS=-DMMA8X5X_PARAM_ADDR=0x1d make ...

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

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