Arduino Mega 2560 TFT dynamic image display

Hello

I am working on displaying image on TFT 480 X 320 using Arduino Mega 2560 .
I am MCUfriend library to display image. But my issue is the image data will keep changing as it fetches data from serial port.
The drawBMP example uses PROGMEM and i am unable to modify the data once stored.
The showBMP works on .BMP file format but the data i receive is in the form of hexcode.
I have tried using drawn pixel but i get blank data .
Can anyone pls guide me how to display image using data from serial port?
Thank you

These threads may help you a bit:

thank you for the links but these are image data like logo.bmp already stored either in SD card or progmem.
Since the image data in my project is going to stream through uart I can't use progmem.
I am not able to find a way to decode entire show bmp example .
Can you help me how to display image when data not stored in progmem?

The BMP file contains data at the beginning, with information about the format of the data that follow, size of image, etc. Read about it here.

That is essential information and it must be supplied somehow. Raw image data obtained from the serial port cannot be displayed without it.

thank you. Is there any online tool to convert bmp file in this file format then I can test the working of the code and image sent in serial port.

There are many tools to interconvert image file formats. What do you mean by "this file format"?

Sorry for that.
I searched online , there are bmp converters for hex code and .c file extension.
But I could'nt find tools to convert bmp with file format mentioned in Wikipedia ( the format that I can use for show bmp with header and other details ) .

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.