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.
SSD1351 OLED Display Driver
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
Hello,
Right I don't have the hardware available to test this but I've checked it compiles
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.
Drop the component into your v6/Components directory to allow the component to appear in Flowcode.
Let me know how you get on.
Right I don't have the hardware available to test this but I've checked it compiles
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.
Drop the component into your v6/Components directory to allow the component to appear in Flowcode.
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 175
- Joined: Thu Feb 04, 2010 7:44 am
- Has thanked: 3 times
- Been thanked: 3 times
- Contact:
Re: SSD1351 OLED Display Driver
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???
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???
-
- Posts: 175
- Joined: Thu Feb 04, 2010 7:44 am
- Has thanked: 3 times
- Been thanked: 3 times
- Contact:
Re: SSD1351 OLED Display Driver
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
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