mohamed gamal
/
DHT_CANSAT
DHT_CANSAT
Fork of DHT_TEST2 by
main.cpp
- Committer:
- mohamedgamal
- Date:
- 2015-08-04
- Revision:
- 0:2dbb2497beb6
File content as of revision 0:2dbb2497beb6:
#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); }}