STM32 provides a new compilation mode that greatly reduces the initial compilation time and is easier to operate.

This commit is contained in:
SSYYL 2022-10-13 11:43:16 +08:00
commit 0f3d02f894
168 changed files with 332875 additions and 5820 deletions

View file

@ -30,7 +30,7 @@
#include "EPD_Test.h"
#include "EPD_7in5_HD.h"
int EPD_7in5_HD_test(void)
int EPD_test(void)
{
printf("EPD_7IN5_HD_test Demo\r\n");
if(DEV_Module_Init()!=0){
@ -58,13 +58,13 @@ int EPD_7in5_HD_test(void)
Paint_SelectImage(BlackImage);
Paint_Clear(WHITE);
//Paint_DrawBitMap(gImage_7in5_V2);
//EPD_7IN5_HD_WritePicture(BlackImage, 0);
//The entire image size is EPD_7IN5_HD_WIDTH*EPD_7IN5_HD_HEIGHT/8
//Since the memory problem is transmitted halfway, now the other half is transmitted, so the offset address is required.
//Paint_DrawBitMap(gImage_7in5_V2 + EPD_7IN5_HD_WIDTH*EPD_7IN5_HD_HEIGHT/8/2);
//EPD_7IN5_HD_WritePicture(BlackImage, 1);
//EPD_7IN5_HD_WritePicture(BlackImage, 0);
//The entire image size is EPD_7IN5_HD_WIDTH*EPD_7IN5_HD_HEIGHT/8
//Since the memory problem is transmitted halfway, now the other half is transmitted, so the offset address is required.
//Paint_DrawBitMap(gImage_7in5_V2 + EPD_7IN5_HD_WIDTH*EPD_7IN5_HD_HEIGHT/8/2);
//EPD_7IN5_HD_WritePicture(BlackImage, 1);
EPD_7IN5_HD_DisplayImage(gImage_7in5_V2,0,0,800,480);
EPD_7IN5_HD_DisplayImage(gImage_7in5_V2,0,0,800,480);
DEV_Delay_ms(2000);
#endif
@ -93,9 +93,9 @@ int EPD_7in5_HD_test(void)
Paint_DrawNum(10, 50, 987654321, &Font16, WHITE, BLACK);
Paint_DrawString_CN(130, 0, " ÄãºÃabc", &Font12CN, BLACK, WHITE);
Paint_DrawString_CN(130, 20, "΢ѩµç×Ó", &Font24CN, WHITE, BLACK);
EPD_7IN5_HD_WritePicture(BlackImage, 0);
Paint_Clear(WHITE);
EPD_7IN5_HD_WritePicture(BlackImage, 1);
EPD_7IN5_HD_WritePicture(BlackImage, 0);
Paint_Clear(WHITE);
EPD_7IN5_HD_WritePicture(BlackImage, 1);
printf("EPD_Display\r\n");
DEV_Delay_ms(2000);
#endif