mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
42 lines
772 B
C++
42 lines
772 B
C++
//
|
|
// FILE: dhtint_debug.ino
|
|
// AUTHOR: Rob Tillaart
|
|
// PURPOSE: DHTINT library debug sketch for Arduino
|
|
// URL: https://github.com/RobTillaart/DHTINT
|
|
|
|
// DHT PIN layout from left to right
|
|
// =================================
|
|
// FRONT : DESCRIPTION
|
|
// pin 1 : VCC
|
|
// pin 2 : DATA
|
|
// pin 3 : Not Connected
|
|
// pin 4 : GND
|
|
|
|
|
|
#include <dhtint.h>
|
|
|
|
DHTINT mySensor(5); // ESP 16 UNO 5 MKR1010 5
|
|
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(115200);
|
|
Serial.println("dhtint_debug.ino");
|
|
Serial.print("DHTINT_LIB_VERSION: ");
|
|
Serial.println(DHTINT_LIB_VERSION);
|
|
Serial.println();
|
|
|
|
// MKR1010 needs this
|
|
// mySensor.setDisableIRQ(false);
|
|
}
|
|
|
|
|
|
void loop()
|
|
{
|
|
delay(2000);
|
|
mySensor.read(); // put print statements in core lib (see read())
|
|
}
|
|
|
|
|
|
// -- END OF FILE --
|