Thursday, February 22nd 2018, 12:05am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Mar 14th 2017

Posts: 3


Tuesday, March 14th 2017, 4:03pm

ILI9341 SPI Harmony

hello, I'm new with emWin MPLAB and harmony and I can not use the display with ILI9341 driver. the module uses 4-wire communication with spi and I provide a PIC32MZ2048EFH064 and Harmony 2.01.
I would like someone to explain to me in a very simple and possibly for a basic how to use it. (Flex_color?)
I am a beginner and I read very carefully the pdf file but I only did so much confusion and I found this very difficult system to use. thank you

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 496


Wednesday, March 22nd 2017, 9:07am


The GUIDRV_FlexColor is the proper choice.

Unfortunately I'm not familiar with the Harmony package. But attached you will find sample LCDConf.c to be used with the ILI9341. it might be necessary to adapt some of the functions used to write and read data, but it should work quite well as an example.

SEGGER - Schoenen has attached the following file:
  • (4.64 kB - 210 times downloaded - Last download: Feb 20th 2018, 2:57pm)



Date of registration: Mar 14th 2017

Posts: 3


Saturday, April 15th 2017, 8:50pm

hi, I have difficulty to understand how to use ili9341 with GUIDRV_FlexColor method using spi ....
I am losing many hours to figure out how to do but 'without success.
I need someone to explain to me step by step how to use this system
if I try to adapt existing files I only do damage
thank you ?(



Date of registration: Apr 22nd 2017

Posts: 1


Tuesday, May 2nd 2017, 5:40pm


you just need to implement the base functions that LCDConf uses (like mentioned below) in terms of SPI read/write routines - the sample provided by Sven uses 16 bit parallel bus - in Harmony you can use SPI instance to communicate with your LCD board.

PortAPI.pfWrite16_A0 = LCD_X_8080_16_Write00;
PortAPI.pfWrite16_A1 = LCD_X_8080_16_Write01;
PortAPI.pfWriteM16_A0 = LCD_X_8080_16_WriteM00;
PortAPI.pfWriteM16_A1 = LCD_X_8080_16_WriteM01;
PortAPI.pfRead16_A0 = LCD_X_8080_16_Read00;
PortAPI.pfRead16_A1 = LCD_X_8080_16_Read01;
PortAPI.pfReadM16_A0 = LCD_X_8080_16_ReadM00;
PortAPI.pfReadM16_A1 = LCD_X_8080_16_ReadM01;

Hope that helps:)