diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-10-18 10:38:48 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-10-18 10:38:48 +0200 |
commit | e391c1bc244838bb050ade946e709f671cd9cf94 (patch) | |
tree | f3b5e0260f95f886f54be213098f3362b7f8c815 /include | |
parent | 8e0cde61737f46ba492768d86c54cff998da07a1 (diff) |
Add preliminary version of HDC1080 driver (not working reliably yet)
Diffstat (limited to 'include')
-rw-r--r-- | include/driver/hdc1080.h | 22 |
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 ©); + 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 |