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.
Fork of SHT_v1 by
Diff: main.cpp
- Revision:
- 0:df1c8f2961a1
- Child:
- 1:0dbbb4802508
diff -r 000000000000 -r df1c8f2961a1 main.cpp
--- /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);
+ }
+
+}
+
