Hi everyone, i have a little issues with my lcd display and i can’t find how to resolve it.
I’m pretty sure than it doesn’t come of the code ( but take a look).
So like the picture show us, it’s start by saying “bonjour” (hello in french") and then he show me lines. So i think it doesn’t come of the circuits. thanks for the helps
the code works but is not finishes.
#include<Keypad.h>
#include <LiquidCrystal.h>
const byte ROWS = 4; //four rows
const byte COLS = 3; //four columns
char keys[ROWS][COLS] = {
{’*’,‘0’,’#’},
{‘7’,‘8’,‘9’},
{‘4’,‘5’,‘6’},
{‘1’,‘2’,‘3’}
};
byte rowPins[ROWS] = {7,8,9,13}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {0, 1, 6}; //connect to the column pinouts of the keypad
int i, ages, poids, utilisateur1, reponse = 0, utilisateur2;
char prenom[20] = { 0 };
float densimetre, pourcentalcool, alcoolingere, volume = 33;
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS );
LiquidCrystal lcd(12,11,5,4,3,2);
char key = keypad.getKey();
void setup() {
lcd.begin(16,2);
}
void loop(){
char key = keypad.getKey();
lcd.clear();
lcd.setCursor(0,0);
lcd.print(“bonjour”);
delay(1500);
lcd.setCursor(0,1);
lcd.print(“etes vous”);
lcd.setCursor(0,2);
lcd.print(“l’utilisateur 1?”);
lcd.setCursor(0,3);
valeurclavier();
if (key =! NO_KEY){
delay(1500);
lcd.clear();
lcd.print(“Users 1”);
lcd.setCursor(0,4);
}
else{
delay(3000);
lcd.clear();
lcd.print(“users numbers?”);
lcd.setCursor(0,4);
valeurclavier();
delay(1500);
lcd.print(“users”);
lcd.print(key);
}
}
void valeurclavier(){
while( key == NO_KEY){
char key = keypad.getKey();
lcd.print(key);
}
}