LCD2004 Help

@tack
******************** by Google ****************
hello,
thank you for your reply.
I just did the test with Arduino 103 LiquidCrystal_I2C v1.21 and your code:

LiquidCrystal_I2C LCD (lcdAdrr, 2,1,0,4,5,6,7) // Addr, EN, RW, RS, D4, D5, D6, D7

it does not work.

Indeed the display that I have (Saintsmart LCD20x4 J204A) address is set to:

lcdaddr = 0x3F

pins are wired on the PCA857A :

En = 6, RW = 5, RS = 4, D4 = 0, D5 = 1, D6 = 2, D7 = 3

Even in writing:

LiquidCrystal_I2C LCD (0x3F, 6, 5, 4, 0, 1, 2, 3);

it does not work, just flash!

A new library DFRobot which works well with J204A:
http://www.dfrobot.com/image/data/DFR0154/LiquidCrystal_I2Cv1-1.rar

Sincerely


bonjour,
merci de votre réponse.
Je viens de faire le test avec Arduino 103, LiquidCrystal_I2C v1.21 et votre code :

LiquidCrystal_I2C lcd(lcdAdrr,2,1,0,4,5,6,7); // Addr, EN, RW, RS, D4, D5, D6, D7

cela ne fonctionne pas.

En effet sur l'afficheur que je possède ( Saintsmart LCD20x4 J204A) l'adresse a pour valeur :

lcdaddr = 0x3F

les broches sont cablées sur le PCA8574 :

En = 6, RW = 5, RS = 4, D4 =0, D5 = 1, D6 = 2, D7 = 3,

Même en écrivant :

LiquidCrystal_I2C lcd(0x3F, 6, 5, 4, 0, 1, 2 , 3);

cela ne fonctionne, seulement des flashs !

Une nouvelle bibliothèque de dfrobot qui fonctionne bien avec le J204A :
http://www.dfrobot.com/image/data/DFR0154/LiquidCrystal_I2Cv1-1.rar

Bien cordialement