mohamed gamal
/
DHT_CANSAT
DHT_CANSAT
Fork of DHT_TEST2 by
Revision 0:2dbb2497beb6, committed 2015-08-04
- Comitter:
- mohamedgamal
- Date:
- Tue Aug 04 12:48:29 2015 +0000
- Commit message:
- DHT_TEST2;
Changed in this revision
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