Basic INA219, with set calibaration and functions for reading raw register and write to register

Dependents:   SensorsThingSpeak

Revision:
1:6b9f92e99dd7
Parent:
0:cdfbda214bee
diff -r cdfbda214bee -r 6b9f92e99dd7 INA219.cpp
--- a/INA219.cpp	Fri Nov 20 08:24:43 2015 +0000
+++ b/INA219.cpp	Sun Nov 29 13:40:51 2015 +0000
@@ -1,3 +1,7 @@
+/** This is 
+**
+*/
+
 #include "INA219_reg.h"
 #include "INA219.h"
 #include "I2CR.h"
@@ -37,10 +41,9 @@
     return data ;
 }
 
-uint8_t INA219::write_reg(uint8_t reg, uint8_t data)
+void INA219::write_reg(uint8_t reg, uint8_t data)
 {
     dt[0] = reg;
     dt[1] = data;
     i2cr.write(INA219_ADDR_GG, (char *)dt, 2);
-    return dt[1];
 }