GY-63_MS5611/libraries/DHT2pin
2024-04-13 10:35:57 +02:00
..
.github bulk update GitHub actions 2024-04-13 10:35:57 +02:00
examples/dht2pin 0.2.0 DHT2pin 2023-01-29 20:16:17 +01:00
test 0.2.0 DHT2pin 2023-01-29 20:16:17 +01:00
.arduino-ci.yml 0.1.3 DHT2pin 2022-11-01 20:26:33 +01:00
CHANGELOG.md 0.2.1 DHT2pin 2023-10-24 16:30:56 +02:00
dht2pin.cpp 0.2.1 DHT2pin 2023-10-24 16:30:56 +02:00
dht2pin.h 0.2.1 DHT2pin 2023-10-24 16:30:56 +02:00
keywords.txt 0.1.2 DHT2pin 2021-12-16 13:42:53 +01:00
library.json 0.2.1 DHT2pin 2023-10-24 16:30:56 +02:00
library.properties 0.2.1 DHT2pin 2023-10-24 16:30:56 +02:00
LICENSE bulk update GitHub actions 2024-04-13 10:35:57 +02:00
readme.md 0.2.1 DHT2pin 2023-10-24 16:30:56 +02:00

Arduino CI Arduino-lint JSON check GitHub issues

License: MIT GitHub release PlatformIO Registry

DHT2pin

Arduino library for experimental 2 pin DHT library.

Credits & testing

Maria Emanuella Moura Silva for testing and verifying this experimental code on a Galileo.

Description

NOTE: THIS LIB IS NOT TESTED EXTENSIVELY YET SO USE WITH CARE

This library is an experimental version of the DHT library that uses two data pins. One pin for all read actions and one pin for all write actions. This way one does not need to switch a pin between INPUT and OUTPUT.

Note: It needs a diode between the input pin of the MCU and the data pin of the DHT sensor. The output pin of the MCU is directly connected to the data pin of the DHT sensor.

This library was made after a request which also referred to the links below.

https://web.archive.org/web/20150912065850/https://communities.intel.com/thread/53869

https://web.archive.org/web/20180510215445/http://bigdinotech.com/tutorials/galileo-tutorials/using-1-wire-device-with-intel-galileo (there might be later versions)

NOTE: THIS LIB IS NOT TESTED EXTENSIVELY YET SO USE WITH CARE

interface

#include "DHT2pin.h"
  • DHT2pin(uint8_t rpin, uint8_t wpin) constructor.
  • void begin() set pinModes correctly, must be called before read().
  • int read11() read a DHT11.
  • int read() read a DHT22 and equivalents.
  • float humidity() get last humidity read.
  • float temperature() get last temperature read.

Operation

See example

Future

  • no active development planned

Support

If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.

Thank you,