Problems with oled-SSD1322 display component

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Problems with oled-SSD1322 display component

Post by Bruno »

Hello
I'm Bruno and this is my first post.
I have FC7-v7.3.0.5,
I have problems with an oled-SSD1322 display. In Buffered mode, it does not work because I think the D / C pin is missing in the configuration.
In Parallel mode, the compiler stops responding and I have to close the program.
How can I solve?
Thank you

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Benj »

Hi Bruno,

Please can you attach your program that demonstrates the compiler stopping responding so we can try and replicate. Just use the attachments tab when posting a reply to add the file, it's underneath the editable text field.

Do you also have a link to the datasheet for the display you're using so we can compare to the components.

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Hello
Thank you for your reply.
Attached you can find two programs, in bufferd mode and parallel mode and the photo of the display.

Finally I can ask you if it is possible to insert in the macro components the command "SendCOmmand" ? It is very convenient.

Thank you very much.
Attachments
Oled_3.2P_Buffered.fcfx
(8.83 KiB) Downloaded 187 times
Oled_3.2P_Parallel.fcfx
(9.31 KiB) Downloaded 160 times
Display Oled_SSD1322.jpg
Display Oled_SSD1322.jpg (61.68 KiB) Viewed 6883 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by LeighM »

Thanks for your post, the Parallel version does indeed crash Flowcode... investigating...

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Benj »

Hello,

Please can you try the attached updated component, fingers crossed it should solve the problem.

Simply copy the file to your "Flowcode 7/components" folder and restart Flowcode.
gLCD_SSD1322.fcpx
(33.11 KiB) Downloaded 225 times

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Hi Benj
Thanks for the new macro component, I tried it and flowcode does not crash but the display does not work.
I will try the display with an arduino board to test if it works

Best regards.

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Hi Beny
I have tested the display with Arduino mega configured in spi 4 ways:
cs
d/c
data
sck
reset
I used the library available on https://github.com/olikraus/u8g2 and the display
it works correctly, but I can not understand why it does not work in flowcode.
Can you help me understand what the problem is?
thank you

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by stefan.erni »

Hi Bruno

Do you have a PDF file from the display? Or a link to the display?

regards

Stefan

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Hi Stefan
This is the link: https://it.aliexpress.com/item/3-12-inc ... autifyAB=2

and attached is pdf

regards
Attachments
SSD1322.pdf
(1.05 MiB) Downloaded 184 times

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

......sorry the link of the display is this: https://it.aliexpress.com/item/Yellow-C ... 7be0&tpp=1

thanks for your time

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by stefan.erni »

Hi Bruno

Control if the resistor are like in the picture.So you are sure it's 4pin.
Config_Display.PNG
(528.46 KiB) Downloaded 2716 times
Connect the additional pin as in the picture.
If it's still not working, can you post a schema how do you connect it.Or a picture from your harware.
Pin_Display.PNG
(165.47 KiB) Downloaded 2716 times

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Thank you Stefan,
the display is in configuration 4pin SPI as indicatyed in the picture you sent me.
Thus, it works correctly with arduino connected with CS, D/C, SCK, DATA, Reset, as in the flowcode macro for the SSD_1351 component.

I think that the problem dipends on the absence of the D/C pin in your macro component for SSD_1322, as you can see in the attached screenshot.
I remind you that I am using a microchip pic 18f46k22.

Waiting for your answer.
Best regards.
Attachments
screenshot SSD1322.jpg
screenshot SSD1322.jpg (258.4 KiB) Viewed 6788 times
screenshoot SSD1351.jpg
screenshoot SSD1351.jpg (124.19 KiB) Viewed 6788 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by stefan.erni »

Hi Bruno

I suspect you are right. In 4wire mode you need the pin. But I guess in 3wire mode, you do not need the pin. If so, the FC Component and Hardware Display are not matching properly.

You have to take away R15 and solder it to R16 for 3wire mode,

but before maybe Ben tells us if he is use 4wire or 3wire mode.

regards

Stefan

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Hi Stefan
I configured the display in 3 ways through the resistors, as shown on the board but still does not work.
As I said before, I have also configured the display in parallel mode, but even so it does not work,
I think there is a problem with initializing the SSD1322 in FC.

regards

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Benj »

Hello,

I've just had a look through my GLCD test drawer and can't find a SSD1322 display, some of the displays are not marked which isn't helpful.

I'll see if I can get hold of some displays to do some testing for you. Hmm all the display on eBay are £20+ so maybe not.

Would it be possible for you to send us a display so we can double check things are ok here?

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Problems with oled-SSD1322 display component

Post by Bruno »

Hi Benj,
thank you for the reply. I think It would be too compicated and expensive to send you a display for the tests.
Moreover, I bougth only one for chech functionality so I think that it is not possible to follow your proposal.
Probably, it could be better you send me your modifications of the configuration macro and I will chech for you.
Otherwise, you could allow me the access to the macro and I would try to find the problem.

I'll wait for your answer.
Best Regards.

Bruno.

Post Reply