Hello Guys,
I'm new to arduino and i'm looking to do a function to store or append the pressed keys on a keypad inside a char variable.. is this possible?
Here's what i'm doing:
void newPassJVC(KeypadEvent eKey){
char *newKey;
switch (keypad.getState()){
case PRESSED:
lcd.clear();
lcd.setCursor(0,1);
lcd.print(eKey);
switch (eKey){
case '*':
lcd.clear();
lcd.setCursor(0,0);
lcd.print(newKey);
jvc.set(newKey);
break;
case '#':
lcd.clear();
lcd.print("Cancelar...");
delay(1000);
currentPosition = -1;
displayCodeEntryScreen();
break;
default:
newKey += eKey;
}
}
}
It clearly isn't working..
Thanks in advance!
Regards,
Jesus