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.
Diff: keypad.h
- Revision:
- 6:8e4267765923
- Parent:
- 5:45ab3e412893
- Child:
- 7:e57b8ffc45d1
--- a/keypad.h Mon Jan 30 10:03:56 2012 +0000 +++ b/keypad.h Tue Jan 31 00:22:08 2012 +0000 @@ -29,7 +29,7 @@ /** * An interrupt-based interface to 4x4 keypad. * - * You also need to import [[/cookbook/FPointer|FPointer library]] by Andy Kirkham + * You also need to import [/cookbook/FPointer|FPointer library]] 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.