#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
LiquidCrystal_I2C lcd(0x27,16,2);
byte rowpins[4] = {2,3,4,5};
byte colpins[4] = {6,7,8,9};
char keys[4][4] = {
{'1','2','3','+'},
{'4','5','6','-'},
{'7','8','9','.'},
{'*','0','#','/'}
};
Keypad sasu = Keypad(makeKeymap(keys),rowpins,colpins,4,4);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.begin(16,2);}
void loop() {
// put your main code here, to run repeatedly:
char key = sasu.getKey();
if(key != NO_KEY){
lcd.backlight();
lcd.setCursor(0,5);
lcd.println(key);
}
}