1 /* @file HelloKeypad.pde
3 || @author Alexander Brevig
4 || @contact alexanderbrevig@gmail.com
7 || | Demonstrates the simplest use of the matrix Keypad library.
12 - http://www.addicore.com/v/vspfiles/downloadables/Product%20Downloadables/Project_Interface_Kit/Addicore_12-Key_Keypad_Tutorial.pdf
13 - https://learn.adafruit.com/biometric-security-box
17 const byte ROWS = 4; //four rows
18 const byte COLS = 3; //three columns
19 char keys[ROWS][COLS] = {
25 byte rowPins[ROWS] = {8,7,6,5}; //connect to the row pinouts of the keypad
26 byte colPins[COLS] = {4,3,2}; //connect to the column pinouts of the keypad
28 // Try this if you think you have reversed the pins
29 //byte rowPins[ROWS] = {2, 3, 4, 5};
30 //byte colPins[COLS] = {6, 7, 8};
32 Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
39 char key = keypad.getKey();