Robotics Kit Workshop
/
Program2_TempAndHumidity
read the temperature and humidity from the sensor and print them
Diff: main.cpp
- Revision:
- 6:3b1739d2a2c6
- Parent:
- 5:176e1bc77ec2
--- 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