Class library for a LIS3DSH MEMS digital output motion sensor (acceleromoter).
Dependents: stm32f407 mbed_blinky STM32F407
Diff: LIS3DSH.h
- Revision:
- 1:80b5653015e6
- Parent:
- 0:36febce4f85e
- Child:
- 2:0e2d5c08ef65
diff -r 36febce4f85e -r 80b5653015e6 LIS3DSH.h --- a/LIS3DSH.h Tue Aug 09 13:30:34 2016 +0000 +++ b/LIS3DSH.h Tue Aug 09 13:32:08 2016 +0000 @@ -49,8 +49,8 @@ * while(1) { * acc.ReadData(&X, &Y, &Z); //read X, Y, Z values * acc.ReadAngles(&roll, &pitch); //read roll and pitch angles - * SWO.printf("X: %d Y: %d Z: %d\n", X, Y, Z); - * SWO.printf("Roll: %f Pitch: %f\n", roll, pitch); + * printf("X: %d Y: %d Z: %d\n", X, Y, Z); + * printf("Roll: %f Pitch: %f\n", roll, pitch); * * wait(1.0); //delay before reading next values * }