Example of reading and magnetometer sensor (HMC5883L)

Dependencies:   MODSERIAL mbed-rtos mbed

Fork of ReadingMag_HMC5883L by José Claudio

Revision:
1:aea254b39529
Parent:
0:6bc5f85ca6fa
--- a/HMC5883L.h	Tue May 21 13:48:10 2013 +0000
+++ b/HMC5883L.h	Tue May 24 12:08:14 2016 +0000
@@ -30,8 +30,9 @@
     float getMx();
     float getMy();
     float getMz();
+    void Write(char reg_address, char data);
 private:
-    void Write(char reg_address, char data);
+    
     char Read(char data);
     void MultiByteRead(char address, char* output, int size); 
     I2C i2c;