Page 1 of 1

gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Mon Oct 31, 2022 4:54 am
by Quantum8888
gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.
Very slow clear and drawing string
Flowcode2addLCD.fcfx
(10.79 KiB) Downloaded 293 times
under ESP32 I2C. Any Idea?

Re: gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Wed Nov 02, 2022 12:41 pm
by BenR
Hello,

Please can you set the Stop Delay property of the display component to No. This shouldn't be required on the ESP hardware and will be causing a massive slow down on the I2C.

Re: gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Tue Nov 08, 2022 5:01 am
by Quantum8888
Thanks your fast reply, Ben.
Yes, Stop Delay is set to No. Check attached please. And video with slow display below:
https://clipchamp.com/watch/91iYCKNpTNe

Re: gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Tue Nov 08, 2022 8:00 am
by medelec35
Hello.
Since ES32 has I2C that can be remapped to a choice of pins, can you try changing Channel from software to Channel 1
Software selection will be much slower.

Re: gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Tue Nov 08, 2022 12:54 pm
by Quantum8888
Hi, medelec35.
No reaction to SH1106 I2C if in Channel mode. Only software mode can drive the LCD to initial and pring.

Re: gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Fri Nov 11, 2022 11:52 am
by BenR
What value of pull up resistor do you have?

It could be the pull up is too weak and so at higher speeds the display is not getting clean signals, this might explain why software mode works but hardware mode does not.

I would recommend pull up values of maybe 1K-4K7 to see if this helps at all.

Actually scratch that it seems the component needs an update to use I2C transactions, working on it now.

Re: gLCD_SH1106_I2C1 display with ESP-WROOM-32 was very slow.

Posted: Fri Nov 11, 2022 12:04 pm
by BenR
I've now pushed an update for you that should allow the hardware I2C channels to work correctly with the display.

Please go to Help -> Library Updates to get the latest version of the component.

Let us know how you get on.