Adafruit 2.2 TFT ILI9341 - What is the supported BMP format?

Hi,

I am using the Adafruit 2.2 TFt display (ILI9341) (2.2 18-bit color TFT LCD display with microSD card breakout [EYESPI Connector] : ID 1480 : $24.95 : Adafruit Industries, Unique & fun DIY electronics and kits).

I've managed to display BMP files (purple.bmp provided by Adafruit) but I am having a hard time creating my own and displaying them. Some work some don't but I can't seem to figure out why. I am linking 2 files, one that works and one that doesn't. Both are 24-bit. I thought that the DPI was an issue but both images have the same.

=> https://nx3112.your-next.cloud/s/dJBKkRDegTZj7N3

I get the following error message: Not a supported BMP variant.

I've used GIMP to create them. I've tried using the one that works to create the one that doesn't.

Any recommendation on the software or on the actual specifics on a format that works?

Thanks,

Guillaume

Windows programs like Irfanview or Paint will write 24-bit BMP format.
Adafruit should display these BMP files.
MBED, CUBEMX, Atmel Start, ,... all understand this default BMP format.

Yes, there are many other valid BMP formats that can be displayed on a PC.
I support several e.g. 16-colour, 256-colour Palettes

Displaying BMP stored on SD card is simple for 24-bit colour. SD capacity is almost infinite.

David.

Both of your BMP files seem to be legally formatted.
I copied the files to my PC. Both displayed fine with Irfanview, Paint, Photos, ... (i.e. brown image)

I copied the BMP files to SD card. Both displayed fine with Adafruit spitftbitmap sketch

Your "cloud" website does not show the Backgammon image with the correct colours.
I suspect that this is a problem with your "cloud"

David.

Edit. Both BMPs are rendered incorrectly by your "cloud". When did you expect to see a CYAN sun ?

Hi,

Thanks for trying this out. I don't know what's wrong... And yes I noticed about the weird colors on the Cloud link. I still haven't figured out the problem but I will keep looking.

Cheers,

Your files rendered fine on both ILI9341 and on the PC.

It is only your "cloud" that is crap.

Hi,

It ended up working. Not sure what happened. Anyways, thanks for support.

Cheers,