Bert Gereels
/
Capacitive_Touch
Bert Gereels & Dylan Timmerman
Embed:
(wiki syntax)
Show/hide line numbers
qt1070.h
00001 #pragma once 00002 #include "mbed.h" 00003 00004 namespace I2cQt1070Device{ 00005 00006 enum ButtonState{ 00007 UP = 0x04, 00008 DOWN = 0x08, 00009 LEFT = 0x01, 00010 RIGHT = 0x02, 00011 CENTER = 0x10 00012 }; 00013 00014 class Qt1070{ 00015 00016 private: 00017 unsigned int version; 00018 unsigned int id; 00019 char status; 00020 00021 public: 00022 Qt1070(unsigned int version = 0x01, unsigned int id = 0xE2); 00023 int getFirmware(); 00024 int getId(); 00025 int getStatus(); //status van knop (byte) 00026 00027 }; 00028 }; 00029
Generated on Wed Jul 20 2022 03:33:56 by 1.7.2