Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed KeyboardManager
main.cpp
- Committer:
- osmeest
- Date:
- 2011-01-19
- Revision:
- 1:842d3b0ce532
- Parent:
- 0:ff6e0ea888e8
- Child:
- 3:c20e3d23ce5f
File content as of revision 1:842d3b0ce532:
#include "KeyboardManager.h"
void keyHandler(int key, bool state) {
printf("Key state change: %d %s\r\n", key, (state ? "DOWN" : "UP"));
}
int main() {
printf("\n\r\nKeyboardTest " __DATE__ "-" __TIME__ "\r\n");
KeyboardManager kbd(Port0, 15, Port0, 6, keyHandler);
kbd.start();
while(1) {
wait(10);
}
}