1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_lis3dh
Hauke Petersen ed2bb9d3f8 drivers/lis3dh: fixed bug and simplified init()
- changed to SPI_MODE_0
- made init() function use the params struct as parameter
2017-01-26 10:12:44 +01:00
..
main.c drivers/lis3dh: fixed bug and simplified init() 2017-01-26 10:12:44 +01:00
Makefile drivers/lis3dh: fixed bug and simplified init() 2017-01-26 10:12:44 +01:00
README.md lis3dh: New device driver for LIS3DH accelerometer sensors. 2015-01-20 14:53:27 +01:00

About

This is a manual test application for the LIS3DH accelerometer driver.

Usage

This test application will initialize the accelerometer with the following parameters:

  • Sampling Rate: 100Hz
  • Scale: 4G
  • Temperature sensor: Enabled

After initialization, the sensor reads the acceleration values every 100ms and prints them to the STDOUT.