mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 13:43:25 +00:00
Misc fixes
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 (41U * 1024U) /*[bytes]*/
|
#define LV_MEM_SIZE (40U * 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*/
|
||||||
@@ -254,7 +254,7 @@
|
|||||||
|
|
||||||
/*1: Show the used memory and the memory fragmentation
|
/*1: Show the used memory and the memory fragmentation
|
||||||
* Requires LV_MEM_CUSTOM = 0*/
|
* Requires LV_MEM_CUSTOM = 0*/
|
||||||
#define LV_USE_MEM_MONITOR 1
|
#define LV_USE_MEM_MONITOR 0
|
||||||
#if LV_USE_MEM_MONITOR
|
#if LV_USE_MEM_MONITOR
|
||||||
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
|
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ void screen_setup()
|
|||||||
tft.setRotation(global_config.rotateScreen ? 3 : 1);
|
tft.setRotation(global_config.rotateScreen ? 3 : 1);
|
||||||
tft.fillScreen(TFT_BLACK);
|
tft.fillScreen(TFT_BLACK);
|
||||||
set_invert_display();
|
set_invert_display();
|
||||||
|
set_screen_brightness();
|
||||||
touchscreen_spi.begin(XPT2046_CLK, XPT2046_MISO, XPT2046_MOSI, XPT2046_CS);
|
touchscreen_spi.begin(XPT2046_CLK, XPT2046_MISO, XPT2046_MOSI, XPT2046_CS);
|
||||||
touchscreen.begin(touchscreen_spi);
|
touchscreen.begin(touchscreen_spi);
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ lv_obj_t* draw_gcode_img()
|
|||||||
|
|
||||||
lv_obj_t * img = lv_img_create(lv_scr_act());
|
lv_obj_t * img = lv_img_create(lv_scr_act());
|
||||||
lv_img_set_src(img, &img_header);
|
lv_img_set_src(img, &img_header);
|
||||||
//lv_img_set_zoom(img, 512);
|
|
||||||
|
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ static void btn_print_file_verify(lv_event_t * e){
|
|||||||
if (img != NULL){
|
if (img != NULL){
|
||||||
lv_obj_set_parent(img, panel);
|
lv_obj_set_parent(img, panel);
|
||||||
lv_obj_align(img, LV_ALIGN_BOTTOM_MID, 0, 0);
|
lv_obj_align(img, LV_ALIGN_BOTTOM_MID, 0, 0);
|
||||||
//lv_obj_set_size(img, CYD_SCREEN_MIN_BUTTON_WIDTH_PX * button_size_mult, CYD_SCREEN_MIN_BUTTON_HEIGHT_PX * button_size_mult);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user