daily pastebin goal
58%
SHARE
TWEET

dht11.h

garamycin Jul 21st, 2012 267 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. //
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top