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