C is case-sensitive, if that helps.
DOG, Dog, dog. All different.
C is case-sensitive, if that helps.
DOG, Dog, dog. All different.
Hi guys,
I want to thank you all for helping me.
This is my modified code and now it's working.
Wish you all the best.
Regards
// 8/8 keypad to print characters
// on computer display
#include <Keypad.h>
int R0=9;
int R1=8;
int R2=7;
int R3=6;
int R4=5;
int R5=4;
int R6=3;
int R7=2;
const byte Rows = 8; // 8 rows
const byte Cols = 8; // 8 columns
char keys [Rows] [Cols] ={
{'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','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','1','2','3','4'},
{'5','6','7','8','9','0','.',','},
};
byte rowPins [Rows] = {R0, R1, R2, R3, R4, R5, R6, R7};
// connect to row pinouts of the keypad
byte colPins [Cols] = {A0, A1, A2, A3, A4, A5, A6, A7};
// connect to column pinouts of keypad
Keypad customKeypad = Keypad( makeKeymap (keys), rowPins, colPins,
Rows, Cols );
void setup()
{
Serial.begin (9600);
}
void loop() {
char customKey = customKeypad.getKey();
if (customKey){
Serial.println(customKey);
}
}
Well done.
What other plans do you have for the keypad ?
UKHeliBob:
Well done.What other plans do you have for the keypad ?
I want to connect a GLCD to my project and to insert a custom
character for each button. As I can see, I have a lot of programming
for doing this. It looks very scary because I don't have too
much experience.
Perhaps some short indications would be helpful.
switch (customKey){
case 'a':
:
:
break;
case 'b':
:
:
break;
// etc.
}
Thank you very much.
I will try to do it when I can find some time.
Regards