Custom 5x5 matrix keypad

Hello,
I made a custom matrixed keypad that is 100000% correctly soldered, yet it only works in a 5x4 mode the fifth row never gets detected I tried flipping one of the rows with this one and confirmed it’s soldered correctly. Using arduino Nano and Keypad library from Alexander Brevig(can’t find the link)
The code:

#include <Keypad.h>

const byte ROWS = 5; //four rows
const byte COLS = 5; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
  {'0','1','2','3','4'},
  {'5','6','7','8','9'},
  {'A','B','C','D','E'},
  {'F','G','H','I','J'}
};
byte rowPins[ROWS] = {6, 5, 4, 3, A1}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {11, 10, 9, 8, 7}; //connect to the column pinouts of the keypad

//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS); 

void setup(){
  Serial.begin(9600);
}
  
void loop(){
  char customKey = customKeypad.getKey();
  
  if (customKey){
    Serial.println(customKey);
  }
}

You only initialized a 5x4 matrix in the hexaKeys array, the last row will be null characters.

Yup, missing a 5th row, such as

  {'K','L','M','N','P'}  // or O if you can tell the difference from 0

Ooh,didn't even realize it worked like that. Thank you soo much.

Question is - how else could it work? :astonished:

The microprocessor is not a mind reader! It only does what you tell it to - and in fact, exactly what you tell it to, no more, no less. :sunglasses:

Paul__B:
Question is - how else could it work? :astonished:

The microprocessor is not a mind reader! It only does what you tell it to - and in fact, exactly what you tell it to, no more, no less. :sunglasses:

Please read the OP again, you'll notice that that was not the question.

Not everybody is into becoming a computer. Some people use Arduino for fun.
Meaning they want to stay emotional, feeling humans, interested in the result of working with Arduino,
and not so much in the gritty bits of programming.

"Social distancing" at home, eh? :roll_eyes: