![](/media/cache/profiles/3d67c6a0022eea35b7eb2a1efb4f7b9b.jpg.50x50_q85.jpg)
TM006 IR Senser I2C No2
Fork of mbed_blinky_Tmp006_No2 by
Diff: main.cpp
- 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); + } +}