Hello, everyone.
I'm developing gui using the sm32f4 board. ( IDE: IAR / board: STM32F469BE / development language : C )
Display All
Thank you for reading through
I'm developing gui using the sm32f4 board. ( IDE: IAR / board: STM32F469BE / development language : C )
- At first, I used the gif file by converting it into a c file using Bin2C.exe.
- So, I converted the file logo_ani.gif to logo_ani.c and included it in my project.
Source Code
- static const unsigned char _aclogo_ani[139961UL + 1] = {
- 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0xE0, 0x01, 0x20, 0x03, 0xD5, 0x3F, 0x00, 0x89, 0x89, 0x89, 0xCA, 0xCA, 0xCA, 0x4B, 0x45, 0x2D, 0xAE, 0x8C, 0x29, 0x22, 0x22, 0x21, 0xFB, 0xFB, 0xFB, 0xEB, 0xEB, 0xEB, 0xEA, 0xD5, 0x5F, 0x09, 0x09, 0x09,
- ...
- };
Source Code
- static void _ShowMovie(const char *pFile, uint32_t FileSize){
- GUI_GIF_IMAGE_INFO ImageInfo = {0};
- GUI_GIF_INFO GifInfo = {0};
- int i;
- int j;
- int XPos;
- int YPos;
- GUI_Clear();
- GUI_GIF_GetInfo(pFile, FileSize, &GifInfo);
- XPos = (GifInfo.xSize >= 480) ? 0 : 160 - (GifInfo.xSize / 2);
- YPos = (GifInfo.ySize >= 800) ? 0 : 150 - (GifInfo.ySize / 2);
- while(1){
- for(j=0; j< GifInfo.NumImages; j++)}
- GUI_GIF_DrawSub(pFile, FileSize, XPos, YPos, j);
- GUI_GIF_GetImageInfo(pFile, FileSize, &ImageInfo, j);
- GUI_Delay(ImageInfo.Delay ? ImageInfo.Delay * 10 : 100);
- }
- ...
- if(...)
- return;
- }
- }
- But now I have to download and use gif images in external memory due to the problem of program output file size getting too big.
- Currently, image files are downloading image.bin files through ST-LINK Utility.
- In the case of gif, how can I know if I can download to the board?
- Could i make bin file (array of gif : _aclogo_ani[139961UL + 1] ) and download on my board with STM32Cube Programmer?
Thank you for reading through