mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/driver_mma8x5x: adapt README with type param removal
This commit is contained in:
parent
a63d76b346
commit
1279697f9f
@ -1,6 +1,6 @@
|
|||||||
include ../Makefile.tests_common
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
USEMODULE += mma8x5x
|
USEMODULE += mma8x5x # will work with all variants
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
@ -3,14 +3,13 @@ This is a manual test application for the MMA8x5x accelerometer driver.
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
This test application will initialize the MMA8x5x sensor with the following parameters:
|
This test application will initialize the MMA8x5x sensor with the following parameters:
|
||||||
- default device type: MMA8652
|
|
||||||
- full scale parameter set to +/-2 g
|
- full scale parameter set to +/-2 g
|
||||||
- 200 Hz output data-rate
|
- 200 Hz output data-rate
|
||||||
|
|
||||||
To change these parameters, you can override them by setting their corresponding
|
To change these parameters, you can override them by setting their corresponding
|
||||||
defines in your build environment, e.g.
|
defines in your build environment, e.g.
|
||||||
```bash
|
```bash
|
||||||
CFLAGS=-DMMA8X5X_PARAM_TYPE=MMA8X5X_TYPE_MMA8451 make ...
|
CFLAGS=-DMMA8X5X_PARAM_ADDR=0x1d make ...
|
||||||
```
|
```
|
||||||
See RIOT/drivers/mma8x5x_params.h for the default configuration.
|
See RIOT/drivers/mma8x5x_params.h for the default configuration.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user