Skip to content

Commit

Permalink
terminal: clear with inverted image
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Oct 14, 2020
1 parent e4c852e commit 1497a12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/terminal/main/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -2949,16 +2949,17 @@ static void full_refresh() {
if (!screen_tainted) {
return;
}
memset(render_fb_front, 255, EPD_WIDTH / 2 * EPD_HEIGHT);
memset(render_fb_back, 255, EPD_WIDTH / 2 * EPD_HEIGHT);
memset(render_mask, 255, EPD_WIDTH / 8 * EPD_HEIGHT);
ESP_LOGI("term", "epd clear.");

ESP_LOGI("term", "epd clear.");
epd_poweron();
epd_draw_image(epd_full_screen(), render_fb_front, WHITE_ON_WHITE);
epd_clear_area_cycles(epd_full_screen(), clear_cycles, clear_cycle_length);
epd_poweroff();
tfulldirt();
screen_tainted = 0;
memset(render_fb_front, 255, EPD_WIDTH / 2 * EPD_HEIGHT);
memset(render_fb_back, 255, EPD_WIDTH / 2 * EPD_HEIGHT);
memset(render_mask, 255, EPD_WIDTH / 8 * EPD_HEIGHT);
}


Expand Down

0 comments on commit 1497a12

Please sign in to comment.