summaryrefslogtreecommitdiff
path: root/include/driver
diff options
context:
space:
mode:
Diffstat (limited to 'include/driver')
-rw-r--r--include/driver/hdc1080.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/driver/hdc1080.h b/include/driver/hdc1080.h
new file mode 100644
index 0000000..f6f278c
--- /dev/null
+++ b/include/driver/hdc1080.h
@@ -0,0 +1,22 @@
+#ifndef HDC1080_H
+#define HDC1080_H
+
+class HDC1080 {
+ private:
+ HDC1080(const HDC1080 &copy);
+ unsigned char const address = 0x40;
+ unsigned char txbuf[3];
+ unsigned char rxbuf[2];
+
+ public:
+ HDC1080() {}
+
+ float getTemp();
+ float getRH();
+ unsigned int getManufacturerID();
+ void init();
+};
+
+extern HDC1080 hdc1080;
+
+#endif