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 00002 #include "mbed.h" 00003 #include "HDC1080.h" 00004 00005 //Pin Defines for I2C Bus 00006 #define D_SDA PB_7 00007 #define D_SCL PB_6 00008 00009 00010 00011 00012 00013 int main() 00014 { 00015 00016 HDC1080 TH_Sensor(D_SDA,D_SCL ); 00017 float temperature,humidity; 00018 unsigned long Serial_Number; 00019 00020 printf("Manufacturer ID : %d \r\n ",TH_Sensor.ReadSignature()); 00021 00022 while(1) 00023 { 00024 temperature = TH_Sensor.readTemperature(); 00025 humidity = TH_Sensor.readHumidity(); 00026 Serial_Number=TH_Sensor.readSerialNumber(); 00027 printf(" Temperature C=%0.3f Humidity =%0.3f Serial Number =%ld\r\n", 00028 temperature, humidity, Serial_Number); 00029 wait(2); 00030 } 00031 00032 }
Generated on Fri Jul 15 2022 05:45:01 by
1.7.2