Skip to content

Commit

Permalink
Update bbn_m5tough_lvgl_clock.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Mar 27, 2023
1 parent 0028799 commit ff57588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbn_m5tough_lvgl_clock/bbn_m5tough_lvgl_clock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void tft_lv_initialization() {
static lv_color_t *buf2 = (lv_color_t *)heap_caps_malloc((LV_HOR_RES_MAX * LV_VER_RES_MAX * sizeof(lv_color_t)) / 2, MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM);

// Initialize `disp_buf` display buffer with the buffer(s).
lv_disp_draw_buf_init(&draw_buf, buf1, buf2, (LV_HOR_RES_MAX * LV_VER_RES_MAX) / 10);
lv_disp_draw_buf_init(&draw_buf, buf1, buf2, (LV_HOR_RES_MAX * LV_VER_RES_MAX) / 2);
tft = &M5.Lcd;
}

Expand Down

0 comments on commit ff57588

Please sign in to comment.