keypad print

Can keypad like this print letters? I am trying to print “e4” but it shows me only 4.
#include <Keypad.h>
const byte ROWS = 1; //one row
const byte COLS = 1; //one column
char keys[ROWS][COLS] = {
{‘1’}
};
byte rowPins[ROWS] = {7}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {3}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup(){
Serial.begin(9600);
}

void loop(){
char key = keypad.getKey();

if (key != NO_KEY){
Serial.println(key);
}
}

Can keypad like this print letters?

No. The keypad is an input device. It does not have the ability to print letters, graphics, or anything.

I am trying to print "e4" but it shows me only 4.

The one key that you have defined causes the value '1' to be returned when the key is pressed. There is no reason to expect that printing that value will result in "e4" being printed anywhere.

If you see '4' anywhere when printing '1', you have other problems.

PaulS: No. The keypad is an input device. It does not have the ability to print letters, graphics, or anything. The one key that you have defined causes the value '1' to be returned when the key is pressed. There is no reason to expect that printing that value will result in "e4" being printed anywhere.

If you see '4' anywhere when printing '1', you have other problems.

I found this as a solution for my problem: https://www.arduino.cc/en/Tutorial/KeyboardAndMouseControl But there is one problem. It need to have 1 pin for each button. I have 64 buttons and arduino uno. Is there any way i can fix it or use other solution?

Have a look at this link. It might be what you are looking for.

http://playground.arduino.cc/Main/CellPhoneKeypad

HazardsMind: Have a look at this link. It might be what you are looking for.

http://playground.arduino.cc/Main/CellPhoneKeypad

This supports multiple keypresses?

Have you ever sent a text message on an old flip phone, or a cell phone made before 1999?

Mrkrx: I found this as a solution for my problem: https://www.arduino.cc/en/Tutorial/KeyboardAndMouseControl But there is one problem. It need to have 1 pin for each button. I have 64 buttons and arduino uno. Is there any way i can fix it or use other solution?

You can wire your buttons in an 8x8 matrix with diodes to stop cross-connecting multiple presses. Power each row in turn, read each column of each row to get button pin state.

Important: you don't have to check all the buttons every time through loop(). Let other tasks get a chance. 64 buttons can be polled in a fraction of a millisecond even if you only check One Button per loop(). You will at least need to use array(s) for all those buttons, C++ objects would be better.

Or you can wire each button to a leg on an input (parallel to serial, SPI bus) shift register and read the lot as high speed serial data in no time flat. You'd need to daisy-chain 8 chips and give them power from a source other than the Arduino, regulated 5V grounded to Arduino ground. With the pin states in the bits of 8 bytes and the previous states in 8 others, bitwise logic can detect pin state changes at once.