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
Diff: main.cpp
- Revision:
- 0:ff6e0ea888e8
- Child:
- 1:842d3b0ce532
diff -r 000000000000 -r ff6e0ea888e8 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jan 19 22:33:09 2011 +0000
@@ -0,0 +1,17 @@
+#include "KeyboardManager.hpp"
+
+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);
+ }
+}