const byte ROWS=4;
const byte COLS=4;
char hexakeys[ROWS][COLS]={
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS]={3,2,1,0};
byte colPins[COLS]={13,12,11,10};
Keypad customKeypad=Keypad(makeKeymap(hexaKeys),rowPins,colPins,ROWS,COLS);
LiquidCyrstal lcd(9,8,7,6,5,4);
void setup() {
lcd.begin(16, 2);
lcd.print("Key Pressed");
delay(1500);
lcd.clear();
lcd.setCursor(0,0);
}
void loop() {
}