summaryrefslogtreecommitdiff
path: root/include/driver/max44006.h
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-05-24 09:10:38 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-05-24 09:10:38 +0200
commitc1a41b3ce91f2b839faf8559822c1478c12d69d8 (patch)
tree6edb355ceb8baacc36e9fd1fa91b3929e9dac275 /include/driver/max44006.h
parent942d0d174f8b109bd1e7c1597820dd8228dbcec2 (diff)
add ccs811, max44006, max44009 drivers. Not all are working.
Diffstat (limited to 'include/driver/max44006.h')
-rw-r--r--include/driver/max44006.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/driver/max44006.h b/include/driver/max44006.h
new file mode 100644
index 0000000..e357574
--- /dev/null
+++ b/include/driver/max44006.h
@@ -0,0 +1,21 @@
+#ifndef LM75_H
+#define LM75_H
+
+class LM75 {
+ private:
+ LM75(const LM75 &copy);
+ unsigned char const address;
+ unsigned char txbuf[3];
+ unsigned char rxbuf[2];
+
+ public:
+ LM75(unsigned char const addr) : address(addr) {}
+
+ float getTemp();
+ void setOS(unsigned char os);
+ void setHyst(unsigned char hyst);
+};
+
+extern LM75 lm75;
+
+#endif