Keypad input problem (feat. ASCII)

Hey guys

I'm trying to hook a 16x2 LCD and 4x4 keypad with my arduino uno.

So I coded everything and stuff.

How I initiated the keypad is :

char keys[rows][cols] = {
{'1'},
{'2'},
{'3'}
};

and I figured everytime I push those three buttons, numbers 49, 50, 51 would show up.

And those numbers looked so familiar so I checked the ASCII code and figured out 49,50,51 are actually ASCII codes for 1,2,3.

Now I'm wondering if there's a way I can have 1,2,3 as an outcome on my LCD monitor instead of their ASCII.

I thought removing those little ' ' things before and after each numbers but didn't work.

If anyone knows how to fix this, it would be great if you could help me out.

Thanks a lot :smiley:

I'm trying to hook a 16x2 LCD and 4x4 keypad with my arduino uno.

Get your calculator out, if you need to. What is 4 times 4? How many values do you need to provide for the 4 times 4 keys?

 char keys[rows][cols] = {
    {'1'},
    {'2'},
    {'3'}
  };

Wrong!

Now I'm wondering if there's a way I can have 1,2,3 as an outcome on my LCD monitor instead of their ASCII.

Of course you can.

If anyone knows how to fix this, it would be great if you could help me out.

If anyone knows how to post ALL of YOUR code, THAT would really help.