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.
Revision 7:fbe99e580885, committed 2018-10-25
- Comitter:
- Viswanath
- Date:
- Thu Oct 25 10:18:23 2018 +0000
- Parent:
- 6:4e6ec83d3c83
- Commit message:
- Temperature Humidity Using HDC1080
Changed in this revision
| HDC1080.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HDC1080.lib Thu Oct 25 10:18:23 2018 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/users/shivanandgowdakr/code/HDC1080/#fdb750cc9ca8
--- a/main.cpp Wed Sep 13 11:30:50 2017 +0000
+++ b/main.cpp Thu Oct 25 10:18:23 2018 +0000
@@ -1,12 +1,13 @@
#include "mbed.h"
-
-DigitalOut myled(LED1);
-
-int main() {
- while(1) {
- myled = 1; // LED is ON
- wait(0.2); // 200 ms
- myled = 0; // LED is OFF
- wait(1.0); // 1 sec
- }
-}
+#include "HDC1080.h"
+ Serial pc(USBTX,USBRX);
+HDC1080 sensor(PB_9,PB_8);
+int main()
+{
+ float Tval=sensor.readTemperature();
+ pc.printf("Temperature is :%f",Tval);
+
+ Tval=sensor.readHumidity();
+ pc.printf("Humidity is :%f",Tval);
+
+ }
\ No newline at end of file