Trying to run an 11 x 8 keypad

the last line of my code will not run. please help. it is the last line of the keypad line 17. what am I doing wrong. '_', '=', '+', ',', '<', '.', '>', '/'

#include <Keypad.h>

const byte ROWS = 11;
const byte COLS = 8;

char hexaKeys[] = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'X', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', '1', '2', '3', '4', '5', '6',
'7', '8', '9', 'a', 'b', 'c', 'd', 'e',
'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z', '!', '@', '#',
'$', '%', '^', '&', '*', '(', ')', '-',
'?', ';', ':', '"', '[', '{', ']', '}',
'_', '=', '+', ',', '<', '.', '>', '/'
};
byte rowPins[ROWS] = {24, 26, 28, 30, 32, 34, 36, 38, 41, 43, 46};
byte colPins[COLS] = {A7,A6,A5,A4,A3,A2,A1,A0};

Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);

String inputString;
long inputInt;

void setup(){
Serial.begin(9600);
inputString.reserve(88); // maximum number of digit for a number is 10, change if needed
}

void loop(){
char customKey = customKeypad.getKey();

if (customKey){
Serial.println(customKey);
}
}

What Arduino are you using?

Is the keypad the only thing connected? If not, please post a schematic.

I don't have a schematic but I'm hooking it up to a dartboard with an 11 x 8 matrix. Everything works except that line. I've rewired it 20 times with multiple anrduino mega 2560 board. I'm sure my wiring is right

Can you please edit your opening post and use code tags. Select your code and click the < / > button. Next save your post :wink:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.