Page 3 of 6

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sat Nov 11, 2023 6:24 am
by chipfryer27
Hi

It's by user johnsondav and can be found here

https://www.matrixtsl.com/mmforums/view ... 66&t=19116

He kindly shared a few guides which I found to be very helpful.

Regards

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sat Nov 11, 2023 12:47 pm
by jgu1
Hi!

I have testet pmgreene01 SH1106 I2C program, same issue for me.

I have a SH1106 SPI display, it works perfectly, except if i close the program and open it again it has not saved the pin connections?

Br jorgen

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sat Nov 11, 2023 12:59 pm
by mnfisher
Hi Jorgen,

Did you try my test - though it's for the i2c display...

Martin

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sat Nov 11, 2023 7:29 pm
by mnfisher

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sun Nov 12, 2023 6:19 am
by jgu1
Hi Martin!

I Will test later today.

Jorgen

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sun Nov 12, 2023 1:07 pm
by jgu1
Wow Martin made a test, really fast, full speed ;)

Maybe MM team can use something from your program to fix the SH1106 I2C component in FC10, and still, it work perfect with the SPI, but will not save the pin conection?

Br Jorgen

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sun Nov 12, 2023 1:32 pm
by mnfisher
Glad to hear it works....

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Sun Nov 12, 2023 1:46 pm
by mnfisher
And see viewtopic.php?f=10&t=2233 for a different approach....

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Wed Nov 15, 2023 4:05 pm
by pmgreene01
Martin,
I ran the program glcd.fcfx and it is much faster than using the standard SH1106 component.
I am rather new to Flowcode, how do I turn your code into a component I can add to my 2D panel?

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Posted: Wed Nov 15, 2023 4:17 pm
by mnfisher
Hi,

- Converting it to a component is fairly straightforward. However, adding simulation and other niceties less so. I think getting glcd_base working correctly (see my note above) - handles a lot of this background stuff though. I'll have a bit more of a play and see if I can get it working.
In fact it might be possible (and maybe) easier to modify the existing component - pulling out all the writes to the display - adding a 'Display' macro that the use calls to output to the display..

Martin