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:
3:ecd4bb97a033
Parent:
2:2e4900821a28
Child:
4:b24cd656a23d
--- a/keypad.h	Mon Jan 30 09:55:13 2012 +0000
+++ b/keypad.h	Mon Jan 30 09:56:15 2012 +0000
@@ -28,9 +28,7 @@
 
 /**
  * An interrupt-based interface to 4x4 keypad.
- *
  * You also need to import 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.