I have been making Password based Security system with using password.h and keypad.h libraries.i use arduino UNO for this security system. When i program this security system i face small problem unfortunately. I need to get new function when i type password to the opposite side. how i do i it?
void keypadEvent(KeypadEvent key){
switch (keypad.getState()){
case PRESSED:
if(key == '#')
{
LcdClear();
gotoXY(6, 0);
LcdString("Enter Your");
gotoXY(13, 1);
LcdString("Password");
gotoXY(0, 2);
LcdString("============");
}
switch (key){
case '*': checkPassword(); break;
case '#': password.reset(); break;
default: password.append(key);
}
}
}
void checkPassword(){
if (password.evaluate())
{
gotoXY(16, 4);
LcdString("Correct ");
gotoXY(13, 5);
LcdString("Password ");
else
{
gotoXY(20, 4);
LcdString("Wrong ");
gotoXY(13, 5);
LcdString("Password ");
}
}