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 FXOS8700Q by
Diff: FXOS8700Q.cpp
- Revision:
- 12:0ab2a7fab065
- Parent:
- 11:aee7dea904e2
diff -r aee7dea904e2 -r 0ab2a7fab065 FXOS8700Q.cpp
--- a/FXOS8700Q.cpp Fri Jun 19 12:16:44 2015 -0500
+++ b/FXOS8700Q.cpp Wed Jul 22 13:15:24 2015 +0000
@@ -229,3 +229,10 @@
xyz.y = static_cast<float>(_xyz.y * 0.1f);
xyz.z = static_cast<float>(_xyz.z * 0.1f);
}
+
+int8_t FXOS8700QMagnetometer::getTemperature(void)
+{
+ uint8_t res;
+ readRegs(FXOS8700Q_TEMP, &res, sizeof(res));
+ return (int8_t)res;
+}
\ No newline at end of file
