Skip to content

Commit

Permalink
looping dragon example #106
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Sep 4, 2021
1 parent 25f85bf commit 32ca198
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/dragon/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ void idf_loop() {
.width = dragon_width,
.height = dragon_height
};
epd_copy_to_framebuffer(dragon_area, dragon_data, epd_hl_get_framebuffer(&hl));

epd_poweron();
epd_clear();
int temperature = 25;

epd_poweron();
epd_fullclear(&hl, temperature);

epd_copy_to_framebuffer(dragon_area, dragon_data, epd_hl_get_framebuffer(&hl));

enum EpdDrawError _err = epd_hl_update_screen(&hl, MODE_GC16, temperature);
epd_poweroff();

while (1) {
vTaskDelay(1000);
}
vTaskDelay(1000);
}

void idf_setup() {
Expand Down

0 comments on commit 32ca198

Please sign in to comment.