A library for the use of DHT11, a temperature and humidity sensor

Dependents:   HTTP_SERVER2 lightweight-weather-station

Files at this revision

API Documentation at this revision

Comitter:
gjanusz
Date:
Sat Nov 24 22:19:48 2018 +0000
Parent:
11:e91c151d1798
Commit message:
Change OpenDrain;

Changed in this revision

DHT11.cpp Show annotated file Show diff for this revision Revisions of this file
DHT11.h Show annotated file Show diff for this revision Revisions of this file
diff -r e91c151d1798 -r c5a7faaeddd6 DHT11.cpp
--- a/DHT11.cpp	Thu Sep 25 14:13:10 2014 +0000
+++ b/DHT11.cpp	Sat Nov 24 22:19:48 2018 +0000
@@ -19,7 +19,7 @@
 #include "DHT11.h"
 
 // Constructor
-DHT11::DHT11(PinName pin) : io(pin, PIN_INPUT, OpenDrain, 1), io_irq(pin)
+DHT11::DHT11(PinName pin) : io(pin, PIN_INPUT, PullNone, 1), io_irq(pin)
 {
     io_irq.rise(this, &DHT11::pos_edge);
     io_irq.fall(this, &DHT11::neg_edge);
diff -r e91c151d1798 -r c5a7faaeddd6 DHT11.h
--- a/DHT11.h	Thu Sep 25 14:13:10 2014 +0000
+++ b/DHT11.h	Sat Nov 24 22:19:48 2018 +0000
@@ -25,7 +25,7 @@
  * #include "mbed.h"
  * #include "DHT11.h"
  *
- * DHT11 d;
+ * DHT11 d(PTD1);
  *
  * main()
  * {