TM006 IR Senser I2C No2

Dependencies:   TMP006_lib mbed

Fork of mbed_blinky_Tmp006_No2 by yoshiyuki minami

Files at this revision

API Documentation at this revision

Comitter:
minaminan
Date:
Fri Dec 19 03:36:51 2014 +0000
Commit message:
IR Senser TMP006 I2C

Changed in this revision

TMP006_lib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 4b47f8bc384f TMP006_lib.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TMP006_lib.lib	Fri Dec 19 03:36:51 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/sammacjunkie/code/TMP006_lib/#48c0564d877a
diff -r 000000000000 -r 4b47f8bc384f main.cpp
--- /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);
+    }
+}
diff -r 000000000000 -r 4b47f8bc384f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 19 03:36:51 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file