1
/* @file HelloKeypad.pde
3
|| @author Alexander Brevig
4
|| @contact alexanderbrevig@gmail.com
7
|| | Demonstrates the simplest use of the matrix Keypad library.
12
const byte ROWS = 4; //four rows
13
const byte COLS = 3; //three columns
14
char keys[ROWS][COLS] = {
20
byte rowPins[ROWS] = {2,3,4,5}; //connect to the row pinouts of the keypad
21
byte colPins[COLS] = {8, 7, 6}; //connect to the column pinouts of the keypad
23
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
30
char key = keypad.getKey();