SSD1351 OLED Display Driver

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
cobra1
Posts: 175
Joined: Thu Feb 04, 2010 7:44 am
Has thanked: 3 times
Been thanked: 3 times
Contact:

SSD1351 OLED Display Driver

Post by cobra1 »

I am trying to make a driver for a 128 x 128 OLED Display. It uses a SSD1351 Chipset and is driven using SPI.

The datasheet for the Display is here.

http://www.4dsystems.com.au/downloads/m ... %201.3.pdf

I am using some code as a guide which can be found here.

https://github.com/sebseb7/oled/blob/master/ssd1351.c

I have taken the init sequence and SETLED functions and output the data using the SPI Component, I have the following setup configuration. These are the pinouts from the PIC.

RESET = RC4
CS = RC7
D/C = RC6
SCK = RC3 //USING HARDWARE SPI
SDO = RC5 //USING HARDWARE SPI, Goes to SDI on the Display

Before a command i set D/C LOW and before sending data i set D/C High.
CS is set High before talking to the display.

Has anyone else used this display and has drivers for it?
At this point all i need is to be able to get the display to wake up and display pixels using the setLED function.

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: SSD1351 OLED Display Driver

Post by Benj »

Hello,

The CS pin should normally be active low so you would set it to 0, communicate with the module and then pull the CS high to signify the end of the transaction.

I can look at creating a component based on the demo code you have provided.

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: SSD1351 OLED Display Driver

Post by Benj »

Hello,

Right I don't have the hardware available to test this but I've checked it compiles :D

You might need to update your version to 6.0.4 using the check for updates item in the help menu to allow the component to work.
gLCD_SSD1351.fcpx
(53.75 KiB) Downloaded 338 times
Drop the component into your v6/Components directory to allow the component to appear in Flowcode.

Let me know how you get on.

cobra1
Posts: 175
Joined: Thu Feb 04, 2010 7:44 am
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: SSD1351 OLED Display Driver

Post by cobra1 »

Thanks for that Ben. I will try it when i get home this evening.

I realised that the CS pin was wrong and did manage to get the screen to initialise and could plot pixels.

I was getting a wierd problem tho. If i create a full white background and then put a pixel in another colour. That row of white pixels would become duller than the rest.

Have you ever come across this before when using oled displays??
Im thinking i may have to tweak a setting in the init code???

cobra1
Posts: 175
Joined: Thu Feb 04, 2010 7:44 am
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: SSD1351 OLED Display Driver

Post by cobra1 »

Hi Ben,

I tried the driver as you said and i cannot get it to work at all. Im not sure if the driver i linked in my first post used the D/C instruction Pin.
I saw the driver you posted has a register select pin, i assume this is the same as D/C pin ???


Here is one that uses the D/C instruction Pin. Just incase

https://github.com/ilsoftltd/colour-ole ... ColourOLED

Post Reply