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:
13:fb6929fac0db
Parent:
11:a45e64141ce6
--- a/keypad.h	Sat Nov 03 23:43:46 2012 +0000
+++ b/keypad.h	Sun Nov 04 09:49:35 2012 +0000
@@ -93,6 +93,14 @@
      */
     int Scan(void);
 
+    /** Scan the keyboard for multiple debounced pressed keys
+     */
+    int DebouncedScanMultiple(void);
+
+    /** Scan the keyboard for multiple pressed keys
+     */
+    int ScanMultiple(void);
+
     /** User-defined function that to be called when a key is pressed
      *  @param fptr           A function pointer takes a uint32_t and
      *                        returns uint32_t