Problem with LCD 16x4 I2C and ESP32

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
COMTEC_80
Posts: 18
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 1:56 pm
Been thanked: 1 time

Problem with LCD 16x4 I2C and ESP32

Post by COMTEC_80 »

Hi,
i suspect that there is a problem using display 16x4 (also 16x2) I2C and ESP32 in real hardware (simulation ok).
When start circuit display backlight go off and writing is ok but very slow; i have test all configuration of I2C but only partially working is software mode other not....
Attachments
Cattura.PNG
Cattura.PNG (188.82 KiB) Viewed 6872 times

BenR
Matrix Staff
Posts: 1936
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Problem with LCD 16x4 I2C and ESP32

Post by BenR »

Hello,

Please can you attach your program and maybe take a video of the problems your seeing on the hardware.

COMTEC_80
Posts: 18
Joined: Fri Dec 04, 2020 1:56 pm
Been thanked: 1 time

Re: Problem with LCD 16x4 I2C and ESP32

Post by COMTEC_80 »

Hi BenR,
in attachments You can see display before start program and after launch program with string "Start" composing slow and backlight down...
Display is 2004 I2C SUNFOUNDER.
Attachments
TestLedESP32.fcfx
(9.87 KiB) Downloaded 628 times
IMG_3458.JPG
IMG_3458.JPG (77.38 KiB) Viewed 6849 times
IMG_3457.JPG
IMG_3457.JPG (91.57 KiB) Viewed 6849 times

APSALTER
Posts: 2
Joined: Thu Dec 10, 2020 3:55 pm

Re: Problem with LCD 16x4 I2C and ESP32

Post by APSALTER »

This problem also occurs in V9 on I2C LCD 2004 display from AZ delivery and pic 16F18877. Backlight is turned off after execution of any I2C LCD command with the exception of any of type "print" which has to be followed by a "back light on" for each statement to display the result as demonstrated in the test extract below.
.
.
.
LCDI2C!::Backlight(1)

LCDI2C1::Cursor(10.1)

LCDI2C1::PrintNumber(5678)
(Backlight is off for delay period)
Delay 5s

LCDI2C::PrintAscii(88)

LCDI2C::BackLight(1)
(Backlight is now on)
.
.
.
Inserting an additional "LCDI2C::BackLight(1)" immediately before the delay gives the correct display.

BenR
Matrix Staff
Posts: 1936
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Problem with LCD 16x4 I2C and ESP32

Post by BenR »

Hello,

Many thanks for letting us know. I have hopefully now found and fixed the problem and the backlight should now be on by default when starting the display and should remain on unless switched off.

APSALTER
Posts: 2
Joined: Thu Dec 10, 2020 3:55 pm

Re: Problem with LCD 16x4 I2C and ESP32

Post by APSALTER »

Many thanks Ben for the prompt fix.
All LCDI2C commands now work with backlight on, also backlight on and off commands work ok.
Regards.
Andy.

Post Reply