bonjour j'essaye de crée et affiche des caractères quand j'affiche 1 sa marche quand je met plus de un sa me met des signe pas normal
première caractère (flèche bas (tous fonctionne))
#include <ShiftLCD.h>
ShiftLCD lcd(5, 6, 7);
byte DOWN[7]{B00000, B00100, B00100, B00100, B10101, B01110, B00100};
void setup() {
lcd.begin(16, 2);
lcd.createChar(0,DOWN);
}
void loop() {
lcd.setCursor(0, 1);
lcd.write(DOWN);
}
rajout fleche haut(la sa marche pas)
#include <ShiftLCD.h>
ShiftLCD lcd(5, 6, 7);
byte DOWN[7]{B00000, B00100, B00100, B00100, B10101, B01110, B00100};
byte UP[7]{B00000, B00100, B01110, B10101, B00100 ,B00100 ,B00000};
void setup() {
lcd.createChar(0,DOWN);
lcd.createChar(0,UP);
}
void loop() {
lcd.setCursor(0, 1);
lcd.print((char)DOWN);
lcd.setCursor(15, 1);
lcd.write(UP);
}
et un 3eme (valider)
#include <ShiftLCD.h>
ShiftLCD lcd(5, 6, 7);
byte DOWN[7]{B00000, B00100, B00100, B00100, B10101, B01110, B00100};
byte UP[7]{B00000, B00100, B01110, B10101, B00100 ,B00100 ,B00000};
byte VALIDE[6]{B00000, B00000, B00001, B00010, B10100, B01000};
void setup() {
lcd.createChar(0,DOWN);
lcd.createChar(0,UP);
//lcd.createChar(0,VALIDE);
}
void loop() {
lcd.setCursor(0, 1);
lcd.print((char)DOWN);
lcd.setCursor(8, 1);
lcd.write(VALIDE);
lcd.setCursor(15, 1);
lcd.write(UP);
}
librairie uriliser
mon afficheur lcd est brancher par un74HC595
si quelqu'un peux me dire ce qu'il cloche merci d'avance