yoshiyuki minami
/
mbed_blinky_Tmp006_3rd
TM006 IR Senser I2C No2
Fork of mbed_blinky_Tmp006_No2 by
Embed:
(wiki syntax)
Show/hide line numbers
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 }
Generated on Sat Jul 30 2022 18:25:46 by 1.7.2