Hi, just a newbie to keypad. Please help me with my problem about keypad.
here's my output In LCD:
" Welcome User!
Press * "
when the user pressed '*'
the LCD will be cleared "lcd.clear();"
and the user should able to input 5 numbers which is I am now confused.
code:
void loop() {
char key=keypad.getKey();
if(key=='*')
{lcd.print(key);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Verification code:");
lcd.setCursor(0,3);
lcd.print("Press # ");
** key==NO_KEY;**
** {**
** count++;**
** if(count==5)**
** {**
** lcd.clear();**
** count=0;**
}
}
}
if(key=='#')
{
loading();
}
}
when i pressed '*', i should be able to input 5 numbers which i can't get after pressing *.