2015-03-19 07:17 AM
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 #32f4292015-03-24 10:07 AM
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]);}2015-03-26 11:19 AM
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...