86115884c7
A preprocessor conditional directive intended to only evaluate as true when compiling for the Arduino Nano 33 BLE board was also evaluating as true when compiling for any board that didn't define the compared identifiers because undefined identifiers are replaced with 0 by the C/C++ preprocessor, making them equal. From the C++11 standard section 16.1, paragraph 4: > After all replacements due to macro expansion and the defined unary operator have been performed, all remaining identifiers and keywords 148 , except for true and false, are replaced with the pp-number 0 The fix is to modify the directive to check whether the macro has been defined. |
||
---|---|---|
.github | ||
examples | ||
.gitignore | ||
code-of-conduct.md | ||
CONTRIBUTING.md | ||
DHT_U.cpp | ||
DHT_U.h | ||
DHT.cpp | ||
DHT.h | ||
keywords.txt | ||
library.properties | ||
license.txt | ||
README.md |
DHT sensor library
Description
An Arduino library for the DHT series of low-cost temperature/humidity sensors.
You can find DHT tutorials here.
Dependencies
Contributing
Contributions are welcome! Not only you’ll encourage the development of the library, but you’ll also learn how to best use the library and probably some C++ too
Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation and doxygen
Documentation is produced by doxygen. Contributions should include documentation for any new code added.
Some examples of how to use doxygen can be found in these guide pages:
https://learn.adafruit.com/the-well-automated-arduino-library/doxygen
https://learn.adafruit.com/the-well-automated-arduino-library/doxygen-tips
Written by Adafruit Industries based on work by:
- T. DiCola
- P. Y. Dragon
- L. Fried
- J. Hoffmann
- M. Kooijman
- J. M. Dana
- S. Conaway
- S. IJskes
- T. Forbes
- B. C
- T. J Myers
- L. Sørup
- per1234
- O. Duffy
- matthiasdanner
- J. Lim
- G. Ambrozio
- chelmi
- adams13x13
- Spacefish
- I. Scheller
- C. Miller
- 7eggert
MIT license, check license.txt for more information All text above must be included in any redistribution
To install, use the Arduino Library Manager and search for "DHT sensor library" and install the library.