It's used as aid for inertial measurement system

Dependents:   M-G354PDH0_serial_echo_2 M-G354PDH0_serial_echo_1 M-G354PDH0_serial_Lib

Revision:
4:2620ae5391a6
Parent:
3:6aac221b613d
Child:
5:d046009bc7c3
Child:
6:37d4c4e18227
--- a/QMC5883L.h	Wed Jul 19 07:58:23 2017 +0000
+++ b/QMC5883L.h	Thu Oct 11 17:46:43 2018 +0000
@@ -28,7 +28,6 @@
 
 #include "mbed.h"
 #include "math.h"
-#include "ledControl.h"
 
 #define PI 3.14159265359 
 #define GAUSS_TO_MICROTESLA 100
@@ -49,7 +48,6 @@
 #define SET_RESET    0x0B
 #define CHIP_ID      0x0D
 
-extern float mRes;
 /* Magnetometer Gain Settings */
 enum MagScale
 {
@@ -60,6 +58,7 @@
 class QMC5883L
 {
     public:
+        QMC5883L(PinName sda, PinName scl);
         void    init();
         double  getHeading();
         void    readMagData(float* dest);  
@@ -70,11 +69,9 @@
         void    ChipID();
     private:
         float setMagRange(MagScale Mscale);
-//        uint8_t QMC5883L_ReadByte(uint8_t QMC5883L_reg);
-//        void QMC5883L_WriteByte(uint8_t QMC5883L_reg, uint8_t QMC5883L_data);
-//        void readBytes(uint8_t address, uint8_t regAddress, uint8_t byteNum, uint8_t* dest);
+        uint8_t QMC5883L_ReadByte(uint8_t QMC5883L_reg);
+        void QMC5883L_WriteByte(uint8_t QMC5883L_reg, uint8_t QMC5883L_data);
+        I2C QMC5883L_i2c;
 };
 
-#endif
-
-extern Serial pc;
\ No newline at end of file
+#endif
\ No newline at end of file