![](/media/cache/profiles/3d67c6a0022eea35b7eb2a1efb4f7b9b.jpg.50x50_q85.jpg)
TM006 IR Senser I2C No2
Fork of mbed_blinky_Tmp006_No2 by
Revision 0:4b47f8bc384f, committed 2014-12-19
- Comitter:
- minaminan
- Date:
- Fri Dec 19 03:36:51 2014 +0000
- Commit message:
- IR Senser TMP006 I2C
Changed in this revision
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