Misc fixes

This commit is contained in:
suchmememanyskill
2024-03-02 22:02:20 +01:00
parent 639eb50371
commit 4e6457c729
4 changed files with 3 additions and 5 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 (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.*/
#define LV_MEM_ADR 0 /*0: unused*/
@@ -254,7 +254,7 @@
/*1: Show the used memory and the memory fragmentation
* Requires LV_MEM_CUSTOM = 0*/
#define LV_USE_MEM_MONITOR 1
#define LV_USE_MEM_MONITOR 0
#if LV_USE_MEM_MONITOR
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
#endif

View File

@@ -86,7 +86,7 @@ void screen_setup()
tft.setRotation(global_config.rotateScreen ? 3 : 1);
tft.fillScreen(TFT_BLACK);
set_invert_display();
set_screen_brightness();
touchscreen_spi.begin(XPT2046_CLK, XPT2046_MISO, XPT2046_MOSI, XPT2046_CS);
touchscreen.begin(touchscreen_spi);

View File

@@ -115,7 +115,6 @@ lv_obj_t* draw_gcode_img()
lv_obj_t * img = lv_img_create(lv_scr_act());
lv_img_set_src(img, &img_header);
//lv_img_set_zoom(img, 512);
return img;
}

View File

@@ -90,7 +90,6 @@ static void btn_print_file_verify(lv_event_t * e){
if (img != NULL){
lv_obj_set_parent(img, panel);
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);
}
}