Fork without short circuits
Fork of keypad by
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 SaveKeypad for an example usage.
Revision 9:e48ba5b4c497, committed 2012-01-31
- Comitter:
- yoonghm
- Date:
- Tue Jan 31 00:31:58 2012 +0000
- Parent:
- 8:6f46334b16b7
- Child:
- 10:9a9ec143840b
- Commit message:
Changed in this revision
keypad.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/keypad.h Tue Jan 31 00:30:41 2012 +0000 +++ b/keypad.h Tue Jan 31 00:31:58 2012 +0000 @@ -29,12 +29,13 @@ /** * An interrupt-based interface to 4x4 keypad. * - * This library makes use of - * @see http://mbed.org/cookbook/FPointer by Andy Kirkham * On each key pressed on a keypad, the index of the key is passed to a * user-defined function. User is free to define what to be done with the * input. * + * This library makes use of + * @see http://mbed.org/cookbook/FPointer by Andy Kirkham + * * Example: * @code * #include "mbed.h"