LCD of different size and address 0x3f

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mkotek
Normal user
Posts: 116
Joined: 15 Dec 2015, 10:58
Location: Lomianki, Poland
Contact:

LCD of different size and address 0x3f

#1 Post by mkotek » 18 Dec 2015, 22:03

I have an LCD 2x16 on hand with I2C converter.
Unfortunately, the I2C Scanner on Easy ESP is showing this address, but with Bblank known devices. It it ok?
The reason I am asking is, I cannot display anything on this LCD, not even a single character.

Just to be precise - this very LCD is working in I2C mode on Arduino Uno fine - I am reconnecting it to Easy ESP and it does not work.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.

mkotek
Normal user
Posts: 116
Joined: 15 Dec 2015, 10:58
Location: Lomianki, Poland
Contact:

Re: LCD of different size and address 0x3f

#2 Post by mkotek » 18 Dec 2015, 22:33

I will answer myself, because I have only spotted it now - for the benefit of others.

The address and size is defined on LCD tab and it needs to be corrected to read (in my case):
// LCD
LiquidCrystal_I2C lcd(0x3f, 16, 2);
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.

vmfs1968
Normal user
Posts: 42
Joined: 18 Oct 2015, 23:51

Re: LCD of different size and address 0x3f

#3 Post by vmfs1968 » 18 Dec 2015, 22:37

mkotek wrote:I have an LCD 2x16 on hand with I2C converter.
Unfortunately, the I2C Scanner on Easy ESP is showing this address, but with Bblank known devices. It it ok?
The reason I am asking is, I cannot display anything on this LCD, not even a single character.

Just to be precise - this very LCD is working in I2C mode on Arduino Uno fine - I am reconnecting it to Easy ESP and it does not work.

Hello
you just have to edit the file P012_LCD.hino
this // LCD
line LiquidCrystal_I2C LCD (0x27, 20, 4);

by LCD
line LCD LiquidCrystal_I2C (0x3f, 20, 4);

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: LCD of different size and address 0x3f

#4 Post by BertB » 19 Dec 2015, 14:06

vmfs1968 wrote: Hello
you just have to edit the file P012_LCD.hino
this // LCD
line LiquidCrystal_I2C LCD (0x27, 20, 4);

by LCD
line LCD LiquidCrystal_I2C (0x3f, 20, 4);
I would say:
line LCD LiquidCrystal_I2C (0x3f, 16, 2); :)

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: LCD of different size and address 0x3f

#5 Post by costo » 19 Dec 2015, 16:20

I guess it is also a good idea to make a modification in the WebServer plugin.
The ' switch (address) case ' (found around line 1103-1137) needs an extra's entry for the 0x3F LCD.

case 0x20:
case 0x27:
case 0x3F:
reply += F("PCF8574, MCP23017, LCD Modules");
break;


So that the device will be actually shown with it's DeviceString.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests