How to convert bmp to hex in the same format as M24SR-DISCOVERY?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-01 04:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-05 08:23 AM
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
