Justin Howard / Mbed 2 deprecated AdaFruit_RGBLCD

Dependencies:   AdaFruit_RGBLCDShield MCP23017 mbed RTclock

Dependents:   SX1276_GPS

Fork of MCP_test by Wim Huiskamp

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers keys.h Source File

keys.h

00001 #ifndef __KEYS_H__
00002 #define __KEYS_H__
00003 
00004 class Keys
00005 {
00006 public:
00007     enum EButtons
00008     {
00009         eButtonNone     = 0x00,
00010         eButtonUp       = 0x01,
00011         eButtonDown     = 0x02,
00012         eButtonLeft     = 0x04,
00013         eButtonRight    = 0x08,
00014         eButtonSelect   = 0x10,
00015     };
00016         
00017 public:
00018                         Keys(I2C & in_cI2C);
00019                             
00020     virtual uint8_t     readButtons() = 0;
00021     
00022 protected:
00023             I2C &       m_cI2C;
00024 };
00025 
00026 #endif // __KEYS_H__