FRDM-K64F OLED SPI Driver in C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-K64F OLED SPI Driver in C

Jump to solution
3,980 Views
mahendranmanoha
Contributor III

Hi everyone,

I am working on selecting the OLED for my project. To minimise the software efforts for interfacing, I searched the web to find a driver for SSD series based OLED to start the development with. But, I was not successful. If anyone know where I can find SPI driver in C for FRDM-K64F, please let me know. Your help is much appreciated.

Best regards,

Mahendran

Tags (2)
0 Kudos
1 Solution
3,305 Views
BlackNight
NXP Employee
NXP Employee

For the SSD1351, see mcuoneclipse/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_Adafruit_SSD1351 at master · ErichStyger/mcuone... 

I do have a smilar thing for SSD1306 and SSD1331, but not ported yet to MCUXpresso IDE.

I hope this helps,

Erich

View solution in original post

10 Replies
3,305 Views
mjbcswitzerland
Specialist V
0 Kudos
3,305 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Mahendran,

I recommend you to download the newest version of the MCUXpresso SDK for the FRMD-K64F. In the SDK you will find all the drivers for the peripherals of the board along with examples that implement those drivers.

Link to learn more about the SDK. 

Link SDK builder. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

0 Kudos
3,304 Views
mahendranmanoha
Contributor III

Dear Victor,

Thanks for your response.

I downloaded the latest FRDM-K64F SDK for MCUXpresso IDE with all the options enabled. I can find the generic SPI and I2C driver. But, I could not find any example code for OLED Display. Besides, I could not find code for any other kind of displays.

best regards,

Mahendran

0 Kudos
3,305 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Mahendran,

In the following community post you will find an example of a 16x2 segment LCD using the drivers of the SDK. Driving 16x2 LCD using KSDK drivers  

Once you have the drivers in order to make the implementation you will need to read the datasheet of your display very carefully to learn what the I2C/SPI command and data flow you need to operation.

Regards,

Victor. 

0 Kudos
3,305 Views
mahendranmanoha
Contributor III

Thanks Victor,

I'd like to use OLED in my design.

Thanks for your efforts to help me out.

best regards,

Mahendran

0 Kudos
3,305 Views
mahendranmanoha
Contributor III

Thanks Erich for details,

 

I was looking for any kind of source code that I can use as a starting point for development.

The prerequisite were source code for

1. 0.96" OLED based on SSD series ICs

2. Colour or B&W,

3. SPI or I2C interface,

4. Developed for FRDM-K64F

5. Based on MCU Xpresso IDE 10.1

6. Source code in "C"

The first option will help me a lot in developing a code closer to the specification that I mentioned above.

Last option is good too, but I am little concerned that I may end up in a lot of unknown issues and take longer than the first approach.

It would be of great help if you can advise me on the best possible approach.

Thanks,

Best regards,

Mahendran

0 Kudos
3,305 Views
mahendranmanoha
Contributor III

Thanks Erich for details,

I was looking for any kind of source code that I can use as a starting point for development.

The prerequisite were source code for

1. 0.96" OLED based on SSD series ICs

2. Colour or B&W,

3. SPI or I2C interface,

4. Developed for FRDM-K64F

5. Based on MCU Xpresso IDE 10.1

0 Kudos
3,306 Views
BlackNight
NXP Employee
NXP Employee

For the SSD1351, see mcuoneclipse/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_Adafruit_SSD1351 at master · ErichStyger/mcuone... 

I do have a smilar thing for SSD1306 and SSD1331, but not ported yet to MCUXpresso IDE.

I hope this helps,

Erich

3,305 Views
mahendranmanoha
Contributor III

Thanks Erich for the swift response,

I will try porting the code for SSD1306, if I am successful, I will use that. Else, I will use the MCU Xpresso 10.1 based code for SSD1351.

Either case, I will let you know about the success. 

Thanks very much for your help.

best regards,

Mahendran

0 Kudos