Hello there...
I just want get my Keypad running (4x4) and now i got this error. No idea where the mistake is.
[code]
#include <Keypad.h>
//jetzt wird die Größe des Keypads definiert
const byte COLS = 4;// 4 Spalten
const byte ROWS = 4;
byte colPins[COLS]= { 9, 8, 7, 6}; // definition der Pins für die 4 Spalten
byte rowPins [ROWS]= { 5, 4, 3, 2};
char hexaKeys[ROWS][COLS] =
{
{,D, ,E, ,0, ,*},
{,C, ,9, ,8, ,7},
{,B, ,6, ,5, ,4},
{,A,3,2,1}
};
char pressedKey; // pressedKey ab jetzt = gedrückte Taste
Keypad myKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
//Keypad wird absofot mit myKeypad angesprochen
void setup ()
{Serial.begin(9600)};
void loop()
{
pressedKey = myKeypad.getKey();// pressedKey entspricht absofort der gedrückten taste
if (pressedKey) {
Serial.print("Die Taste");
Serial.print(pressedKey);
Serial.print("wurde gedrueckt");
Serial.println();
}
}
[/code]
Could anyone help me pls?