#include <EEPROM.h>
#include <Keypad.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
char storedPass[4]; // Variable to get password from EEPROM
char password[4]; // Variable to store users password
char masterPass[4]; // Variable to store master password
char key_pressed = 0; // Variable to store incoming keys
uint8_t i = 0; // Variable used for counter
// defining how many rows and columns our keypad have
const byte rows = 4;
const byte columns = 4;
// Keypad pin map
char hexaKeys[rows][columns] = {
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};
// Initializing pins for keypad
byte row_pins[rows] = {5, 4, 3, 2};
byte column_pins[columns] = {9, 8, 7, 6};
// Create instance for keypad
Keypad newKey = Keypad( makeKeymap(hexaKeys), row_pins, column_pins, rows, columns);
void setup() {
lcd.begin(0x27, 16, 2);
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Enter Pssword :");
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}