A quick adaptation of a library made for Arduino by Fabio Varesano Interface a Honeywell HMC58X3 magnetometer to a mbed via i2c.
Fork of HMC58X3 by
Revision 5:ea869bfe993b, committed 2014-01-10
- Comitter:
- tyftyftyf
- Date:
- Fri Jan 10 05:40:37 2014 +0000
- Parent:
- 4:8eb12adc8368
- Commit message:
- discard used readings
Changed in this revision
HMC58X3.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HMC58X3.cpp Sat Nov 09 08:51:00 2013 +0000 +++ b/HMC58X3.cpp Fri Jan 10 05:40:37 2014 +0000 @@ -326,7 +326,7 @@ _thread.signal_set(0x1); } -bool magn_valid = false; +volatile bool magn_valid = false; void HMC58X3::samplingthread() {