-->
Page 1 of 2

I2C LCD not working

PostPosted: Fri Oct 09, 2015 12:24 am
by Appi
hey
I am trying to migrate a working Arduino Sketch to an ESP8266-03. Within the sketch I use a I2C 4x20 LCD witch works very well in on my existing Arduino Nano. The Constructor is the following:
// Set the pins on the I2C chip used for LCD connections:
// addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
LiquidCrystal_I2C lcd(0x20, 4, 5, 6, 0, 1, 2, 3, 7, NEGATIVE); // Set the LCD I2C address

With the Library LiquidCristal_I2C on the ESP8266 Platform in the Arduino IDE the Display don’t work. It is not possible to declare the pin association. The only accepted definition is:
LiquidCrystal_I2C lcd(0x0A,20,4);
Is there another library available for the ESP8266 Arduino IDE.

Thanks for your support

remo

Re: I2C LCD not working

PostPosted: Sat Oct 10, 2015 10:05 pm
by mrburnette
I've never seen an I2C constructor that looks like yours...

I've used this I2C this way:
http://nathan.chantrell.net/20141230/wifi-mqtt-display-with-the-esp8266/

Ray

Re: I2C LCD not working

PostPosted: Sun Oct 11, 2015 2:34 am
by schufti
if you show us the LiquidCrystal_I2C lib that you are using maybe someone can find a solution.
Interesting that your lib doesn't need the dimensions (rows, cols) of the display?

Re: I2C LCD not working

PostPosted: Sun Oct 11, 2015 4:49 am
by Appi
hey
i used the Lib from this URL:
http://www.datsi.fi.upm.es/docencia/Inf ... ue-I2C.htm

The Example "I2C LCD DISPLAY VERSION 2" works very well for my LCd 4 x 20. The lines and columes are definde in the line lcd.begin(20,4); // initialize the lcd for 20 chars 4 lines, turn on backlight

thanks

Remo