read the temperature and humidity from the sensor and print them

Dependencies:   DHT22 mbed

Files at this revision

API Documentation at this revision

Comitter:
mbedAustin
Date:
Sat May 28 08:42:28 2016 +0000
Parent:
5:176e1bc77ec2
Commit message:
Removed code for workshop purposes

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 176e1bc77ec2 -r 3b1739d2a2c6 main.cpp
--- a/main.cpp	Sat May 28 08:41:37 2016 +0000
+++ b/main.cpp	Sat May 28 08:42:28 2016 +0000
@@ -18,8 +18,8 @@
         // read successfully
         if (1 == error) {
             // YOUR CODE GOES HERE, read temperature and humidity
-            temp = dht22.getTemperature()/10.0;
-            hum = dht22.getHumidity()/10.0;
+            temp = //TODO;
+            hum = //TODO;
             printf("temp: %2.2f  , hum:%2.2f    \r\n",temp,hum);
             
         } else {  // read unseccessfully