HMC5883L Digital Compass Library
Dependents: i2c_HMC5883L IMU_fusion QMC5883L IMU_fusion ... more
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