HMC58X3 Library

Fork of HMC58X3 by Yifei Teng

Files at this revision

API Documentation at this revision

Comitter:
tyftyftyf
Date:
Tue Nov 05 11:30:31 2013 +0000
Parent:
2:c5ac16c88514
Child:
4:8eb12adc8368
Commit message:
No empty constructor

Changed in this revision

HMC58X3.cpp Show annotated file Show diff for this revision Revisions of this file
HMC58X3.h Show annotated file Show diff for this revision Revisions of this file
--- a/HMC58X3.cpp	Sat Nov 02 17:23:23 2013 +0000
+++ b/HMC58X3.cpp	Tue Nov 05 11:30:31 2013 +0000
@@ -59,8 +59,6 @@
 
 /* PUBLIC METHODS */
 
-HMC58X3::HMC58X3():i2c(I2C_SDA,I2C_SCL){
-}
 
 //HMC58X3::HMC58X3(PinName sda, PinName scl): i2c(sda, scl)
 HMC58X3::HMC58X3(I2C i2c_):i2c(i2c_)
--- a/HMC58X3.h	Sat Nov 02 17:23:23 2013 +0000
+++ b/HMC58X3.h	Tue Nov 05 11:30:31 2013 +0000
@@ -79,16 +79,11 @@
 #define HMC58X3_R_IDB 11
 #define HMC58X3_R_IDC 12
 
-#define I2C_SDA p28
-#define I2C_SCL p27
-
 class HMC58X3
 {
 
 
 public:
-    //HMC58X3(PinName sda, PinName scl);
-    HMC58X3();
     HMC58X3(I2C i2c_);
     void init(bool setmode);
     void init(int address, bool setmode);
@@ -114,4 +109,3 @@
 };
 
 #endif // HMC58X3_h
-