Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "ADT7410.h" 00003 00004 ADT7410 sensor(I2C_SDA, I2C_SCL); 00005 DigitalOut led1(LED1); 00006 00007 int main() { 00008 float temp; 00009 00010 printf("Sensor start!\n"); 00011 led1 = 1; 00012 while(1) { 00013 temp = sensor.temp_value(); 00014 printf("Temperature = %2.2f\n",temp); 00015 led1 = !led1; 00016 wait_ms(250); 00017 } 00018 }
Generated on Sun Jul 17 2022 01:06:57 by
1.7.2