cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert bmp to hex in the same format as M24SR-DISCOVERY?

AÖzba.1
Associate II

I want to change the STIntro(); function in the M24SR-DISCOVERY source code. So I want to print a different image on a screen. But when I try that the image was corrupted. I think I am not using the same format as ST's format. Where can I find this format?

M24SR-DISCOVERY Code : https://www.st.com/en/evaluation-tools/m24sr-discovery.html#tools-software

1 REPLY 1
Peter BENSCH
ST Employee

This is not a specific format from STMicroelectronics, but rather a standard RGB565 format, as you can find in stlogo.h within stsw-m24sr001, which is used by LCD_WriteBMP_FAT.

The format RGB565 can be created by various tools, even the open source graphics program GIMP can export it directly to "C source code", just a single line of format description may be required to adapt to get it compatible to the function LCD_WriteBMP_FAT.

Does it answer your question?

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.