Skip to main content
mchalapetr
Associate III
March 19, 2015
Question

32F429IDISCOVERY LCD ILI9341 driver

  • March 19, 2015
  • 2 replies
  • 683 views
Posted on March 19, 2015 at 15:17

Hi,

I would like to ask if anyone has successfully changed the setting of the ILI9341 driver to little endian...I have data in this format but in default I have to send over SPI high byte first and low byte after that...I need it to be the other way around...

From data sheet http://www.newhavendisplay.com/app_notes/ILI9341.pdf I am convinced that the configuration should be something like this but it doesn't work...thanks for help...

&sharpdefine ILI9341_RGB_INTERFACE

    0xB0

&sharpdefine ILI9341_PIXEL_FORMAT

    0x3A

&sharpdefine ILI9341_INTERFACE

0xF6

LCD_ILI9341_SendCommand(ILI9341_PIXEL_FORMAT);

LCD_ILI9341_SendData(0x55);

LCD_ILI9341_SendCommand(ILI9341_INTERFACE);

LCD_ILI9341_SendData(0x01);

LCD_ILI9341_SendData(0x00);

LCD_ILI9341_SendData(0x20);

LCD_ILI9341_SendCommand(ILI9341_RGB_INTERFACE);

LCD_ILI9341_SendData(0x40);

#lcd #ili9341 #endian #32f429
This topic has been closed for replies.

2 replies

tm3341
Associate III
March 24, 2015
Posted on March 24, 2015 at 18:07

You can still do this:

uint8_t array_of_data[size];

for (i = 0; i < (size/2); i += 2) {

   SPI_Send(array_of_data[i + 1]);

   SPI_Send(array_of_data[i]);

}

mchalapetr
Associate III
March 26, 2015
Posted on March 26, 2015 at 19:19

Yeah but that isnt a solution...now I have to do this rearrangement (have no choice) of the data in the DMA interrupt...the interrupt should not be doing that, it should be blocking the main core...

What bugs is the fact that from manual it's obviously possible but I haven't been able to make it work in 5 hours...