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:
9:e48ba5b4c497
Parent:
8:6f46334b16b7
Child:
10:9a9ec143840b
--- 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"