![](/media/cache/profiles/ca55e81c481f3ae701c4362514ce6abd.50x50_q85.jpg)
Tests forked Keypad library.
Dependencies: FPointer keypad mbed
Schematic:
No extra hardware is needed besides the wires and switches. The columns are outputs configured with open drain. The rows are inputs configured with pull up resistors. A key press pulls down its row. With scanning the column is determined thereafter.
See keypad for the forked library used in this project.
Revision 4:16191e501b63, committed 2012-11-04
- Comitter:
- gj_schoneveld
- Date:
- Sun Nov 04 09:56:51 2012 +0000
- Parent:
- 3:fb173f712440
- Commit message:
- Small bug
Changed in this revision
keypad.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fb173f712440 -r 16191e501b63 keypad.lib --- a/keypad.lib Sun Nov 04 09:50:00 2012 +0000 +++ b/keypad.lib Sun Nov 04 09:56:51 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/gj_schoneveld/code/keypad/#fb6929fac0db +http://mbed.org/users/gj_schoneveld/code/keypad/#873a9a452ef1
diff -r fb173f712440 -r 16191e501b63 main.cpp --- a/main.cpp Sun Nov 04 09:50:00 2012 +0000 +++ b/main.cpp Sun Nov 04 09:56:51 2012 +0000 @@ -65,7 +65,7 @@ // poll multiple mode keypad.Start(); while (1) { - key = keypad.DebouncedScanMultiple(); + int key = keypad.DebouncedScanMultiple(); if (key > 0) cbAfterMultipleInput(key); wait(0.1);