OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

For general Flowcode discussion that does not belong in the other sections.
chipfryer27
Valued Contributor
Posts: 1146
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 284 times
Been thanked: 412 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post 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

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post 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
Attachments
SSH1106SPInano_edit.fcfx
(15.57 KiB) Downloaded 883 times

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post by mnfisher »

Hi Jorgen,

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

Martin

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post by mnfisher »


jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post by jgu1 »

Hi Martin!

I Will test later today.

Jorgen

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post 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

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post by mnfisher »

Glad to hear it works....

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post by mnfisher »

And see viewtopic.php?f=10&t=2233 for a different approach....

pmgreene01
Posts: 35
Joined: Sat Jul 08, 2023 7:39 pm
Has thanked: 3 times
Been thanked: 4 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

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

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: OLED display issues, gLCD_SH1106_I2C1, Arduino Nano

Post 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

Post Reply