HMC5883L Digital Compass Library for maple mini
Fork of HMC5883L by
Revision 3:502f2b8b17ea, committed 2016-06-03
- Comitter:
- tabris2015
- Date:
- Fri Jun 03 03:56:00 2016 +0000
- Parent:
- 2:bbc9ad18fd3e
- Commit message:
- Changed pins for maple mini
Changed in this revision
HMC5883L.cpp | Show annotated file Show diff for this revision Revisions of this file |
HMC5883L.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r bbc9ad18fd3e -r 502f2b8b17ea HMC5883L.cpp --- a/HMC5883L.cpp Wed Aug 05 13:16:12 2015 +0000 +++ b/HMC5883L.cpp Fri Jun 03 03:56:00 2016 +0000 @@ -29,9 +29,10 @@ // Some part of the code is adapted from Adafruit HMC5883 library #include "HMC5883L.h" +#include "pines.h" /* NUCLEO F411RE board */ -static I2C i2c(D14, D15); // setup i2c (SDA,SCL) +static I2C i2c(SDA_PIN, SCL_PIN); // setup i2c (SDA,SCL) static float Gauss_LSB_XY = 1100.0F; // Varies with gain static float Gauss_LSB_Z = 980.0F; // Varies with gain
diff -r bbc9ad18fd3e -r 502f2b8b17ea HMC5883L.h --- a/HMC5883L.h Wed Aug 05 13:16:12 2015 +0000 +++ b/HMC5883L.h Fri Jun 03 03:56:00 2016 +0000 @@ -26,9 +26,11 @@ #ifndef HMC5883L_H #define HMC5883L_H +#define MAPLE_MINI #include "mbed.h" #include "math.h" -#include "ledControl.h" +#include "pines.h" +//#include "ledControl.h" #define PI 3.14159265359 #define GAUSS_TO_MICROTESLA 100