2018-05-27 12:15 PM
I did make a project for DiscoveryF746 & CubeMX 4.25.1 with the window with GIF image (my avatar).
For GUI_App.c file
the angel does not wave his wings for setting (as well as on my avatar)
WM_MULTIBUF_Enable(1);
Angel wings for setting
WM_MULTIBUF_Enable(0);
Why is that?
#discovery-f746 #gif #stemwin #multibuf2018-05-30 01:09 AM
Hi
Chernobay.Vitali.002
,Please keep all posts with the same questionin this
https://community.st.com/0D70X000006SqvYSAS
and do not duplicate in other threads.With Regards,
Imen
2018-05-31 08:51 PM
#define START_GIF 0xD0600000
#define NEXT_ADDRESS_GIF(A) START_GIF+(A)
void GIF (void)
{ GUI_GIF_IMAGE_INFO ImageInfo = {0}; // Info structure of one particular GIF image of the GIF file GUI_GIF_INFO GifInfo = {0}; // Info structure of GIF file int i; int j; int XPos; int YPos; uint32_t selByt = 0; fresult=f_open(&MyFile,'123.gif', FA_READ); do { f_read(&MyFile, (char*)NEXT_ADDRESS_GIF(selByt), 512, &bytesread); selByt+=512; }while(bytesread > 511); GUI_GIF_GetInfo((char*)START_GIF, MyFile.fsize, &GifInfo); WM_MULTIBUF_Enable(1); while(1) { for (j = 0; j < GifInfo.NumImages; j++) { GUI_GIF_DrawSub((char*)START_GIF, MyFile.fsize,400, 100, j); // Draw sub image GUI_GIF_GetImageInfo((char*)START_GIF, MyFile.fsize, &ImageInfo, j); // Get sub image information } }}2018-05-31 08:54 PM
If you use the IMAGE_SetGIF () function, keep track of the frame addresses yourself.
2018-06-01 02:52 AM
Hello,
vitalik180887
I have problems not only with the image.
The project is launched under the condition
//WM_MULTIBUF_Enable(1);
or
WM_MULTIBUF_Enable(0);
BUT! If I compile the project with the condition
WM_MULTIBUF_Enable(1);
After the power is turned off and on...
a project does not start...
2018-06-01 03:53 AM
Hello! Everything works! I'm using stm32f746IGT! I can throw off my project! You will need to remake to your controller!
2018-06-01 04:19 AM
vitalik180887
Thanks for the answer.
Did you use CubeMX for a generationof GUI?
Are GUIConf & LCDConf(STemwin_wrapper) from CubeMX?
With Regards,
Vitaliy Chrenobay.
2018-06-01 05:42 AM
https://drive.google.com/open?id=1AYxPMysZ0m1lGJIBlLjQgjl59kttVfRe