I am doing a project that requires input from a keypad to be displayed on the LCD display.
lcd.print()
displays in proper form, but when the I press characters on the keypad, they are overwritten as weird symbols.
Any help would be appreciated.
Here's the code:
void setup()
{
Serial.begin(9600);
Serial.println("LCD test with PWM contrast adjustment");
pinMode(13,OUTPUT);
analogWrite(6,Contrast);
lcd.begin(16,2);
pinMode(buzzer, OUTPUT);
lcd.print(" Electronic ");
Serial.print(" Electronic ");
lcd.setCursor(0,1);
lcd.print(" Keypad Lock ");
Serial.print(" Keypad Lock ");
delay(2000);
lcd.clear();
lcd.print("Enter Ur Passkey:");
Serial.println("Enter Ur Passkey:");
lcd.setCursor(1,0);
for(int j=0;j<4;j++)
EEPROM.write(j, j+49);
for(int j=0;j<4;j++)
pass[j]=EEPROM.read(j);
}