#include <Keypad.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
{'0','1','2','3'},
{'4','5','6','7'},
{'8','9','A','B'},
{'C','D','E','F'}
};
byte rowPins[ROWS] = {2,3,4,5}; //connect to the row pinouts of the keypad//connect digital
byte colPins[COLS] = {11,10,9,8}; //connect to the column pinouts of the keypad//connect analog
//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
void setup(){
Serial.begin(9600);
lcd.init();
lcd.backlight();
}
void loop(){
lcd.setCursor(3,0);
int i=lcd.println("EMBEDDED");
//for(i=0;i<=8;i++)
// Serial.println(i);
delay(500);
for(i=8;i>0;i--)
Serial.println(i);
// lcd.clear();
}