GY-63_MS5611/libraries/DHTNEW/examples/dhtnew_debug/dhtnew_debug.ino

43 lines
773 B
Arduino
Raw Normal View History

2021-01-29 06:31:58 -05:00
//
// FILE: dhtnew_debug.ino
// AUTHOR: Rob Tillaart
// PURPOSE: DHTNEW library debug sketch for Arduino
// URL: https://github.com/RobTillaart/DHTNew
2021-12-16 11:24:05 -05:00
2021-01-29 06:31:58 -05:00
// DHT PIN layout from left to right
// =================================
// FRONT : DESCRIPTION
// pin 1 : VCC
// pin 2 : DATA
// pin 3 : Not Connected
// pin 4 : GND
2021-11-18 03:48:40 -05:00
2021-01-29 06:31:58 -05:00
#include <dhtnew.h>
2021-11-18 03:48:40 -05:00
DHTNEW mySensor(5); // ESP 16 UNO 5 MKR1010 5
2021-01-29 06:31:58 -05:00
void setup()
{
Serial.begin(115200);
Serial.println("dhtnew_debug.ino");
2021-11-18 03:48:40 -05:00
Serial.print("DHTNEW_LIB_VERSION: ");
2021-01-29 06:31:58 -05:00
Serial.println(DHTNEW_LIB_VERSION);
Serial.println();
2021-11-18 03:48:40 -05:00
// MKR1010 needs this
// mySensor.setDisableIRQ(false);
2021-01-29 06:31:58 -05:00
}
2021-11-18 03:48:40 -05:00
2021-01-29 06:31:58 -05:00
void loop()
{
delay(2000);
mySensor.read(); // put print statements in core lib (see read())
}
2021-11-18 03:48:40 -05:00
// -- END OF FILE --