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

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Quantum8888
Posts: 7
http://meble-kuchenne.info.pl
Joined: Fri Dec 18, 2020 7:34 am

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

Post 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 55 times
under ESP32 I2C. Any Idea?

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

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

Post 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.

Quantum8888
Posts: 7
Joined: Fri Dec 18, 2020 7:34 am

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

Post 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
Attachments
螢幕截圖 2022-11-08 12.46.57.png
螢幕截圖 2022-11-08 12.46.57.png (187.5 KiB) Viewed 1105 times
Flowcode1.fcfx
(8.98 KiB) Downloaded 37 times

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

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

Post 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.
Martin

Quantum8888
Posts: 7
Joined: Fri Dec 18, 2020 7:34 am

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

Post by Quantum8888 »

Hi, medelec35.
No reaction to SH1106 I2C if in Channel mode. Only software mode can drive the LCD to initial and pring.

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

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

Post 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.

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

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

Post 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.

Post Reply