TM006 IR Senser I2C No2

Dependencies:   TMP006_lib mbed

Fork of mbed_blinky_Tmp006 by yoshiyuki minami

Revision:
0:4b47f8bc384f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 19 03:36:51 2014 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "TMP006.h"
+
+#define Address 0x80
+
+TMP006 sensor(p9, p10, Address);
+
+int main()
+{
+    printf("I2C TEST Temp\r\n");
+    wait(1.0);
+    while(1) {
+        printf("Temperature: %f ", sensor.readObjTempC(Address));
+        printf("Die_Temp: %f \r \n", sensor.readDieTempC(Address));
+        wait(1.0);
+    }
+}