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.
Diff: HIH4030/HIH4030.cpp
- 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