diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-24 09:10:38 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-24 09:10:38 +0200 |
commit | c1a41b3ce91f2b839faf8559822c1478c12d69d8 (patch) | |
tree | 6edb355ceb8baacc36e9fd1fa91b3929e9dac275 /include/driver/ccs811.h | |
parent | 942d0d174f8b109bd1e7c1597820dd8228dbcec2 (diff) |
add ccs811, max44006, max44009 drivers. Not all are working.
Diffstat (limited to 'include/driver/ccs811.h')
-rw-r--r-- | include/driver/ccs811.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/driver/ccs811.h b/include/driver/ccs811.h new file mode 100644 index 0000000..27d7e41 --- /dev/null +++ b/include/driver/ccs811.h @@ -0,0 +1,20 @@ +#ifndef CCS811_H +#define CCS811_H + +class CCS811 { + private: + CCS811(const CCS811 ©); + unsigned char const address; + unsigned char txbuf[3]; + unsigned char rxbuf[2]; + + public: + CCS811(unsigned char const addr) : address(addr) {} + + void init(); + short check(); +}; + +extern CCS811 ccs811; + +#endif |