Bert Gereels & Dylan Timmerman

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers qt1070.h Source File

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