Alex Allen / Mbed 2 deprecated Balloon

Dependencies:   UM12 mbed

Revision:
0:feaa05d35ccf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HIH4030/HIH4030.cpp	Wed Mar 07 20:02:35 2012 +0000
@@ -0,0 +1,14 @@
+#include "HIH4030.h"
+#include "mbed.h"
+ 
+float HIH4030::getH(float temp)
+{
+    float sensHum, trueHum;
+    float vout = 3.3 * 2.0 * read();
+    float vsupply = 5.0;
+    
+    sensHum = ( ( vout / vsupply ) + 0.16 ) / 0.0062;
+    trueHum = ( 1.0546 - 0.00216 * temp ) * sensHum;
+    
+    return trueHum;
+}
\ No newline at end of file