TMP102 with I2C object constructor

Fork of TMP102 by Chris Styles

Revision:
4:c2541c0854c1
Parent:
3:694792b93731
diff -r 694792b93731 -r c2541c0854c1 TMP102.cpp
--- a/TMP102.cpp	Thu Mar 07 10:44:42 2013 +0000
+++ b/TMP102.cpp	Tue Mar 01 23:09:11 2016 +0000
@@ -25,7 +25,7 @@
 
 #define TEMP_REG_ADDR 0x00
 
-TMP102::TMP102(PinName sda, PinName scl, int addr) : m_i2c(sda, scl), m_addr(addr)
+TMP102::TMP102(I2C i2c, int addr) : m_i2c(i2c), m_addr(addr)
 {
 
 }