Hi
my lcd don't display caracter when i am typing on kepad 4*5 ,
otherwise if i use keyboard of pc and monitor arduino it s showing me what i am typing !!!
any help please !
#include <LiquidCrystal.h>
#include <Keypad.h>
const int RS = 9, EN = 8, D4 = 5, D5 = 4, D6 = 3, D7 = 2;
LiquidCrystal lcd(RS, EN, D4, D5, D6, D7);
const byte ROWS = 5; //five rows
const byte COLS = 4; //three columns
char keys[ROWS][COLS] = {
{'F','b','#','*'},
{'1','2','3','*'},
{'4','5','6','*'},
{'7','8','9','*'},
{'F','b','#','*'},
};
byte rowPins[ROWS] = {10,9,8,7,13}; //connect to the row pinouts of the keypad {11,10,9,8,7,6} // {10,9,8,7,6};
byte colPins[COLS] = {2, 3, 4, 12};
char key;
char a ;
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
}
void loop() {
lcd.write("hello");
char key = keypad.getKey();
if(key){
Serial.println(key);
lcd.clear();
lcd.write(key);
}}