DHT_TEST2

Dependencies:   DHT22 mbed

Files at this revision

API Documentation at this revision

Comitter:
mohamedgamal
Date:
Tue Aug 04 12:48:29 2015 +0000
Commit message:
DHT_TEST2;

Changed in this revision

DHT22.lib 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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 2dbb2497beb6 DHT22.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DHT22.lib	Tue Aug 04 12:48:29 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/Julepalme/code/DHT22/#7fd3ff04ae95
diff -r 000000000000 -r 2dbb2497beb6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Aug 04 12:48:29 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "DHT22.h"
+DHT22 dht22(p23);
+int main() {
+    int hum;
+    int temp;
+    printf("Start\n");
+    printf("\r\nSetting up...\r\n");
+    while (1) {
+        dht22.sample() ;
+        hum=dht22.getHumidity()/10.0;
+        temp=dht22.getTemperature()/10.0;
+        printf("temp: %d  , hum:%d    ",temp,hum);
+        wait(1);
+        }}
\ No newline at end of file
diff -r 000000000000 -r 2dbb2497beb6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Aug 04 12:48:29 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/bad568076d81
\ No newline at end of file