summaryrefslogtreecommitdiff
path: root/include/driver/max44009.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/driver/max44009.h')
-rw-r--r--include/driver/max44009.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/driver/max44009.h b/include/driver/max44009.h
new file mode 100644
index 0000000..6bedd3c
--- /dev/null
+++ b/include/driver/max44009.h
@@ -0,0 +1,19 @@
+#ifndef MAX44009_H
+#define MAX44009_H
+
+class MAX44009 {
+ private:
+ MAX44009(const MAX44009 &copy);
+ unsigned char const address;
+ unsigned char txbuf[2];
+ unsigned char rxbuf[2];
+
+ public:
+ MAX44009(unsigned char const addr) : address(addr) {}
+
+ float getLux();
+};
+
+extern MAX44009 max44009;
+
+#endif