GDM1602 A

bonjour tout le monde
je suis tout nouveau dans ce forum

j ai deja une petite question :

j ai achete un arduino uno
est il possible avec un afficheur de chez lextronics type GDM 1602 a 3 fils donc liaison serie d afficher un mot ?

cordialement
joel

Bonjour,

Oui!

bonjour
j aime ce oui aussi rapide que l eclair.

aurais tu un simple petit example, juste pour afficher " bonjour "
moi depuis 2 jours toujours rien, beaucoup d internet et d essais mais rien.

donc si tu as un tout petit sketche, je suis bien preneur
cordialement
joel

Recherche sur google 1602 i2c
Par exemple

j ai deja fait

j aimerai avoir un tout petit soft, un truc simple pour afficher une simple lettre

merci d avance

ps je suis franchement debutant dans le monde de l arduino, avant je travaille avec le picbasic en basic

ici tu as un exemple

merci pour ton aide

en fait apres presque 1 journée, j y suis arrivée , aussi avec internet.

je fais part a la communauté de mon soft ( sketch ):

void setup() {
Serial.begin(19200);
ELCD_initialize();
delay(200);
ELCD_Cursor_OFF();
ELCD_create_char(9);
delay(1000);
ELCD_Clear_LCD();
delay (10);

ELCD_Cursor_Position(1,1);
ELCD_put_str("LOULOU");

delay (500);
ELCD_Clear_LCD();

ELCD_Cursor_Position(1,0);
ELCD_put_str("LOULOU");

delay (500);
ELCD_Clear_LCD();

delay(500);
ELCD_Cursor_Position(10,1);
ELCD_put_chr(0x09);

}

void loop() {
}

/* Initialize l'afficheur lcd */
void ELCD_initialize(){
Serial.write((byte)0xA0);
}

/* Cache le curseur */
void ELCD_Cursor_OFF(){
Serial.write((byte)0xA3);
Serial.write((byte)0x0C);
}

/* Affiche le curseur */
void ELCD_Cursor_ON(){
Serial.write((byte)0xA3);
Serial.write((byte)0x0E);
}

/* Efface l'écran et place le curseur à (0, 0) */
void ELCD_Clear_LCD(){
Serial.write((byte)0xA3);
Serial.write((byte)0x01);
}

/* Place le curseur à la position (x, y) */
void ELCD_Cursor_Position(int x, int y){
Serial.write((byte)0xA1);
Serial.write((byte)x);
Serial.write((byte)y);
}

/* Affiche une chaine de caractéres (char[] terminé par \0) sur l'afficheur */
void ELCD_put_str(char *str){
Serial.write((byte)0xA2);
while(*str)
Serial.print(*str++);
Serial.write((byte)0);
}

/* Affiche un caratéres ASCII sur l'afficheur (caractéres spéciaux aux LCD non pris en charge) */
void ELCD_put_chr(char ch){
Serial.write((byte)0xA2);
Serial.print(ch);
Serial.write((byte)0);
}

//Définit un caractére personalisé à l'index défini (de 8 à 15) suivant le tableau newChar[]

void ELCD_create_char(byte newChar[]) {

Serial.write((byte)0xA5);
delay(100);
Serial.write((byte)0x09);
delay(100);
Serial.write((byte)0x10);
delay(100);
Serial.write((byte)0x01);
delay(100);
Serial.write((byte)0x01);
delay(100);
Serial.write((byte)0x01);
delay(100);
Serial.write((byte)0x01);
delay(100);
Serial.write((byte)0x01);
delay(100);
Serial.write((byte)0x01);
delay(100);
Serial.write((byte)0x01);

}

j ai a peu pres tous les exemples !

merci