yoshiyuki minami
/
mbed_blinky_Tmp006_3rd
TM006 IR Senser I2C No2
Fork of mbed_blinky_Tmp006_No2 by
Diff: main.cpp
- Revision:
- 0:4b47f8bc384f
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); + } +}