DHT sensor library
|
#include "Arduino.h"
Go to the source code of this file.
Classes | |
class | DHT |
Class that stores state and functions for DHT. More... | |
class | InterruptLock |
Class that defines Interrupt Lock Avaiability. More... | |
Macros | |
#define | DEBUG_PRINTER Serial |
#define | DEBUG_PRINT(...) {} |
#define | DEBUG_PRINTLN(...) {} |
#define | DHT11 11 |
#define | DHT12 12 |
#define | DHT22 22 |
#define | DHT21 21 |
#define | AM2301 21 |
#define | microsecondsToClockCycles(a) ((a) * (SystemCoreClock / 1000000L)) |
This is a library for DHT series of low cost temperature/humidity sensors.
You must have Adafruit Unified Sensor Library library installed to use this class.
Adafruit invests time and resources providing this open source code, please support Adafruit andopen-source hardware by purchasing products from Adafruit!
Written by Adafruit Industries.
MIT license, all text above must be included in any redistribution
#define DEBUG_PRINTER Serial |
Define where debug output will be printed. \
#define DEBUG_PRINT | ( | ... | ) | {} |
Debug Print Placeholder if Debug is disabled
#define DEBUG_PRINTLN | ( | ... | ) | {} |
Debug Print Line Placeholder if Debug is disabled
#define DHT11 11 |
DHT TYPE 11
#define DHT12 12 |
DHY TYPE 12
#define DHT22 22 |
DHT TYPE 22
#define DHT21 21 |
DHT TYPE 21
#define AM2301 21 |
AM2301
#define microsecondsToClockCycles | ( | a | ) | ((a) * (SystemCoreClock / 1000000L)) |
As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have microsecondsToClockCycles defined.