AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

board/Keyboard.h

Committer:
sillevl
Date:
2015-05-23
Revision:
18:abcebc4d0da0
Parent:
11:50572814f73e
Child:
19:2eba101d9c2c

File content as of revision 18:abcebc4d0da0:

#ifndef KEYBOARD_H
#define KEYBOARD_H

#include "mbed.h"
#include "Keypad.h"

struct KeyboardPins{
    PinName rows[4];
    PinName cols[3];
};



class Keyboard : public Keypad{
    public:
    Keyboard(KeyboardPins keyboardPins); 
      
    template<class T> 
    void attach(T* item, uint32_t(T::*method)(uint32_t)){
        printf("Keyboard->attach\r\n");
        _callback.attach(item, method);
    }
    
    static const char KEYTABLE[];
    
    private: 
    
};

#endif