Outputs humidity to the serial terminal.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
atravieso
Date:
Thu Apr 14 18:59:42 2016 +0000
Parent:
1:e59c75779477
Commit message:
Export for Dan

Changed in this revision

HIH_4010.h Show diff for this revision Revisions of this file
HIH_5030.h 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
diff -r e59c75779477 -r 4edb77a5ab26 HIH_4010.h
--- a/HIH_4010.h	Mon Jul 27 20:22:38 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-
-
-#include "mbed.h"
-
-class HIH4010 {
-
-public:
-
-HIH4010(float dataPin, float supplyVoltage, float referenceVoltage);
-
-float getSensorRH();
-float getTrueRH(float temperature);
-float vout();
-
-private:
-float pin; /* IO pin connected to sensor's data pin */
-float vSupply; /* voltage supplying the humidity sensor */
-float slope; /* value may be calculated or factory calibrated */
-float zeroOffset; /* value may be calcualted or factory calibrated */
-float vRef; /* analog voltage reference, in volts */
-
-};
-
diff -r e59c75779477 -r 4edb77a5ab26 HIH_5030.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HIH_5030.h	Thu Apr 14 18:59:42 2016 +0000
@@ -0,0 +1,23 @@
+
+
+#include "mbed.h"
+
+class HIH4010 {
+
+public:
+
+HIH4010(float dataPin, float supplyVoltage, float referenceVoltage);
+
+float getSensorRH();
+float getTrueRH(float temperature);
+float vout();
+
+private:
+float pin; /* IO pin connected to sensor's data pin */
+float vSupply; /* voltage supplying the humidity sensor */
+float slope; /* value may be calculated or factory calibrated */
+float zeroOffset; /* value may be calcualted or factory calibrated */
+float vRef; /* analog voltage reference, in volts */
+
+};
+
diff -r e59c75779477 -r 4edb77a5ab26 main.cpp
--- a/main.cpp	Mon Jul 27 20:22:38 2015 +0000
+++ b/main.cpp	Thu Apr 14 18:59:42 2016 +0000
@@ -1,6 +1,6 @@
 
 
-#include "HIH_4010.h"
+#include "HIH_5030.h"
 #include "mbed.h"