- Sun Sep 11, 2016 9:21 am
#54868
I know it has been a while but the issue stiil seems open.
The library Remo is using is the library from Francisco Malpartida, a very good and often used library in the arduino world.
The liquid Crystal_I2C library on the ESP8266 platform is another Arduino library which is more or less the standard library for the Arduino.
Remo you mention it doesn’t work because you cannot declare the pins. As far as I know that libray uses the pins as are standard on most I2C modules and it doesn’t expect them to be set separately in the initiation.
Just one question? what i2c Module are you using
When I work with the Malpartida library and the I2C lcds as offered on most chinese webshops, my initialisation is :
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
There is indeed a module that requires
LiquidCrystal_I2C lcd(0x20, 4, 5, 6, 0, 1, 2, 3, 7, NEGATIVE);
as in your example, but I still have to come across one
With regard to the malpartida library and ESP8266, till now I have avoided using it. It is a great library but on some places overly complicated, e.g. pulling the wire library from various locations depending on IDE version. However, people have posted it as to be used with the ESP8266.
https://github.com/esp8266/Basic/tree/master/libraries/LiquidCrystalI am not sure if you tested this specific LCD on yr arduono or that you have more than 1 lcd and just presumed they were the same.
Can i suggest you double check if you have the right initialisation code for your particular model. Use an I2C scanner if necessary and if for whatever reason you need to use the 'standard' LCD library I am afraid you have to dig in the h or cpp filke to set the proper pins