mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
A
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
#define LV_MEM_CUSTOM 0
|
#define LV_MEM_CUSTOM 0
|
||||||
#if LV_MEM_CUSTOM == 0
|
#if LV_MEM_CUSTOM == 0
|
||||||
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
|
/*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.*/
|
/*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*/
|
#define LV_MEM_ADR 0 /*0: unused*/
|
||||||
|
|||||||
@@ -106,8 +106,6 @@ lv_obj_t* draw_gcode_img()
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.println((char*)data_png);
|
|
||||||
|
|
||||||
memset(&img_header, 0, sizeof(img_header));
|
memset(&img_header, 0, sizeof(img_header));
|
||||||
img_header.header.w = 32;
|
img_header.header.w = 32;
|
||||||
img_header.header.h = 32;
|
img_header.header.h = 32;
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ void print_panel_init(lv_obj_t* panel){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clear_img_mem();
|
||||||
|
|
||||||
lv_obj_t * list = lv_list_create(panel);
|
lv_obj_t * list = lv_list_create(panel);
|
||||||
lv_obj_set_style_radius(list, 0, 0);
|
lv_obj_set_style_radius(list, 0, 0);
|
||||||
lv_obj_set_style_border_width(list, 0, 0);
|
lv_obj_set_style_border_width(list, 0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user