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-16 01:32 AM
Thank you for the answer, but after generating code in .c with BitmpCV.exe I just copy the table in my .h file
stlogo.h
#ifndef __STLOGO_H
#define __STLOGO_H
#if defined ( __ICCARM__ )
#pragma data_alignment=4
#endif
_ALIG_BEGIN Const unsigned char stlogo [2795] _ALIGN_END {
copy of the table by generating BitmpCV.exe
}
#endif /* __STLOGO_H */
After my main.c
#include ''stlogo.h''
...
int main (void){
....
while (1){
BSP_LCD_DrawBitmap (40, (uint8_t *) stlogo);
}
With the example file STM does it work but with my table it does not work. thank you
my results
http://www.mediafire.com/view/7wgy8jh8a16j7sv/IMG_20160916_105009%5b1%5d.jpg
2016-09-16 03:18 AM
Save this code to file
#ifndef __STLOGO_H
#define __STLOGO_H
#if defined ( __ICCARM__ )
#pragma data_alignment=4
#endif
$(start_block_images_table)
_ALIG_BEGIN
const
unsigned char $(doc_name_ws)[$(out_blocks_count)] _ALIGN_END {
$(out_image_data)
};
$(end_block_images_table)
and select it as template for images (Options -> Conversion -> Templates).
I can show the rest of the settings, but I need to know the data format required by your program.
2016-09-16 05:18 AM
Hello
, here are the
stepsfor
how I
try to do the same asthe example of
STM
.
1st step: I generate my
image
in table .cwith
BmpCVt.exe so I'll have my table soon after they are on 8bit 0xFFand
soon
both16bit
0xFFFF. 2nd step:I open
my
file
stlogo.h
I brought
to STMsample file
in STM32F4xx_DFP/2.9.0/Projects
/STM32F429I
-Discovery
/Examples /BSP/IncWith
their
table
it works fine I displays the ST logo. but if I want to put my table and I create with BmpCVt.exe clears their table and I put my table. it gives me nothing and the display will give me any results.
2016-09-16 08:02 AM
2016-09-16 08:17 AM
Thank you for your help,
and I want to understand the program how you generate the table with that tool and its options thank you again
2016-09-16 08:30 AM
enedis.ibrahim
This is experiment with BMP internal data format.If the experiment
will succeed
, I made a template for LIC. Corrected code, format R5G6B5, in attachments.Try it and
let me know
the results.
________________ Attachments : image.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmQ&d=%2Fa%2F0X0000000bPW%2F0phSQrsQdkka9wJWKHVVotH.lXB7yXHvPJf6GN0VurU&asPdf=false2016-09-16 08:50 AM
it was successful but it gave me an inverted logo with color green and orange
2016-09-16 09:01 AM
And try this attachment with inverted R/B colors.
________________ Attachments : image.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzhg&d=%2Fa%2F0X0000000bPX%2Fq4JvYLn_aKuOky8355fmncF9B9R2zpg.cWEsr3iogq4&asPdf=false2016-09-16 09:08 AM
How can I change color details and how do I generate a table as you did for another
logo,
you can show me
the
way
.
Thank you
2016-09-16 09:47 AM
See attachments here.
________________ Attachments : 2016-09-16_21-40-46.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmL&d=%2Fa%2F0X0000000bPT%2FKLhTGSfhO9C4byRGEqlo.731H.0sPJGb0iiPAEeuhKE&asPdf=false2016-09-16_21-40-56.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmB&d=%2Fa%2F0X0000000bPR%2FOEcUUMQCWmF5Xs8og1G60NwX9P8lbBRTYzsZR0Brhy0&asPdf=false2016-09-16_21-41-05.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzm6&d=%2Fa%2F0X0000000bPS%2FZwic3xzlZW8rzYWl1k9nmgahS80ue9UmXQ3_RHCilWU&asPdf=false2016-09-16_21-41-13.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzKJ&d=%2Fa%2F0X0000000bPQ%2FktMRV4MlTkMMiyctw23deMknk7i9gBzaR2F7TdSSOjU&asPdf=false2016-09-16_21-41-19.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlw&d=%2Fa%2F0X0000000bPN%2FwhARxhyJ54f1wHKl57kwcOoozQ3mcxZ7wSMQ.YgnTgg&asPdf=falseenedis2.tmpl : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlr&d=%2Fa%2F0X0000000bPO%2FIuv.zS0hCiyCQ7_YVU5Cj2DVbkLNPHs3TLyCkH44BWs&asPdf=falsestm32disco-preset-r5g6b5.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlh&d=%2Fa%2F0X0000000bPP%2FzuaiB2CaEbFtv3WG15PiOlqdLE3OPleZiFaF374lRbY&asPdf=false