Request for extended I2C LCD & OLED support.

Moderators: grovkillen, Stuntteam, TD-er

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

Request for extended I2C LCD & OLED support.

#1 Post by costo » 19 Dec 2015, 15:52

It is very nice that we can use displays in ESPEasy, but there are a few limitations that can be hard to overcome.
For instance the ESPEasy software assumes that all LCD displays have I2C address 0x27 and that all OLED displays have I2C address 0x3C.

OLED's are often switchable between address 0x3C and 0x3D with some sort of jumper.
Usually 20x4 and 16x2 LCD's have an I2C interface board that can be set with (solder)jumpers between 0x20 and 0x27. (ocasionally between 0x38 and 0x3F depending on the type, a PCF8574 or a PCF8574A)

So my wish is to see in the device tab under 'Optional Settings' a choice to fill in the actual I2C address or choose the I2C address. that the scanner has found.
For OLED 3C or 3D and for LCD between 20/27, than it is very easy to use different displays without the need to go into the device plugins and change the address in the source code recompile the code and flash the ESP.

Also a wish of me is to have OLED SSD1306 support for screen rotation. This could also be implemented as a choice between 2 options, 'normal' and 'rotated' in the Optional Settings tab of the OLED device.

I know that both extensions are not so difficult to implement, but I guess Martinus has to fix it so that every ESPEasy user can benefit from it.

Martinus

Re: Request for extended I2C LCD & OLED support.

#2 Post by Martinus » 20 Dec 2015, 09:50

I'll try to implement this with the next development build.

Martinus

Re: Request for extended I2C LCD & OLED support.

#3 Post by Martinus » 20 Dec 2015, 12:49

R54 is available and has the proposed features. Also included are the following commands:
OLEDCMD,On
OLEDCMD,Off
LCDCMD,On
LCDCMD,Off

For the LCD display, it will turn the backlight on or off.

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

Re: Request for extended I2C LCD & OLED support.

#4 Post by mkotek » 20 Dec 2015, 16:41

Martinus wrote:R54 is available and has the proposed features. Also included are the following commands:
OLEDCMD,On
OLEDCMD,Off
LCDCMD,On
LCDCMD,Off

For the LCD display, it will turn the backlight on or off.
Perfect execution. Thank you, going to test it.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.

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

Re: Request for extended I2C LCD & OLED support.

#5 Post by BertB » 20 Dec 2015, 18:01

So cool!
Thanks

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

Re: Request for extended I2C LCD & OLED support.

#6 Post by costo » 20 Dec 2015, 23:01

Thank you Martinus, very nice feature.

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

Re: Request for extended I2C LCD & OLED support.

#7 Post by costo » 21 Dec 2015, 16:59

Having tested the new plugin I found a little bug in the LCD part .

I choose a 4x20 LCD and have 4 lines,
line 1 '11111111111111111111' 20x'1'
line 2 '22222222222222222222' 20x'2'
line 3 '33333333333333333333' 20x'3'
line 4 '44444444444444444444' 20x'4'.

The LCD display is stubborn and displays like this: Image

Martinus

Re: Request for extended I2C LCD & OLED support.

#8 Post by Martinus » 21 Dec 2015, 17:54

Confirmed bug. Will be fixed in R55.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 39 guests