keypad map

i have a ede1144 conected to a keypad and arduino i am trying to get the keys the same as on the keypad
the keys are 123A ...
but I get 1234,4567...
can anyone help with this thank you tom


#include <Keypad.h>

const byte ROWS = 4;
const byte COLS = 4;
char keys [ROWS][COLS] =
{{ '1','2','3','A'},
{ '4','5','6','B'},
{ '7','8','9','C'},
{ '*','0','#','D'}};
byte rowPins[ROWS] = {5,4,3,2};
byte colPins[COLS] = {9,8,7,6};
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS);

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10,9);
//int keyRead = 0;
//int button = 0;

void setup()
{
Serial.begin(9600);
while (!Serial) {
;
}
Serial.println("hello tom");
mySerial.begin(9600);
// Serial.write(Serial +1);

mySerial.println("hello w0rld?");
}

void loop()
{
if (mySerial.available())

Serial.write(mySerial.read());
{
void mySerial();
{
// if (mySerial)=0;
//Serial.print("1");
//char key = keypad.getkey();
//if (key !=NO_KEY)
}
//switch (keyRead)
{
// case 0:
// keyRead = '1';
// break;
// case 1:
// keyRead = '2';
// break;
return ;
}
}
}


// int bit0 = 0;
// int bit1 = 0;
// int bit2 = 0;
// int bit3 = 0;
//char button;
//byte read = Serial.read();

//keyRead = bit0 + (bit110) + (bit2100) + (bit3*1000

i have a ede1144 conected to a keypad

A what? Connected how?

Why did you connect a ede1144 to the keypad, for what reason? The Arduino keypad library will decode the keypad for you.

The keypad class expects that you directly connect the pad to the specified pins. It will then check the pins/buttons itself.

If you absolutely have to use an external decoder because you lack free pins, you can't use that class. You may be able to modify it so it reads the decoder instead.

I have an lcd, keypad am going to use a wifi maybe I don't need all the pins. I will try it thanks tom

can anyone tell me why i get this error default argunents are only permitted for fuction parameters


#include <Keypad.h>

const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] =
{{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}};

byte rowPins[ROWS] = {44, 46, 48, 50};
byte colPins[COLS] = {24, 26, 28, 30};

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

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

void loop()
(
char key = keypad.getKey();//error on this line
if (key != NO_KEY)
{
Serial.print(key);
}
}
//thanks tom1947

Your pins suggest your using a Arduino Mega, are you using a mega?

void loop()
( // look what you have here.
char key = keypad.getKey();//error on this line
if (key != NO_KEY)