HMC5883L
Dependents: FacingSouthHouseFinder_WIZwiki-W7500
Fork of HMC5883L by
Diff: HMC5883L.h
- Revision:
- 1:4c295f793d46
- Parent:
- 0:e5f8da308b60
- Child:
- 3:eca30b3ec1ed
diff -r e5f8da308b60 -r 4c295f793d46 HMC5883L.h --- 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