#include <Keypad.h>
#define Row 4
#define Col 4
char keys[Row][Col]=
{
{'1','2','3','+'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','='}
};
byte rowpin[Row]={2,3,4,5 };
byte colpin[Col]={6,7,8,9};
Keypad key=Keypad(makeKeymap(keys),rowpin, colpin,Row, Col );
void setup() {
Serial. begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
char store=key. getKey();
if(store)
{
Serial. print(store);
}
}