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
ibrahim
Associate II
Posted on September 18, 2016 at 01:25

Thank you so much for your help Vladimir, but i have always the same problem with the color and the inverted logo, I followed your picturs on the same thing but i can not see a good color logo.

riuson
Associate II
Posted on September 18, 2016 at 12:06

Hm...

Try swap position of red and blue color parts in color matrix (Operations 2 and 3 on screenshot

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Attachments/16888/2016-09-16_21-41-png

from previous post).

Also try convert 3 images filled with one color: only red, only green, only blue.

I have STM32F429I-Disco, but I don't have working application with BSP to check my assumptions.

ibrahim
Associate II
ibrahim
Associate II
Posted on September 18, 2016 at 13:19

When I reversed the green and red, now I have that going the blue to purple and green to blue. 

riuson
Associate II
Posted on September 18, 2016 at 16:48

Ok, I have completed project with BSP and checking settings!

See attachments here.

0690X00000605c4QAA.png

0690X00000603NCQAY.jpg

BSP_LCD_Init();
BSP_LCD_LayerDefaultInit(1, LCD_FRAME_BUFFER);
BSP_LCD_SelectLayer(1);
BSP_LCD_SetBackColor(LCD_COLOR_WHITE);
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_LCD_DrawBitmap(0, 0, 
reinterpret_cast
<uint8_t *>(&stlogo));
BSP_LCD_DrawBitmap(0, 70, 
reinterpret_cast
<uint8_t *>(&rect_blue));
BSP_LCD_DrawBitmap(0, 70 * 2, 
reinterpret_cast
<uint8_t *>(&rect_green));
BSP_LCD_DrawBitmap(0, 70 * 3, 
reinterpret_cast
<uint8_t *>(&rect_red));

I have described this in article

http://www.riuson.com/blog/post/generate-image-for-stm32-discovery-bsp

.

________________

Attachments :

2016-09-18_19-27-21.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzlI&d=%2Fa%2F0X0000000bPG%2F8Wlt98TzDdk6O4P7VicRvMC9bse1Ji7vZzYfIbQ0KEs&asPdf=false

2016-09-18_19-27-45.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzl8&d=%2Fa%2F0X0000000bPE%2F_Wo.RFWgISHGWOwj23GEeKETMsYhdg9C6JE.Gqatm98&asPdf=false

2016-09-18_19-28-20.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzl3&d=%2Fa%2F0X0000000bPF%2FlrCAjUWlJschxWOEsvJ_Yn4Mcp.QI6eiPzmeMx33V18&asPdf=false

2016-09-18_19-29-24.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzRK&d=%2Fa%2F0X0000000bPD%2FbimwvYfr4akt8puYYCdsVkEhCJiJBqSRx3QbXDh5lAg&asPdf=false

rect_blue.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzj3&d=%2Fa%2F0X0000000bPC%2FSE60F58Lj4F9wxc8E_Ojs3X2rQCmXdzRNHMKHEu7W7A&asPdf=false

rect_blue.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzkt&d=%2Fa%2F0X0000000bPA%2FCXw.iLdyefMTbr4FkGHClahLD13JTYN7pKI4mm6B.xY&asPdf=false

rect_green.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzit&d=%2Fa%2F0X0000000bP9%2FfFNGtTKihA9BWBRXzUMXdQrHSg0oYvxLsb2AlqHo7_I&asPdf=false

rect_green.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzkk&d=%2Fa%2F0X0000000bPB%2F8UiOHuWp_kLmVYCkYErJDPWBXy9YuC.dDeR5ZkCXBxg&asPdf=false

rect_red.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzEk&d=%2Fa%2F0X0000000bP8%2Fuh1wpJXPIGE7GryYi6oBKwdOvVFCXQTjr._NEURaBEs&asPdf=false

rect_red.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HziU&d=%2Fa%2F0X0000000bP7%2FPkHK.Ytq9AcRtSbEwwiDfH9G22h6uMLhW1i1bp2_lUg&asPdf=false

stlogo.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzc9&d=%2Fa%2F0X0000000bP4%2FO4BscQ2UN88Z3mLQz09Jfm2v2BrrrhFnk51X_0W4qok&asPdf=false

stlogo.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzke&d=%2Fa%2F0X0000000bP5%2FbkeZfMuEQd37LqqHhXdjFIatzFO8hmmZfl0fFQ230iE&asPdf=false

stm32f429i-disco.tmpl : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzkZ&d=%2Fa%2F0X0000000bP6%2Fs5BmhillxEo.L0N7EVoRPplGicWdUBt833IFFpi4Jag&asPdf=false
ibrahim
Associate II
Posted on September 18, 2016 at 20:45

Thank you very much boss, you gave me much idea and I hope it will help others, you will have more tutorial on how to use the STM32 Embedded Wizard for display applications or broadcast video or sound. Thank you so much. Just a little trick to cast reinterpret_cast I do not have that C is used in only the C ++ it does not matter if I'm just (unit8_t *)? and what is the other method used instead of BSP? and why it is generating xml ? thank you very much

riuson
Associate II
Posted on September 19, 2016 at 03:44

In ''C'' you can use

BSP_LCD_DrawBitmap(0, 0, (uint8_t *)&stlogo);

I'm not used LCD on STM32F4 before. So I'm not familiar with BSP, DMA2D and other features. On STM32F1 I'm using FSMC + DMA + external display controllers.

XML is using as internal storage format of this utility. You can edit image, save it to XML file, open later and continue editing.

ibrahim
Associate II
Posted on September 19, 2016 at 10:24

Thank you very much vladimir and all the members ST who responded to help me. 

ibrahim
Associate II
Posted on September 19, 2016 at 10:30

Hello,

Do you have ever worked with

embedded

wizard or anathor software for designer

. I would like to learn to make small interfaces TFT displays as STM32F429i

-Discovery.

Thank you.

riuson
Associate II
Posted on September 19, 2016 at 16:16

Hello,

If you you asking me then no, I don't, sorry.