2016-09-15 01:10 AM
Hello
everyone, I hope you are well.I have a small
problem I would like to display a logo of my my university on boardSTM32F429i_Discovery
but I sometimes displaying the logo ST. I use LCDimage 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 #ili93412016-09-17 04:25 PM
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.
2016-09-18 03:06 AM
Hm...
Try swap position of red and blue color parts in color matrix (Operations 2 and 3 on screenshot 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.2016-09-18 04:02 AM
2016-09-18 04:19 AM
When I reversed the green and red, now I have that going the blue to purple and green to blue.
2016-09-18 07:48 AM
Ok, I have completed project with BSP and checking settings!
See attachments here.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=false2016-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=false2016-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=false2016-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=falserect_blue.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzj3&d=%2Fa%2F0X0000000bPC%2FSE60F58Lj4F9wxc8E_Ojs3X2rQCmXdzRNHMKHEu7W7A&asPdf=falserect_blue.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzkt&d=%2Fa%2F0X0000000bPA%2FCXw.iLdyefMTbr4FkGHClahLD13JTYN7pKI4mm6B.xY&asPdf=falserect_green.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzit&d=%2Fa%2F0X0000000bP9%2FfFNGtTKihA9BWBRXzUMXdQrHSg0oYvxLsb2AlqHo7_I&asPdf=falserect_green.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzkk&d=%2Fa%2F0X0000000bPB%2F8UiOHuWp_kLmVYCkYErJDPWBXy9YuC.dDeR5ZkCXBxg&asPdf=falserect_red.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzEk&d=%2Fa%2F0X0000000bP8%2Fuh1wpJXPIGE7GryYi6oBKwdOvVFCXQTjr._NEURaBEs&asPdf=falserect_red.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HziU&d=%2Fa%2F0X0000000bP7%2FPkHK.Ytq9AcRtSbEwwiDfH9G22h6uMLhW1i1bp2_lUg&asPdf=falsestlogo.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzc9&d=%2Fa%2F0X0000000bP4%2FO4BscQ2UN88Z3mLQz09Jfm2v2BrrrhFnk51X_0W4qok&asPdf=falsestlogo.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzke&d=%2Fa%2F0X0000000bP5%2FbkeZfMuEQd37LqqHhXdjFIatzFO8hmmZfl0fFQ230iE&asPdf=falsestm32f429i-disco.tmpl : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzkZ&d=%2Fa%2F0X0000000bP6%2Fs5BmhillxEo.L0N7EVoRPplGicWdUBt833IFFpi4Jag&asPdf=false2016-09-18 11:45 AM
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
2016-09-18 06:44 PM
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.2016-09-19 01:24 AM
Thank you very much vladimir and all the members ST who responded to help me.
2016-09-19 01:30 AM
Hello,
Do you have ever worked withembedded
wizard or anathor software for designer
. I would like to learn to make small interfaces TFT displays as STM32F429i-Discovery.
Thank you.2016-09-19 07:16 AM
Hello,
If you you asking me then no, I don't, sorry.