Skip to main content
AÖzba.1
Associate
October 1, 2020
Question

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

  • October 1, 2020
  • 1 reply
  • 1002 views

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

    This topic has been closed for replies.

    1 reply

    Peter BENSCH
    Technical Moderator
    October 5, 2020

    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.