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.
Dependents: M-G354PDH0_serial_echo_2 M-G354PDH0_serial_echo_1 M-G354PDH0_serial_Lib
Revision 1:4c295f793d46, committed 2015-08-05
- Comitter:
- BaserK
- Date:
- Wed Aug 05 13:08:19 2015 +0000
- Parent:
- 0:e5f8da308b60
- Child:
- 2:bbc9ad18fd3e
- Commit message:
- readMagData function is public now
Changed in this revision
| HMC5883L.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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