Hey Guys,
Trying to get something simple done, but can't seem to get it to work right.
Basically, just want a user to enter four numbers into a keypad, and then print those four numbers to the serial monitor as 'xxxx'.
Here's my code, what am I doing wrong?
void setup() {
Serial.begin(9600);
Serial.println("Press a Key...");
}
void loop() {
String keyOne = keypad.waitForKey();
String keyTwo = keypad.waitForKey();
String keyThree = keypad.waitForKey();
String keyFour = keypad.waitForKey();
String pwd = keyOne + keyTwo + keyThree + keyFour;
Serial.println(pwd);
delay(2000);
}