bw add partial mode example

This commit is contained in:
YXZhu
2022-12-07 23:29:42 +08:00
parent 3d33fc591c
commit 1e12291272
31 changed files with 4117 additions and 3648 deletions
+31 -4
View File
@@ -64,9 +64,12 @@ int main(void)
epd_paint_showPicture((EPD_H - 250) / 2, (EPD_W - 122) / 2, 250, 122, gImage_4, EPD_COLOR_WHITE);
epd_display(image_bw, image_red);
epd_enter_deepsleepmode(EPD_DEEPSLEEP_MODE1);
delay(8000);
epd_init();
epd_paint_selectimage(image_bw);
epd_paint_clear(EPD_COLOR_WHITE);
#ifdef EPD_213
@@ -100,9 +103,12 @@ int main(void)
epd_paint_showPicture((EPD_H - 250) / 2, (EPD_W - 122) / 2, 250, 122, gImage_4, EPD_COLOR_WHITE);
epd_displayBW(image_bw);
epd_enter_deepsleepmode(EPD_DEEPSLEEP_MODE1);
delay(5000);
epd_init_partial();
epd_paint_selectimage(image_bw);
epd_paint_clear(EPD_COLOR_WHITE);
#ifdef EPD_213
@@ -115,15 +121,36 @@ int main(void)
#endif
epd_paint_showString(10, 29, (uint8_t *)&"Designed By WeAct Studio", EPD_FONT_SIZE16x8, EPD_COLOR_BLACK);
sprintf((char *)&text, ">> Hello World.");
epd_paint_showString(10, 71, text, EPD_FONT_SIZE24x12, EPD_COLOR_BLACK);
#if 0
epd_paint_showString(10,100,(uint8_t *)&"APM32F103CBT6 Example",EPD_FONT_SIZE16x8,EPD_COLOR_BLACK);
#else
epd_paint_drawRectangle(10, 103, EPD_H - 10, 116, EPD_COLOR_BLACK, 1);
#endif
epd_displayBW(image_bw);
sprintf((char *)&text, ">> Partial Mode");
epd_paint_showString(10, 71, text, EPD_FONT_SIZE24x12, EPD_COLOR_BLACK);
epd_displayBW_partial(image_bw);
delay(1000);
for (uint32_t i = 123; i < 8 * 123; i += 123)
{
sprintf((char *)&text, ">> Num=%d ", i);
epd_paint_showString(10, 71, text, EPD_FONT_SIZE24x12, EPD_COLOR_BLACK);
epd_displayBW_partial(image_bw);
delay(100);
}
sprintf((char *)&text, ">> Hello World.");
epd_paint_showString(10, 71, text, EPD_FONT_SIZE24x12, EPD_COLOR_BLACK);
epd_displayBW_partial(image_bw);
delay(1000);
epd_update();
#endif
epd_enter_deepsleepmode(EPD_DEEPSLEEP_MODE1);