Fork without short circuits

Dependents:   SaveKeypad

Fork of keypad by HM Yoong

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:
8:6f46334b16b7
Parent:
7:e57b8ffc45d1
Child:
9:e48ba5b4c497
--- a/keypad.h	Tue Jan 31 00:24:12 2012 +0000
+++ b/keypad.h	Tue Jan 31 00:30:41 2012 +0000
@@ -29,7 +29,8 @@
 /**
  * An interrupt-based interface to 4x4 keypad.
  *
- * You also need to import [[/cookbook/FPointer|FPointer library]] by Andy Kirkham
+ * 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.