Dependencies:   mbed

Revision:
0:df1c8f2961a1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jan 24 22:00:35 2010 +0000
@@ -0,0 +1,20 @@
+// simple test for SHT temp  modules
+
+#include "mbed.h"
+
+#include "SHT.h"
+
+SHT th1(p5,p6,SHT_high); // sclock, data
+
+DigitalOut led1(LED1);
+
+int main() {
+    while(1) {
+        th1.update(SHT_high);
+        printf("t:%6.2fC h:%6.2f%%\n",th1.get_temperature(),th1.get_humidity());
+        led1=!led1;
+        wait(1);
+    }
+
+}
+