summaryrefslogtreecommitdiffstats
path: root/main/dht.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2023-06-21 10:47:31 +0800
committerSadeep Madurange <sadeep@asciimx.com>2023-06-21 10:47:31 +0800
commit24d9a11a326dc8e805b177c45bfe23e4675a2e05 (patch)
tree57dcbe8367b5dc9556cbdd8de174a143d1d64f65 /main/dht.h
parent1692d13b27ec91e52269ba33b94ea47840880e4f (diff)
downloadesp8266-dht22-weather-station-24d9a11a326dc8e805b177c45bfe23e4675a2e05.tar.gz
Copied from sourcehut.
Diffstat (limited to 'main/dht.h')
-rw-r--r--main/dht.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/dht.h b/main/dht.h
new file mode 100644
index 0000000..483f2b4
--- /dev/null
+++ b/main/dht.h
@@ -0,0 +1,10 @@
+#ifndef DHT_H
+#define DHT_H
+
+void dht_init(void);
+
+int dht_get_data(uint8_t result[5]);
+
+int16_t dht_decode_data(uint8_t msb, uint8_t lsb);
+
+#endif