A library for the use of DHT11, a temperature and humidity sensor
Dependents: HTTP_SERVER2 lightweight-weather-station
Diff: DHT11.cpp
- Revision:
- 12:c5a7faaeddd6
- Parent:
- 11:e91c151d1798
--- 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);