HMC58X3 Library

Fork of HMC58X3 by Yifei Teng

Revision:
1:72ecf7399250
Parent:
0:d84e1c7e4e86
Child:
2:c5ac16c88514
--- a/HMC58X3.cpp	Mon Jun 24 16:18:52 2013 +0000
+++ b/HMC58X3.cpp	Mon Jun 24 19:44:55 2013 +0000
@@ -70,9 +70,10 @@
 
 /* PUBLIC METHODS */
 
-HMC58X3::HMC58X3(PinName sda, PinName scl): i2c(sda, scl)
+//HMC58X3::HMC58X3(PinName sda, PinName scl): i2c(sda, scl)
+HMC58X3::HMC58X3(I2C i2c_):i2c(i2c_)
 {
-    
+    //this->i2c= i2c_;
     x_scale=1.0F;
     y_scale=1.0F;
     z_scale=1.0F;