Advertisement
garamycin

dht11.h

Jul 21st, 2012
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //
  2. // FILE: dht11.h
  3. // VERSION: 0.3.2
  4. // PURPOSE: DHT11 Temperature & Humidity Sensor library for Arduino
  5. // LICENSE: GPL v3 (http://www.gnu.org/licenses/gpl.html)
  6. //
  7. // DATASHEET: http://www.micro4you.com/files/sensor/DHT11.pdf
  8. //
  9. // URL: http://arduino.cc/playground/Main/DHT11Lib
  10. //
  11. // HISTORY:
  12. // George Hadjikyriacou - Original version
  13. // see dht.cpp file
  14. //
  15.  
  16. #ifndef dht11_h
  17. #define dht11_h
  18.  
  19. #include "Arduino.h" //ane pake IDE arduino 1.0, versi sebelumnya rubah Arduino.h jadi Wprogram.h
  20.  
  21. #define DHT11LIB_VERSION "0.3.2"
  22.  
  23. class dht11
  24. {
  25. public:
  26. int read(int pin);
  27. int humidity;
  28. int temperature;
  29. };
  30. #endif
  31. //
  32. // END OF FILE
  33. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement