cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429i_Discovery with LCD load logo or image

ibrahim
Associate II
Posted on September 15, 2016 at 10:10

Hello

everyone, I hope you are well.

I have a small

problem I would like to display a logo of my my university on board

STM32F429i_Discovery

but I sometimes displaying the logo ST.

I use LCD

image converter

but it does not work well to create my table to integrate it into the code.

I do not know

if ST used another converter. You can point me please.

I use BSP_LCD_DrawBitmap(...);

Thank you very much.

#stm32f429i #lcd #ili9341
29 REPLIES 29
Walid FTITI_O
Senior II
Posted on September 15, 2016 at 11:08

Hi enedis.ibrahim,

As an image converter, you can use the BmpCvt.exe that you find in the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries-expansions/stemwin.html?dl=7JWPyd6ozD0RRD/U37Lszw%3D%3D%2cTTxy66t518CZrd6ZmiJb6/ipxMw9iGq9nNHIaojo2ezZluez3Fzp1hw8mx1tHO1V

package at this path:

STemWin_Library_V1.1.2\Libraries\STemWinLibrary522\Software\

-Hannibal-

ibrahim
Associate II
Posted on September 15, 2016 at 17:20

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6oO&d=%2Fa%2F0X0000000bw0%2FSsOwaMM6kLFg9VJNYm7W_XSQiK4YMr1.sEPFK0SRmSE&asPdf=false
Walid FTITI_O
Senior II
Posted on September 15, 2016 at 17:57

Hi enedis.ibrahim,

Just open the image that you want to convert, and save it as ''C'' BMP file.

-Hannibal-

riuson
Associate II
Posted on September 15, 2016 at 19:29

Hello, enedis.ibrahim.

Can you describe a problem with LCD Image Converter in more details?

ibrahim
Associate II
Posted on September 15, 2016 at 19:34

When

I generate

my file how I can work with this table? because it's a .c file and there are other GUI

.h file

that

I have to add

in my project

.

ibrahim
Associate II
Posted on September 15, 2016 at 19:45

Hello,

Thank you for your reply;

I just want to

display a logo on the screen of my STM32F429i_discovery card at the moment and

after

display images

and video from a

webcam.

Posted on September 15, 2016 at 21:03

Ok, the concept you need to wrap your head around is this byte array is just a representation of the bytes within the .BMP file. Now there may be other constraints about what type of BMP file you use, ie dimensions of image, colour depth, etc.

You might want to use tools like GIMP to get the graphic image in the form you need/want.

You could take the .BMP and use basic File IO functions (fopen, fread, fseek, fclose, etc) and read the binary data from the file, and output it in the same type of textual ASCII format used by C to allow you to encapsulate the file data into an array.

If you are not familiar with data representations in memory, and those in files, please get a File Viewer (Hex Editor, etc) and look at the content of the files, and how that is reflected in these compilable C arrays.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ibrahim
Associate II
Posted on September 15, 2016 at 21:31

Thank you for your answer, I would like to have an example with a picture.bmp converted .c file with BmpCvt.exe for example and display it on a LCL STM32. thank you

riuson
Associate II
Posted on September 16, 2016 at 09:11

enedis.ibrahim,

You can work with it like with any other file with source code.

Do you know that output format can be adjusted?