Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HMC5883L by
Diff: HMC5883L.h
- Revision:
 - 1:4c295f793d46
 - Parent:
 - 0:e5f8da308b60
 
--- a/HMC5883L.h	Wed Aug 05 12:59:07 2015 +0000
+++ b/HMC5883L.h	Wed Aug 05 13:08:19 2015 +0000
@@ -67,12 +67,12 @@
     public:
         void init();
         double getHeading();
+        void readMagData(float* dest);  
     private:
         void setMagGain(MagGain gain);
         void writeByte(uint8_t address, uint8_t regAddress, uint8_t data);
         char readByte(uint8_t address, uint8_t regAddress);
         void readBytes(uint8_t address, uint8_t regAddress, uint8_t byteNum, uint8_t* dest);
-        void readMagData(float* dest);  
 };
 
 #endif
\ No newline at end of file
    