Solved
How to send an image located on a USB drive to the display?
ILI9341 display connected to STM32F407VGT6
The USB drive is connected to the STM32F407VGT6, this USB drive contains images, I need to send these images to the display.
I already know how to send to the display an array that is located on a USB drive.
I convert the image into an array, for example with the program Image2Lcd Ver3.2
And I send this array to the display with the following code:
char line[100];
uint32_t Num;
while(f_gets(line, 2, &USBHFile))
{
if(line[0] == 'x' || line[0] == 'X')
{
char hex[10]={"0x"};
f_gets(line, 3, &USBHFile);
strcat(hex,line);
Num=strtol(hex, NULL, 16);
while(!(SPI1->SR & SPI_SR_TXE));
SPI1->DR = Num;
while(!(SPI1->SR & SPI_SR_TXE));
}
}
I don't understand now how to send images to the display without conversion.
I need at least an algorithm of actions. I don’t understand what needs to be done in order to send an image to the display without converting the image to an array.
