AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

board/Button.cpp

Committer:
sillevl
Date:
2014-12-31
Revision:
11:50572814f73e
Parent:
4:2c91c9eccf3a

File content as of revision 11:50572814f73e:

#include "Button.h"

Button::Button(PinName buttonPin) : DigitalIn(buttonPin){
    
    
    //_interrupt = new InterruptIn(buttonPin);
    // _interrupt.rise(this, &Counter::increment); 
}

Button::operator int() {
    return read();
}