Hi, I need to write a program that stores a password...(probably an array stored password). This password will be checked and compared when an input from a keypad is entered. Every thing is done through a micro controller. I got the keypad configuration done. In other words the micro accepts the inputs from the keypad, but my dificulty is creating a program that takes a password from the keypad. Sort of an ATM machine that needs a password from the user to identify and access the card...How could I do that?
Thank you very much
This is the idea I have...but not finished
unsigned char pass;
pass = 0x65; pass = 0x43; pass = 0x21; // password!
// wait for an iinput from keypad
// compare input from keypad to stored password
// if it is the same then do something...
// else...do it again.