My attempt to made a more useful lib. You can get the accelerator and magnetometer.
Fork of LSM303DLH by
Diff: LSM303DLH.h
- Revision:
- 7:275a0a69cff5
- Parent:
- 6:86cf2afe3e52
--- a/LSM303DLH.h Sun Aug 06 22:23:24 2017 +0000 +++ b/LSM303DLH.h Sun Aug 06 23:42:07 2017 +0000 @@ -1,6 +1,5 @@ #include "mbed.h" #include "vector.h" -#include "AnsiGraphicalConsole.h" #include "LSM303DLH_RegisterDef.h" @@ -10,9 +9,13 @@ /** Tilt-compensated compass interface Library for the STMicro LSM303DLH 3-axis magnetometer, 3-axis acceleromter * - * @author Salco <JeSuisSalco@gmail.com> + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. * - * Base on the doccumentation https://cdn-shop.adafruit.com/datasheets/LSM303DLHC.PDF + * + * + * Base on the @see doccumentation https://cdn-shop.adafruit.com/datasheets/LSM303DLHC.PDF * @code * #include "mbed.h" * #include "LSM303DLH.h" @@ -33,7 +36,9 @@ * wait(0.1); * } * } - * @endcode + * @endcode + * + * @author Salco <JeSuisSalco@gmail.com> */ /** enable for MSB @ lower address */