1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_mma8x5x
Leandro Lanzieri 20c5552920
tests: add Kconfig configuration files for multiple driver tests
Configurations for the following applications have been added:

l3g4200d
lc709203f
lis2dh12
lis3dh
lis3mdl
lpd8808
lpsxxx
lsm303dlhc
lsm6dsl
ltc4150
mag3110
mhz19
mma7660
mma8x5x
motor_driver
mpl3115a2
mpu9x50
mq3
nvram_spi
mtd_flashpage
mtd_mapper
2021-01-18 10:44:30 +01:00
..
app.config.test tests: add Kconfig configuration files for multiple driver tests 2021-01-18 10:44:30 +01:00
main.c tests: replace SLEEP define 2019-10-10 10:47:38 +02:00
Makefile tests/driver_mma8x5x: adapt README with type param removal 2018-11-20 10:42:14 +01:00
README.md tests/driver_mma8x5x: adapt README with type param removal 2018-11-20 10:42:14 +01: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.