A quick adaptation of a library made for Arduino by Fabio Varesano Interface a Honeywell HMC58X3 magnetometer to a mbed via i2c.

Dependents:   FreeIMU FreeIMU

Fork of HMC58X3 by Aloïs Wolff

Revision:
7:5279fb447af1
Parent:
6:02c679492d35
diff -r 02c679492d35 -r 5279fb447af1 HMC58X3.cpp
--- a/HMC58X3.cpp	Wed Mar 07 04:12:45 2018 +0000
+++ b/HMC58X3.cpp	Wed Mar 28 20:25:51 2018 +0000
@@ -30,9 +30,9 @@
 
 //#define DEBUG (1)
 
+#include "HMC58X3.h"
 #include "mbed.h"
 #include "MODI2C.h"
-#include "HMC58X3.h"
 #include "rtos.h"
 #include <new>
 //#include <DebugUtils.h>