winlinvip / SimpleDHT

Simple, Stable and Fast Arduino Temp & Humidity Sensors for DHT11 and DHT22. http://learn.adafruit.com/dht
MIT License
144 stars 61 forks source link

Added support for using the internal pull-up resistor. #36

Closed cstroie closed 5 years ago

cstroie commented 5 years ago

Choose the input mode of the pin from INPUT and INPUT_PULLUP to permit the use of the internal pull-up resistor for for bare DHT modules.

winlinvip commented 5 years ago

👍

winlinvip commented 5 years ago

I refined some codes at https://github.com/winlinvip/SimpleDHT/commit/e94b1d5a2518860974cd943c0324ffb0cb41927c