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.
Dependents: hdc1080_Hellow_world Temp_Humid
HDC1080.h
00001 00002 #ifndef HDC1080_H 00003 #define HDC1080_H 00004 00005 00006 00007 00008 00009 00010 class HDC1080:public I2C { 00011 public: 00012 00013 00014 00015 HDC1080( PinName sda, PinName slc) ; // constructor 00016 00017 // ~HDC1080(); // destructor 00018 00019 int ReadSignature(void); 00020 float readTemperature( void); // to read the Temperature from HDC1080 00021 float readHumidity(void); // to read the Humidity from HDC1080 00022 unsigned long readSerialNumber(void); // to read the Humidity from HDC1080 00023 00024 protected: 00025 uint16_t read2Bytes(int chip_addr, int offset); 00026 }; 00027 00028 #endif 00029 00030
Generated on Wed Jul 13 2022 17:53:44 by
1.7.2