TM006 IR Senser I2C No2

Dependencies:   TMP006_lib mbed

Fork of mbed_blinky_Tmp006_No2 by yoshiyuki minami

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "TMP006.h"
00003 
00004 #define Address 0x80
00005 
00006 TMP006 sensor(p9, p10, Address);
00007 
00008 int main()
00009 {
00010     printf("I2C TEST Temp\r\n");
00011     wait(1.0);
00012     while(1) {
00013         printf("Temperature: %f ", sensor.readObjTempC(Address));
00014         printf("Die_Temp: %f \r \n", sensor.readDieTempC(Address));
00015         wait(1.0);
00016     }
00017 }