New to Arduino. Trying to make a combo lock using a keypad. I keep getting this error code:
exit status 1
expected initializer before 'customKey'
I try to initialize it with a char but then it gives the same error code with the 'char' instead of 'customKey'. I initialized customKey at the very beginning of the code with a char so I'm very confused as to why this isn't working.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
customKey = customKeypad.getKey();
if(customKey=='#')
change();
if (customKey)
{
password[i++]=customKey;
As you did not post all of your program it is impossible to see what the change() function does but it looks likely that the '#' will be added to the password
Please post all of your code using code tags when you do.