AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Diff: board/Board.cpp
- Revision:
- 20:b89791ecceec
- Parent:
- 19:2eba101d9c2c
--- a/board/Board.cpp Sat May 23 22:42:51 2015 +0000 +++ b/board/Board.cpp Sun May 24 19:28:04 2015 +0000 @@ -9,30 +9,11 @@ buzzer = new Buzzer(pinouts.buzzer); keyboard->attach(this, &Board::keyboardButton); - //printf("keyboard attached\r\n"); keyboard->start(); // energize the keypad via c0-c3 - //printf("keyboard started\r\n"); } uint32_t Board::keyboardButton(uint32_t index){ - //printf("button pressed \r\n"); - //printf("button index: %d\r\n", index); - //printf("button car: %c\r\n", Keyboard::KEYTABLE[index]); _callback.call(Keyboard::KEYTABLE[index]); - //buttonEvent(Keyboard::KEYTABLE[index]); return 0; } -/*void Board::attach(ButtonListener *bl) -{ - //printf("ButtonListener attached\r\n"); - listeners.push_back(bl); - //printf("done\r\n"); -}*/ -/*void Board::buttonEvent(char c) -{ - //printf("ButtonListener executing\r\n"); - for (int i = 0; i < listeners.size(); i++) - listeners[i]->buttonEvent(c); - //printf("done\r\n"); -}*/