@@ -321,8 +321,21 @@ void displayWelcome() {
321321
322322 initEpdOnce ();
323323#ifdef EINK_1IN54V2
324- Paint_DrawBitMap (gImage_welcome );
324+ Paint_Clear (WHITE);
325+ // vertikal, horizontal
326+ Paint_DrawImage (gImage_openco2 , 60 , 0 , 80 , 200 );
325327 Paint_DrawString_EN (1 , 1 , VERSION, &Font16, WHITE, BLACK);
328+
329+ // circle XCenter,YCenter,radius
330+ Paint_DrawCircle (145 , 35 , 20 , BLACK, DOT_PIXEL_3X3, DRAW_FILL_EMPTY);
331+ Paint_DrawRectangle (139 , 0 , 151 , 30 , WHITE, DOT_PIXEL_1X1, DRAW_FILL_FULL);
332+ Paint_DrawLine (145 , 13 , 145 , 34 , BLACK, DOT_PIXEL_3X3, LINE_STYLE_SOLID);
333+
334+ // arrow Xstart,Ystart,Xend,Yend
335+ Paint_DrawLine (190 , 6 , 190 , 60 , BLACK, DOT_PIXEL_3X3, LINE_STYLE_SOLID);
336+ Paint_DrawLine (182 , 42 , 190 , 60 , BLACK, DOT_PIXEL_3X3, LINE_STYLE_SOLID);
337+ Paint_DrawLine (198 , 42 , 190 , 60 , BLACK, DOT_PIXEL_3X3, LINE_STYLE_SOLID);
338+
326339 EPD_1IN54_V2_Display (BlackImage);
327340 EPD_1IN54_V2_Sleep ();
328341#endif
@@ -360,25 +373,30 @@ void initEpdOnce() {
360373
361374void displayInitTestMode () {
362375#ifdef EINK_1IN54V2
363- Paint_DrawBitMap (gImage_init );
376+ Paint_Clear (WHITE);
377+ // vertikal, horizontal
378+ Paint_DrawImage (gImage_openco2 , 60 , 0 , 80 , 200 );
364379 Paint_DrawString_EN (1 , 1 , VERSION, &Font16, WHITE, BLACK);
365- Paint_DrawNum ( 125 , 25 , 1 , &mid, BLACK, WHITE); // 15 sec for testmode
380+ Paint_DrawString_EN ( 50 , 200 - 16 , " Test Mode " , &Font16, WHITE, BLACK);
366381 EPD_1IN54_V2_Display (BlackImage);
367382#endif
368383#ifdef EINK_4IN2
384+ Paint_DrawImage (gImage_openco2 , 60 , 0 , 80 , 200 );
369385 Paint_DrawString_EN (1 , 1 , VERSION, &Font16, WHITE, BLACK);
370386 EPD_4IN2_Display (BlackImage);
371387#endif
372388}
373389
374390void displayInit () {
391+ Paint_Clear (WHITE);
375392#ifdef EINK_1IN54V2
376- Paint_DrawBitMap ( gImage_init );
393+ Paint_DrawImage ( gImage_openco2 , 60 , 0 , 80 , 200 );
377394 Paint_DrawString_EN (1 , 1 , VERSION, &Font16, WHITE, BLACK);
378395 EPD_1IN54_V2_Display (BlackImage);
379396 EPD_1IN54_V2_Sleep ();
380397#endif
381398#ifdef EINK_4IN2
399+ Paint_DrawImage (gImage_openco2 , 60 , 0 , 80 , 200 );
382400 Paint_DrawString_EN (1 , 1 , VERSION, &Font16, WHITE, BLACK);
383401 EPD_4IN2_Display (BlackImage);
384402 EPD_4IN2_Sleep ();
0 commit comments