Bert Gereels
/
Capacitive_Touch
Bert Gereels & Dylan Timmerman
Diff: qt1070.h
- Revision:
- 0:620ca2412ef6
diff -r 000000000000 -r 620ca2412ef6 qt1070.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qt1070.h Wed Dec 14 13:35:53 2016 +0000 @@ -0,0 +1,29 @@ +#pragma once +#include "mbed.h" + +namespace I2cQt1070Device{ + + enum ButtonState{ + UP = 0x04, + DOWN = 0x08, + LEFT = 0x01, + RIGHT = 0x02, + CENTER = 0x10 + }; + + class Qt1070{ + + private: + unsigned int version; + unsigned int id; + char status; + + public: + Qt1070(unsigned int version = 0x01, unsigned int id = 0xE2); + int getFirmware(); + int getId(); + int getStatus(); //status van knop (byte) + + }; +}; +