This commit is contained in:
suchmememanyskill
2024-03-02 21:16:31 +01:00
parent 1adb966ee1
commit 639eb50371
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@
#define LV_MEM_CUSTOM 0
#if LV_MEM_CUSTOM == 0
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
#define LV_MEM_SIZE (48U * 1024U) /*[bytes]*/
#define LV_MEM_SIZE (41U * 1024U) /*[bytes]*/
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
#define LV_MEM_ADR 0 /*0: unused*/

View File

@@ -106,8 +106,6 @@ lv_obj_t* draw_gcode_img()
return NULL;
}
Serial.println((char*)data_png);
memset(&img_header, 0, sizeof(img_header));
img_header.header.w = 32;
img_header.header.h = 32;

View File

@@ -100,6 +100,8 @@ void print_panel_init(lv_obj_t* panel){
return;
}
clear_img_mem();
lv_obj_t * list = lv_list_create(panel);
lv_obj_set_style_radius(list, 0, 0);
lv_obj_set_style_border_width(list, 0, 0);