/*Write a program to interface LCD and keypad with Arduino board and display the key
pressed from keypad on LCD.*/
#include <liquidCrystal.h>
#include <keypad.h>
byte rowa=4;
byte cols=3;
char keys[rows][cols]={
{'1','2','3'}
{'4','5','6'}
{'#','0','*'}
};
keypad keypad=keypad(makekeymap(keys)),rpin,cpin,rows,cols);
void setup() {
Serial.begin(9600);
}
void loop() {
char key=keypad.getkey();
if(key!=no_key)
Serial.println(println(key);
);
}