/* * Copyright 2025 NXP * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing, * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license * terms, then you may not retain, install, activate or otherwise use the software. */ #include "lvgl.h" #include #include "gui_guider.h" #include "events_init.h" #include "widgets_init.h" #include "custom.h" #include "custom.h" void setup_scr_scr_main(lv_ui *ui) { //Write codes scr_main ui->scr_main = lv_obj_create(NULL); lv_obj_set_size(ui->scr_main, 800, 480); lv_obj_set_scrollbar_mode(ui->scr_main, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_base ui->scr_main_cont_base = lv_obj_create(ui->scr_main); lv_obj_set_pos(ui->scr_main_cont_base, 0, 0); lv_obj_set_size(ui->scr_main_cont_base, 800, 480); lv_obj_set_scrollbar_mode(ui->scr_main_cont_base, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_base, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_base, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_base, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_base, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_base, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_status ui->scr_main_cont_status = lv_obj_create(ui->scr_main_cont_base); lv_obj_set_pos(ui->scr_main_cont_status, 0, 0); lv_obj_set_size(ui->scr_main_cont_status, 800, 50); lv_obj_set_scrollbar_mode(ui->scr_main_cont_status, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_status, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_status, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_status, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_back ui->scr_main_imgbtn_back = lv_imagebutton_create(ui->scr_main_cont_status); lv_obj_set_pos(ui->scr_main_imgbtn_back, 5, 5); lv_obj_set_size(ui->scr_main_imgbtn_back, 40, 40); lv_obj_add_flag(ui->scr_main_imgbtn_back, LV_OBJ_FLAG_HIDDEN); lv_obj_add_flag(ui->scr_main_imgbtn_back, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_back, LV_IMAGEBUTTON_STATE_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_back, LV_IMAGEBUTTON_STATE_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_back, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_back, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); ui->scr_main_imgbtn_back_label = lv_label_create(ui->scr_main_imgbtn_back); lv_label_set_text(ui->scr_main_imgbtn_back_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_back_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_back_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_back, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_back, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_back, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_back, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_back, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_back, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_back, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_back, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_back, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_back, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_back, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_back, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_back, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_back, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_back, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_back, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_back, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_back, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_back, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_back, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_back, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_back, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_back, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_back, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_label_mode_storage ui->scr_main_label_mode_storage = lv_label_create(ui->scr_main_cont_status); lv_obj_set_pos(ui->scr_main_label_mode_storage, 680, 0); lv_obj_set_size(ui->scr_main_label_mode_storage, 120, 50); lv_obj_add_flag(ui->scr_main_label_mode_storage, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->scr_main_label_mode_storage, "存储模式"); lv_label_set_long_mode(ui->scr_main_label_mode_storage, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_mode_storage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_mode_storage, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_mode_storage, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_mode_storage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_mode_storage, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_mode_storage, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_mode_storage, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_mode_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_mode_discharge ui->scr_main_label_mode_discharge = lv_label_create(ui->scr_main_cont_status); lv_obj_set_pos(ui->scr_main_label_mode_discharge, 680, 0); lv_obj_set_size(ui->scr_main_label_mode_discharge, 120, 50); lv_obj_add_flag(ui->scr_main_label_mode_discharge, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->scr_main_label_mode_discharge, "放电模式"); lv_label_set_long_mode(ui->scr_main_label_mode_discharge, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_mode_discharge, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_mode_discharge, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_mode_discharge, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_mode_discharge, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_mode_discharge, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_mode_discharge, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_mode_discharge, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_mode_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_mode_charge ui->scr_main_label_mode_charge = lv_label_create(ui->scr_main_cont_status); lv_obj_set_pos(ui->scr_main_label_mode_charge, 680, 0); lv_obj_set_size(ui->scr_main_label_mode_charge, 120, 50); lv_obj_add_flag(ui->scr_main_label_mode_charge, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->scr_main_label_mode_charge, "充电模式"); lv_label_set_long_mode(ui->scr_main_label_mode_charge, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_mode_charge, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_mode_charge, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_mode_charge, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_mode_charge, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_mode_charge, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_mode_charge, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_mode_charge, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_mode_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_mode_balance ui->scr_main_label_mode_balance = lv_label_create(ui->scr_main_cont_status); lv_obj_set_pos(ui->scr_main_label_mode_balance, 680, 0); lv_obj_set_size(ui->scr_main_label_mode_balance, 120, 50); lv_obj_add_flag(ui->scr_main_label_mode_balance, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->scr_main_label_mode_balance, "均衡模式"); lv_label_set_long_mode(ui->scr_main_label_mode_balance, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_mode_balance, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_mode_balance, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_mode_balance, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_mode_balance, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_mode_balance, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_mode_balance, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_mode_balance, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_mode_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_mainwindows ui->scr_main_cont_mainwindows = lv_obj_create(ui->scr_main_cont_base); lv_obj_set_pos(ui->scr_main_cont_mainwindows, 0, 50); lv_obj_set_size(ui->scr_main_cont_mainwindows, 800, 430); lv_obj_set_scrollbar_mode(ui->scr_main_cont_mainwindows, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_mainwindows, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_mainwindows, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_mainwindows, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_mainwindows, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_mainwindows, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_add ui->scr_main_imgbtn_add = lv_imagebutton_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_imgbtn_add, 766, 310); lv_obj_set_size(ui->scr_main_imgbtn_add, 40, 40); lv_obj_add_flag(ui->scr_main_imgbtn_add, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_add, LV_IMAGEBUTTON_STATE_RELEASED, &_forward_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_add, LV_IMAGEBUTTON_STATE_PRESSED, &_forward_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_add, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_forward_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_add, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_forward_RGB565A8_40x40, NULL, NULL); ui->scr_main_imgbtn_add_label = lv_label_create(ui->scr_main_imgbtn_add); lv_label_set_text(ui->scr_main_imgbtn_add_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_add_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_add_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_add, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_add, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_add, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_add, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_add, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_add, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_add, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_add, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_add, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_add, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_add, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_add, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_add, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_add, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_add, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_add, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_add, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_add, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_add, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_add, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_add, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_add, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_add, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_add, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_imgbtn_dec ui->scr_main_imgbtn_dec = lv_imagebutton_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_imgbtn_dec, -8, 310); lv_obj_set_size(ui->scr_main_imgbtn_dec, 40, 40); lv_obj_add_flag(ui->scr_main_imgbtn_dec, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_dec, LV_IMAGEBUTTON_STATE_RELEASED, &_back_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_dec, LV_IMAGEBUTTON_STATE_PRESSED, &_back_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_dec, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_back_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_dec, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_back_RGB565A8_40x40, NULL, NULL); ui->scr_main_imgbtn_dec_label = lv_label_create(ui->scr_main_imgbtn_dec); lv_label_set_text(ui->scr_main_imgbtn_dec_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_dec_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_dec_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_dec, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_dec, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_dec, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_dec, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_dec, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_dec, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_dec, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_dec, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_dec, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_dec, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_dec, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_dec, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_dec, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_dec, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_dec, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_dec, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_dec, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_dec, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_dec, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_dec, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_dec, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_dec, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_dec, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_dec, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_cont_function ui->scr_main_cont_function = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_function, 30, 30); lv_obj_set_size(ui->scr_main_cont_function, 740, 200); lv_obj_set_scrollbar_mode(ui->scr_main_cont_function, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_function, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_function, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_function, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_function, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_function, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_function, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_function, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_function, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_function, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_function, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_function, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_function, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_storage ui->scr_main_imgbtn_storage = lv_imagebutton_create(ui->scr_main_cont_function); lv_obj_set_pos(ui->scr_main_imgbtn_storage, 32, 16); lv_obj_set_size(ui->scr_main_imgbtn_storage, 120, 160); lv_obj_add_flag(ui->scr_main_imgbtn_storage, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_storage, LV_IMAGEBUTTON_STATE_RELEASED, &_storage_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_storage, LV_IMAGEBUTTON_STATE_PRESSED, &_storage_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_storage, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_storage_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_storage, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_storage_RGB565A8_120x160, NULL, NULL); ui->scr_main_imgbtn_storage_label = lv_label_create(ui->scr_main_imgbtn_storage); lv_label_set_text(ui->scr_main_imgbtn_storage_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_storage_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_storage_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_storage, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_storage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_storage, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_storage, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_storage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_storage, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_storage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_storage, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_storage, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_storage, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_storage, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_storage, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_storage, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_storage, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_storage, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_storage, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_storage, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_storage, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_storage, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_storage, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_storage, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_storage, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_storage, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_storage, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_imgbtn_discharge ui->scr_main_imgbtn_discharge = lv_imagebutton_create(ui->scr_main_cont_function); lv_obj_set_pos(ui->scr_main_imgbtn_discharge, 216, 19); lv_obj_set_size(ui->scr_main_imgbtn_discharge, 120, 160); lv_obj_add_flag(ui->scr_main_imgbtn_discharge, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_discharge, LV_IMAGEBUTTON_STATE_RELEASED, &_discharge_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_discharge, LV_IMAGEBUTTON_STATE_PRESSED, &_discharge_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_discharge, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_discharge_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_discharge, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_discharge_RGB565A8_120x160, NULL, NULL); ui->scr_main_imgbtn_discharge_label = lv_label_create(ui->scr_main_imgbtn_discharge); lv_label_set_text(ui->scr_main_imgbtn_discharge_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_discharge_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_discharge_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_discharge, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_discharge, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_discharge, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_discharge, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_discharge, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_discharge, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_discharge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_discharge, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_discharge, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_discharge, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_discharge, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_discharge, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_discharge, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_discharge, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_discharge, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_discharge, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_discharge, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_discharge, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_discharge, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_discharge, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_discharge, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_discharge, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_discharge, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_discharge, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_imgbtn_charge ui->scr_main_imgbtn_charge = lv_imagebutton_create(ui->scr_main_cont_function); lv_obj_set_pos(ui->scr_main_imgbtn_charge, 400, 18); lv_obj_set_size(ui->scr_main_imgbtn_charge, 120, 160); lv_obj_add_flag(ui->scr_main_imgbtn_charge, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_charge, LV_IMAGEBUTTON_STATE_RELEASED, &_charge_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_charge, LV_IMAGEBUTTON_STATE_PRESSED, &_charge_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_charge, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_charge_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_charge, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_charge_RGB565A8_120x160, NULL, NULL); ui->scr_main_imgbtn_charge_label = lv_label_create(ui->scr_main_imgbtn_charge); lv_label_set_text(ui->scr_main_imgbtn_charge_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_charge_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_charge_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_charge, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_charge, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_charge, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_charge, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_charge, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_charge, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_charge, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_charge, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_charge, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_charge, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_charge, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_charge, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_charge, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_charge, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_charge, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_charge, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_charge, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_charge, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_charge, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_charge, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_charge, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_charge, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_charge, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_charge, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_imgbtn_balance ui->scr_main_imgbtn_balance = lv_imagebutton_create(ui->scr_main_cont_function); lv_obj_set_pos(ui->scr_main_imgbtn_balance, 583, 19); lv_obj_set_size(ui->scr_main_imgbtn_balance, 120, 160); lv_obj_add_flag(ui->scr_main_imgbtn_balance, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_balance, LV_IMAGEBUTTON_STATE_RELEASED, &_balance_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_balance, LV_IMAGEBUTTON_STATE_PRESSED, &_balance_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_balance, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_balance_RGB565A8_120x160, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_balance, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_balance_RGB565A8_120x160, NULL, NULL); ui->scr_main_imgbtn_balance_label = lv_label_create(ui->scr_main_imgbtn_balance); lv_label_set_text(ui->scr_main_imgbtn_balance_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_balance_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_balance_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_balance, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_balance, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_balance, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_balance, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_balance, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_balance, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_balance, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_balance, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_balance, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_balance, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_balance, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_balance, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_balance, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_balance, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_balance, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_balance, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_balance, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_balance, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_balance, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_balance, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_balance, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_balance, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_balance, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_balance, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_cont_voltage ui->scr_main_cont_voltage = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_voltage, 30, 250); lv_obj_set_size(ui->scr_main_cont_voltage, 740, 150); lv_obj_set_scrollbar_mode(ui->scr_main_cont_voltage, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_voltage, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_voltage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_voltage, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_voltage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_voltage, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_voltage, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_1 ui->scr_main_label_bat_vol_1 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_1, 0, 0); lv_obj_set_size(ui->scr_main_label_bat_vol_1, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_1, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_1, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_1, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_1, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_2 ui->scr_main_label_bat_vol_2 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_2, 124, 0); lv_obj_set_size(ui->scr_main_label_bat_vol_2, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_2, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_2, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_2, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_2, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_3 ui->scr_main_label_bat_vol_3 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_3, 248, 0); lv_obj_set_size(ui->scr_main_label_bat_vol_3, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_3, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_3, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_3, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_3, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_4 ui->scr_main_label_bat_vol_4 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_4, 372, 0); lv_obj_set_size(ui->scr_main_label_bat_vol_4, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_4, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_4, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_4, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_4, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_5 ui->scr_main_label_bat_vol_5 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_5, 496, -1); lv_obj_set_size(ui->scr_main_label_bat_vol_5, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_5, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_5, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_5, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_5, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_6 ui->scr_main_label_bat_vol_6 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_6, 620, 0); lv_obj_set_size(ui->scr_main_label_bat_vol_6, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_6, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_6, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_6, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_6, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_12 ui->scr_main_label_bat_vol_12 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_12, 620, 38); lv_obj_set_size(ui->scr_main_label_bat_vol_12, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_12, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_12, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_12, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_12, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_12, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_12, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_11 ui->scr_main_label_bat_vol_11 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_11, 496, 38); lv_obj_set_size(ui->scr_main_label_bat_vol_11, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_11, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_11, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_11, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_11, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_11, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_10 ui->scr_main_label_bat_vol_10 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_10, 372, 38); lv_obj_set_size(ui->scr_main_label_bat_vol_10, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_10, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_10, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_10, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_10, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_10, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_9 ui->scr_main_label_bat_vol_9 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_9, 248, 38); lv_obj_set_size(ui->scr_main_label_bat_vol_9, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_9, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_9, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_9, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_9, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_9, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_8 ui->scr_main_label_bat_vol_8 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_8, 124, 38); lv_obj_set_size(ui->scr_main_label_bat_vol_8, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_8, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_8, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_8, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_8, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_8, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_7 ui->scr_main_label_bat_vol_7 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_7, 0, 38); lv_obj_set_size(ui->scr_main_label_bat_vol_7, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_7, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_7, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_7, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_7, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_7, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_24 ui->scr_main_label_bat_vol_24 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_24, 620, 114); lv_obj_set_size(ui->scr_main_label_bat_vol_24, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_24, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_24, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_24, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_24, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_24, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_24, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_24, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_24, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_18 ui->scr_main_label_bat_vol_18 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_18, 620, 76); lv_obj_set_size(ui->scr_main_label_bat_vol_18, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_18, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_18, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_18, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_18, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_18, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_18, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_18, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_18, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_23 ui->scr_main_label_bat_vol_23 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_23, 496, 114); lv_obj_set_size(ui->scr_main_label_bat_vol_23, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_23, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_23, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_23, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_23, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_23, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_23, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_23, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_23, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_17 ui->scr_main_label_bat_vol_17 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_17, 496, 76); lv_obj_set_size(ui->scr_main_label_bat_vol_17, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_17, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_17, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_17, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_17, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_17, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_17, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_17, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_22 ui->scr_main_label_bat_vol_22 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_22, 372, 114); lv_obj_set_size(ui->scr_main_label_bat_vol_22, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_22, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_22, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_22, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_22, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_22, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_22, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_22, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_16 ui->scr_main_label_bat_vol_16 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_16, 372, 76); lv_obj_set_size(ui->scr_main_label_bat_vol_16, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_16, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_16, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_16, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_16, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_16, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_16, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_16, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_16, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_21 ui->scr_main_label_bat_vol_21 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_21, 248, 114); lv_obj_set_size(ui->scr_main_label_bat_vol_21, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_21, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_21, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_21, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_21, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_21, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_21, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_21, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_20 ui->scr_main_label_bat_vol_20 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_20, 124, 114); lv_obj_set_size(ui->scr_main_label_bat_vol_20, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_20, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_20, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_20, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_20, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_20, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_20, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_20, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_15 ui->scr_main_label_bat_vol_15 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_15, 248, 76); lv_obj_set_size(ui->scr_main_label_bat_vol_15, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_15, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_15, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_15, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_15, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_15, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_15, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_15, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_15, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_14 ui->scr_main_label_bat_vol_14 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_14, 124, 76); lv_obj_set_size(ui->scr_main_label_bat_vol_14, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_14, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_14, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_14, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_14, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_14, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_14, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_19 ui->scr_main_label_bat_vol_19 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_19, 0, 114); lv_obj_set_size(ui->scr_main_label_bat_vol_19, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_19, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_19, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_19, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_19, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_19, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_19, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_19, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_vol_13 ui->scr_main_label_bat_vol_13 = lv_label_create(ui->scr_main_cont_voltage); lv_obj_set_pos(ui->scr_main_label_bat_vol_13, 0, 76); lv_obj_set_size(ui->scr_main_label_bat_vol_13, 120, 35); lv_label_set_text(ui->scr_main_label_bat_vol_13, "3.87V"); lv_label_set_long_mode(ui->scr_main_label_bat_vol_13, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_vol_13, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_vol_13, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_vol_13, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_vol_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_vol_13, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_vol_13, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_vol_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_omu ui->scr_main_cont_omu = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_omu, 30, 250); lv_obj_set_size(ui->scr_main_cont_omu, 740, 150); lv_obj_set_scrollbar_mode(ui->scr_main_cont_omu, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_omu, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_omu, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_omu, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_omu, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_omu, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_omu, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_omu, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_omu, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_omu, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_omu, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_omu, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_omu, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_1 ui->scr_main_label_bat_omu_1 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_1, 0, 0); lv_obj_set_size(ui->scr_main_label_bat_omu_1, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_1, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_1, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_1, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_1, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_2 ui->scr_main_label_bat_omu_2 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_2, 124, 0); lv_obj_set_size(ui->scr_main_label_bat_omu_2, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_2, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_2, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_2, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_2, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_3 ui->scr_main_label_bat_omu_3 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_3, 248, 0); lv_obj_set_size(ui->scr_main_label_bat_omu_3, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_3, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_3, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_3, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_3, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_4 ui->scr_main_label_bat_omu_4 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_4, 372, 0); lv_obj_set_size(ui->scr_main_label_bat_omu_4, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_4, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_4, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_4, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_4, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_5 ui->scr_main_label_bat_omu_5 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_5, 496, 0); lv_obj_set_size(ui->scr_main_label_bat_omu_5, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_5, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_5, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_5, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_5, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_6 ui->scr_main_label_bat_omu_6 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_6, 620, 0); lv_obj_set_size(ui->scr_main_label_bat_omu_6, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_6, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_6, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_6, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_6, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_12 ui->scr_main_label_bat_omu_12 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_12, 620, 38); lv_obj_set_size(ui->scr_main_label_bat_omu_12, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_12, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_12, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_12, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_12, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_12, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_12, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_11 ui->scr_main_label_bat_omu_11 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_11, 496, 38); lv_obj_set_size(ui->scr_main_label_bat_omu_11, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_11, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_11, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_11, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_11, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_11, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_10 ui->scr_main_label_bat_omu_10 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_10, 372, 38); lv_obj_set_size(ui->scr_main_label_bat_omu_10, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_10, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_10, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_10, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_10, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_10, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_9 ui->scr_main_label_bat_omu_9 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_9, 248, 38); lv_obj_set_size(ui->scr_main_label_bat_omu_9, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_9, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_9, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_9, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_9, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_9, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_8 ui->scr_main_label_bat_omu_8 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_8, 124, 38); lv_obj_set_size(ui->scr_main_label_bat_omu_8, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_8, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_8, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_8, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_8, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_8, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_7 ui->scr_main_label_bat_omu_7 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_7, 0, 38); lv_obj_set_size(ui->scr_main_label_bat_omu_7, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_7, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_7, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_7, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_7, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_7, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_24 ui->scr_main_label_bat_omu_24 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_24, 620, 114); lv_obj_set_size(ui->scr_main_label_bat_omu_24, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_24, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_24, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_24, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_24, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_24, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_24, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_24, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_24, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_18 ui->scr_main_label_bat_omu_18 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_18, 620, 76); lv_obj_set_size(ui->scr_main_label_bat_omu_18, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_18, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_18, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_18, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_18, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_18, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_18, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_18, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_18, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_23 ui->scr_main_label_bat_omu_23 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_23, 496, 114); lv_obj_set_size(ui->scr_main_label_bat_omu_23, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_23, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_23, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_23, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_23, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_23, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_23, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_23, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_23, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_17 ui->scr_main_label_bat_omu_17 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_17, 496, 76); lv_obj_set_size(ui->scr_main_label_bat_omu_17, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_17, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_17, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_17, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_17, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_17, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_17, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_17, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_22 ui->scr_main_label_bat_omu_22 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_22, 372, 114); lv_obj_set_size(ui->scr_main_label_bat_omu_22, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_22, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_22, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_22, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_22, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_22, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_22, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_22, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_16 ui->scr_main_label_bat_omu_16 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_16, 372, 76); lv_obj_set_size(ui->scr_main_label_bat_omu_16, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_16, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_16, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_16, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_16, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_16, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_16, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_16, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_16, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_21 ui->scr_main_label_bat_omu_21 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_21, 248, 114); lv_obj_set_size(ui->scr_main_label_bat_omu_21, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_21, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_21, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_21, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_21, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_21, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_21, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_21, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_20 ui->scr_main_label_bat_omu_20 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_20, 124, 114); lv_obj_set_size(ui->scr_main_label_bat_omu_20, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_20, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_20, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_20, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_20, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_20, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_20, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_20, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_15 ui->scr_main_label_bat_omu_15 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_15, 248, 76); lv_obj_set_size(ui->scr_main_label_bat_omu_15, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_15, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_15, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_15, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_15, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_15, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_15, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_15, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_15, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_14 ui->scr_main_label_bat_omu_14 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_14, 124, 76); lv_obj_set_size(ui->scr_main_label_bat_omu_14, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_14, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_14, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_14, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_14, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_14, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_14, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_19 ui->scr_main_label_bat_omu_19 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_19, 0, 114); lv_obj_set_size(ui->scr_main_label_bat_omu_19, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_19, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_19, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_19, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_19, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_19, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_19, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_19, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_omu_13 ui->scr_main_label_bat_omu_13 = lv_label_create(ui->scr_main_cont_omu); lv_obj_set_pos(ui->scr_main_label_bat_omu_13, 0, 76); lv_obj_set_size(ui->scr_main_label_bat_omu_13, 120, 35); lv_label_set_text(ui->scr_main_label_bat_omu_13, "50mΩ"); lv_label_set_long_mode(ui->scr_main_label_bat_omu_13, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_omu_13, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_omu_13, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_omu_13, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_omu_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_omu_13, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_omu_13, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_omu_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_device ui->scr_main_cont_device = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_device, 30, 250); lv_obj_set_size(ui->scr_main_cont_device, 740, 150); lv_obj_set_scrollbar_mode(ui->scr_main_cont_device, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_device, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_device, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_device, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_device, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_device, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_device, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_device, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_device, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_device, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_device, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_device, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_device, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_48 ui->scr_main_label_48 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_48, 0, 0); lv_obj_set_size(ui->scr_main_label_48, 120, 35); lv_label_set_text(ui->scr_main_label_48, "输入(V)"); lv_label_set_long_mode(ui->scr_main_label_48, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_48, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_48, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_48, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_48, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_48, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_48, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_48, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_input_voltage ui->scr_main_label_input_voltage = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_input_voltage, 124, 0); lv_obj_set_size(ui->scr_main_label_input_voltage, 120, 35); lv_label_set_text(ui->scr_main_label_input_voltage, "110"); lv_label_set_long_mode(ui->scr_main_label_input_voltage, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_input_voltage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_input_voltage, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_input_voltage, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_input_voltage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_input_voltage, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_input_voltage, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_input_voltage, &_text_balance_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_input_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_46 ui->scr_main_label_46 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_46, 248, 0); lv_obj_set_size(ui->scr_main_label_46, 120, 35); lv_label_set_text(ui->scr_main_label_46, "电池(V)"); lv_label_set_long_mode(ui->scr_main_label_46, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_46, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_46, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_46, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_46, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_46, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_46, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_46, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_bat_voltage ui->scr_main_label_bat_voltage = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_bat_voltage, 372, 0); lv_obj_set_size(ui->scr_main_label_bat_voltage, 120, 35); lv_label_set_text(ui->scr_main_label_bat_voltage, "12.4"); lv_label_set_long_mode(ui->scr_main_label_bat_voltage, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_bat_voltage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_bat_voltage, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_bat_voltage, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_bat_voltage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_bat_voltage, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_bat_voltage, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_bat_voltage, &_text_DC_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_bat_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_44 ui->scr_main_label_44 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_44, 496, 0); lv_obj_set_size(ui->scr_main_label_44, 120, 35); lv_label_set_text(ui->scr_main_label_44, "输入(Z)"); lv_label_set_long_mode(ui->scr_main_label_44, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_44, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_44, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_44, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_44, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_44, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_44, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_44, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_relay_in ui->scr_main_label_relay_in = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_relay_in, 620, 0); lv_obj_set_size(ui->scr_main_label_relay_in, 120, 35); lv_label_set_text(ui->scr_main_label_relay_in, ""); lv_label_set_long_mode(ui->scr_main_label_relay_in, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_relay_in, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_relay_in, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_relay_in, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_relay_in, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_relay_in, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_relay_in, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_relay_in, &_text_open_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_relay_in, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_relay_in, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_relay_out ui->scr_main_label_relay_out = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_relay_out, 620, 38); lv_obj_set_size(ui->scr_main_label_relay_out, 120, 35); lv_label_set_text(ui->scr_main_label_relay_out, ""); lv_label_set_long_mode(ui->scr_main_label_relay_out, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_relay_out, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_relay_out, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_relay_out, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_relay_out, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_relay_out, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_relay_out, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_relay_out, &_text_close_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_relay_out, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_relay_out, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_41 ui->scr_main_label_41 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_41, 496, 38); lv_obj_set_size(ui->scr_main_label_41, 120, 35); lv_label_set_text(ui->scr_main_label_41, "输出(Z)"); lv_label_set_long_mode(ui->scr_main_label_41, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_41, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_41, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_41, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_41, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_41, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_41, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_41, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_40 ui->scr_main_label_40 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_40, 372, 38); lv_obj_set_size(ui->scr_main_label_40, 120, 35); lv_label_set_text(ui->scr_main_label_40, ""); lv_label_set_long_mode(ui->scr_main_label_40, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_40, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_40, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_40, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_40, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_40, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_40, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_40, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_39 ui->scr_main_label_39 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_39, 248, 38); lv_obj_set_size(ui->scr_main_label_39, 120, 35); lv_label_set_text(ui->scr_main_label_39, ""); lv_label_set_long_mode(ui->scr_main_label_39, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_39, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_39, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_39, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_39, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_39, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_39, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_39, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_output_voltage ui->scr_main_label_output_voltage = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_output_voltage, 124, 38); lv_obj_set_size(ui->scr_main_label_output_voltage, 120, 35); lv_label_set_text(ui->scr_main_label_output_voltage, "85"); lv_label_set_long_mode(ui->scr_main_label_output_voltage, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_output_voltage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_output_voltage, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_output_voltage, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_output_voltage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_output_voltage, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_output_voltage, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_output_voltage, &_text_C_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_output_voltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_37 ui->scr_main_label_37 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_37, 0, 38); lv_obj_set_size(ui->scr_main_label_37, 120, 35); lv_label_set_text(ui->scr_main_label_37, "输出(V)"); lv_label_set_long_mode(ui->scr_main_label_37, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_37, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_37, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_37, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_37, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_37, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_37, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_fan_status ui->scr_main_label_fan_status = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_fan_status, 620, 114); lv_obj_set_size(ui->scr_main_label_fan_status, 120, 35); lv_label_set_text(ui->scr_main_label_fan_status, ""); lv_label_set_long_mode(ui->scr_main_label_fan_status, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_fan_status, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_fan_status, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_fan_status, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_fan_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_fan_status, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_fan_status, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_fan_status, &_text_open_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_fan_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_fan_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_relay_dis ui->scr_main_label_relay_dis = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_relay_dis, 621, 75); lv_obj_set_size(ui->scr_main_label_relay_dis, 120, 35); lv_label_set_text(ui->scr_main_label_relay_dis, ""); lv_label_set_long_mode(ui->scr_main_label_relay_dis, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_relay_dis, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_relay_dis, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_relay_dis, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_relay_dis, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_relay_dis, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_relay_dis, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_relay_dis, &_text_close_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_relay_dis, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_relay_dis, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_34 ui->scr_main_label_34 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_34, 496, 114); lv_obj_set_size(ui->scr_main_label_34, 120, 35); lv_label_set_text(ui->scr_main_label_34, "风扇(Z)"); lv_label_set_long_mode(ui->scr_main_label_34, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_34, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_34, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_34, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_34, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_34, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_34, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_33 ui->scr_main_label_33 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_33, 496, 76); lv_obj_set_size(ui->scr_main_label_33, 120, 35); lv_label_set_text(ui->scr_main_label_33, "放电(Z)"); lv_label_set_long_mode(ui->scr_main_label_33, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_33, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_33, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_33, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_33, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_33, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_33, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_time_count ui->scr_main_label_time_count = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_time_count, 372, 114); lv_obj_set_size(ui->scr_main_label_time_count, 120, 35); lv_label_set_text(ui->scr_main_label_time_count, "360"); lv_label_set_long_mode(ui->scr_main_label_time_count, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_time_count, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_time_count, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_time_count, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_time_count, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_time_count, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_time_count, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_time_count, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_run_status ui->scr_main_label_run_status = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_run_status, 372, 76); lv_obj_set_size(ui->scr_main_label_run_status, 120, 35); lv_label_set_text(ui->scr_main_label_run_status, ""); lv_label_set_long_mode(ui->scr_main_label_run_status, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_run_status, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_run_status, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_run_status, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_run_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_run_status, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_run_status, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_run_status, &_text_TC_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_run_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_run_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_30 ui->scr_main_label_30 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_30, 248, 114); lv_obj_set_size(ui->scr_main_label_30, 120, 35); lv_label_set_text(ui->scr_main_label_30, "计时(m)"); lv_label_set_long_mode(ui->scr_main_label_30, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_30, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_30, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_30, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_30, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_30, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_30, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_temperature ui->scr_main_label_temperature = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_temperature, 124, 114); lv_obj_set_size(ui->scr_main_label_temperature, 120, 35); lv_label_set_text(ui->scr_main_label_temperature, "45"); lv_label_set_long_mode(ui->scr_main_label_temperature, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_temperature, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_temperature, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_temperature, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_temperature, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_temperature, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_temperature, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_temperature, &_text_CV_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_temperature, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_28 ui->scr_main_label_28 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_28, 248, 76); lv_obj_set_size(ui->scr_main_label_28, 120, 35); lv_label_set_text(ui->scr_main_label_28, "状态(Z)"); lv_label_set_long_mode(ui->scr_main_label_28, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_28, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_28, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_28, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_28, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_28, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_28, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_output_current ui->scr_main_label_output_current = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_output_current, 124, 76); lv_obj_set_size(ui->scr_main_label_output_current, 120, 35); lv_label_set_text(ui->scr_main_label_output_current, "5.3"); lv_label_set_long_mode(ui->scr_main_label_output_current, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_output_current, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_output_current, lv_color_hex(0x0CE800), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_output_current, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_output_current, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_output_current, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_output_current, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->scr_main_label_output_current, &_text_CC_RGB565A8_120x35, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_output_current, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_26 ui->scr_main_label_26 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_26, 0, 114); lv_obj_set_size(ui->scr_main_label_26, 120, 35); lv_label_set_text(ui->scr_main_label_26, "温度(℃)"); lv_label_set_long_mode(ui->scr_main_label_26, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_26, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_26, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_26, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_26, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_26, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_25 ui->scr_main_label_25 = lv_label_create(ui->scr_main_cont_device); lv_obj_set_pos(ui->scr_main_label_25, 0, 76); lv_obj_set_size(ui->scr_main_label_25, 120, 35); lv_label_set_text(ui->scr_main_label_25, "电流(A)"); lv_label_set_long_mode(ui->scr_main_label_25, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_25, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_25, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_25, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_25, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_25, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_25, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_setting ui->scr_main_cont_setting = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_setting, 30, 30); lv_obj_set_size(ui->scr_main_cont_setting, 600, 200); lv_obj_set_scrollbar_mode(ui->scr_main_cont_setting, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_setting, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_setting, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_setting, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_setting, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_setting, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_setting, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_49 ui->scr_main_label_49 = lv_label_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_label_49, 25, 25); lv_obj_set_size(ui->scr_main_label_49, 120, 35); lv_label_set_text(ui->scr_main_label_49, "电压(V)"); lv_label_set_long_mode(ui->scr_main_label_49, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_49, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_49, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_49, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_49, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_49, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_49, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_49, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_50 ui->scr_main_label_50 = lv_label_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_label_50, 25, 85); lv_obj_set_size(ui->scr_main_label_50, 120, 35); lv_label_set_text(ui->scr_main_label_50, "电流(A)"); lv_label_set_long_mode(ui->scr_main_label_50, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_50, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_50, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_50, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_50, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_50, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_50, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_50, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_51 ui->scr_main_label_51 = lv_label_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_label_51, 25, 145); lv_obj_set_size(ui->scr_main_label_51, 130, 35); lv_label_set_text(ui->scr_main_label_51, "容量(mAh)"); lv_label_set_long_mode(ui->scr_main_label_51, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_51, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_51, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_51, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_51, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_51, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_51, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_51, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_52 ui->scr_main_label_52 = lv_label_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_label_52, 290, 25); lv_obj_set_size(ui->scr_main_label_52, 120, 35); lv_label_set_text(ui->scr_main_label_52, "节数"); lv_label_set_long_mode(ui->scr_main_label_52, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_52, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_52, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_52, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_52, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_52, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_52, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_52, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_53 ui->scr_main_label_53 = lv_label_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_label_53, 290, 85); lv_obj_set_size(ui->scr_main_label_53, 120, 35); lv_label_set_text(ui->scr_main_label_53, "类型"); lv_label_set_long_mode(ui->scr_main_label_53, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_53, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_53, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_53, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_53, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_53, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_53, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setNumber ui->scr_main_btn_setNumber = lv_button_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_btn_setNumber, 419, 26); lv_obj_set_size(ui->scr_main_btn_setNumber, 120, 35); ui->scr_main_btn_setNumber_label = lv_label_create(ui->scr_main_btn_setNumber); lv_label_set_text(ui->scr_main_btn_setNumber_label, "6"); lv_label_set_long_mode(ui->scr_main_btn_setNumber_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setNumber_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setNumber, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setNumber_label, LV_PCT(100)); //Write style for scr_main_btn_setNumber, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setNumber, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setNumber, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setNumber, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setNumber, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setNumber, lv_color_hex(0x00ff40), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setNumber, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setNumber, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setNumber, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setType ui->scr_main_btn_setType = lv_button_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_btn_setType, 420, 85); lv_obj_set_size(ui->scr_main_btn_setType, 120, 35); ui->scr_main_btn_setType_label = lv_label_create(ui->scr_main_btn_setType); lv_label_set_text(ui->scr_main_btn_setType_label, "LiHv"); lv_label_set_long_mode(ui->scr_main_btn_setType_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setType_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setType, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setType_label, LV_PCT(100)); //Write style for scr_main_btn_setType, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setType, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setType, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setType, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setType, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setType, lv_color_hex(0x00ff40), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setType, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setType, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setType, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setCapacity ui->scr_main_btn_setCapacity = lv_button_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_btn_setCapacity, 170, 145); lv_obj_set_size(ui->scr_main_btn_setCapacity, 120, 35); ui->scr_main_btn_setCapacity_label = lv_label_create(ui->scr_main_btn_setCapacity); lv_label_set_text(ui->scr_main_btn_setCapacity_label, "10000"); lv_label_set_long_mode(ui->scr_main_btn_setCapacity_label, LV_LABEL_LONG_SCROLL); lv_obj_align(ui->scr_main_btn_setCapacity_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setCapacity, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setCapacity_label, LV_PCT(100)); //Write style for scr_main_btn_setCapacity, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setCapacity, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setCapacity, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setCapacity, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setCapacity, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setCapacity, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setCapacity, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setCapacity, lv_color_hex(0x00ff40), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setCapacity, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setCapacity, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setCapacity, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setCurrent ui->scr_main_btn_setCurrent = lv_button_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_btn_setCurrent, 171, 85); lv_obj_set_size(ui->scr_main_btn_setCurrent, 120, 35); ui->scr_main_btn_setCurrent_label = lv_label_create(ui->scr_main_btn_setCurrent); lv_label_set_text(ui->scr_main_btn_setCurrent_label, "5.6"); lv_label_set_long_mode(ui->scr_main_btn_setCurrent_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setCurrent_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setCurrent, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setCurrent_label, LV_PCT(100)); //Write style for scr_main_btn_setCurrent, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setCurrent, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setCurrent, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setCurrent, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setCurrent, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setCurrent, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setCurrent, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setCurrent, lv_color_hex(0x00ff40), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setCurrent, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setCurrent, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setCurrent, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setVoltage ui->scr_main_btn_setVoltage = lv_button_create(ui->scr_main_cont_setting); lv_obj_set_pos(ui->scr_main_btn_setVoltage, 170, 25); lv_obj_set_size(ui->scr_main_btn_setVoltage, 120, 35); ui->scr_main_btn_setVoltage_label = lv_label_create(ui->scr_main_btn_setVoltage); lv_label_set_text(ui->scr_main_btn_setVoltage_label, "110"); lv_label_set_long_mode(ui->scr_main_btn_setVoltage_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setVoltage_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setVoltage, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setVoltage_label, LV_PCT(100)); //Write style for scr_main_btn_setVoltage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setVoltage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setVoltage, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setVoltage, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setVoltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setVoltage, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setVoltage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setVoltage, lv_color_hex(0x00ff40), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setVoltage, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setVoltage, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setVoltage, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_running_start ui->scr_main_imgbtn_running_start = lv_imagebutton_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_imgbtn_running_start, 650, 30); lv_obj_set_size(ui->scr_main_imgbtn_running_start, 120, 200); lv_obj_add_flag(ui->scr_main_imgbtn_running_start, LV_OBJ_FLAG_HIDDEN); lv_obj_add_flag(ui->scr_main_imgbtn_running_start, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_start, LV_IMAGEBUTTON_STATE_RELEASED, &_start_RGB565A8_120x200, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_start, LV_IMAGEBUTTON_STATE_PRESSED, &_start_RGB565A8_120x200, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_start, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_start_RGB565A8_120x200, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_start, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_start_RGB565A8_120x200, NULL, NULL); ui->scr_main_imgbtn_running_start_label = lv_label_create(ui->scr_main_imgbtn_running_start); lv_label_set_text(ui->scr_main_imgbtn_running_start_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_running_start_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_running_start_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_running_start, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_running_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_running_start, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_running_start, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_running_start, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_running_start, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_running_start, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_running_start, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_running_start, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_running_start, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_running_start, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_running_start, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_running_start, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_running_start, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_running_start, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_running_start, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_running_start, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_running_start, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_running_start, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_running_start, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_running_start, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_running_start, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_running_start, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_running_start, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_imgbtn_running_stop ui->scr_main_imgbtn_running_stop = lv_imagebutton_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_imgbtn_running_stop, 650, 30); lv_obj_set_size(ui->scr_main_imgbtn_running_stop, 120, 200); lv_obj_add_flag(ui->scr_main_imgbtn_running_stop, LV_OBJ_FLAG_HIDDEN); lv_obj_add_flag(ui->scr_main_imgbtn_running_stop, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_stop, LV_IMAGEBUTTON_STATE_RELEASED, &_stop_RGB565A8_120x200, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_stop, LV_IMAGEBUTTON_STATE_PRESSED, &_stop_RGB565A8_120x200, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_stop, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_stop_RGB565A8_120x200, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_running_stop, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_stop_RGB565A8_120x200, NULL, NULL); ui->scr_main_imgbtn_running_stop_label = lv_label_create(ui->scr_main_imgbtn_running_stop); lv_label_set_text(ui->scr_main_imgbtn_running_stop_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_running_stop_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_running_stop_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_running_stop, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_running_stop, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_running_stop, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_running_stop, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_running_stop, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_running_stop, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_running_stop, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_running_stop, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_running_stop, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_running_stop, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_running_stop, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_running_stop, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_running_stop, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_running_stop, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_running_stop, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_running_stop, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_running_stop, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_running_stop, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_running_stop, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_running_stop, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_running_stop, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_running_stop, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_running_stop, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_running_stop, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_cont_system ui->scr_main_cont_system = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_system, 30, 250); lv_obj_set_size(ui->scr_main_cont_system, 740, 150); lv_obj_set_scrollbar_mode(ui->scr_main_cont_system, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_system, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_system, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_system, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_system, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_system, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_system, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_system, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_system, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_system, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_system, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_system, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_system, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_running_curve ui->scr_main_cont_running_curve = lv_obj_create(ui->scr_main_cont_mainwindows); lv_obj_set_pos(ui->scr_main_cont_running_curve, 30, 30); lv_obj_set_size(ui->scr_main_cont_running_curve, 600, 200); lv_obj_set_scrollbar_mode(ui->scr_main_cont_running_curve, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_cont_running_curve, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_cont_running_curve, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_running_curve, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_running_curve, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_running_curve, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_running_curve, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_running_curve, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_running_curve, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_running_curve, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_running_curve, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_running_curve, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_running_curve, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_setNumber ui->scr_main_dialog_setNumber = lv_obj_create(ui->scr_main_cont_base); lv_obj_set_pos(ui->scr_main_dialog_setNumber, 90, 60); lv_obj_set_size(ui->scr_main_dialog_setNumber, 600, 380); lv_obj_set_scrollbar_mode(ui->scr_main_dialog_setNumber, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_dialog_setNumber, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_dialog_setNumber, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_setNumber, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_setNumber, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_setNumber, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_setNumber, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_setNumber, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_title ui->scr_main_dialog_title = lv_obj_create(ui->scr_main_dialog_setNumber); lv_obj_set_pos(ui->scr_main_dialog_title, 0, 0); lv_obj_set_size(ui->scr_main_dialog_title, 600, 80); lv_obj_set_scrollbar_mode(ui->scr_main_dialog_title, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_dialog_title, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_title, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_title, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_title, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_exit ui->scr_main_dialog_number_exit = lv_imagebutton_create(ui->scr_main_dialog_title); lv_obj_set_pos(ui->scr_main_dialog_number_exit, 10, 20); lv_obj_set_size(ui->scr_main_dialog_number_exit, 40, 40); lv_obj_add_flag(ui->scr_main_dialog_number_exit, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_dialog_number_exit, LV_IMAGEBUTTON_STATE_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_dialog_number_exit, LV_IMAGEBUTTON_STATE_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_dialog_number_exit, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_dialog_number_exit, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); ui->scr_main_dialog_number_exit_label = lv_label_create(ui->scr_main_dialog_number_exit); lv_label_set_text(ui->scr_main_dialog_number_exit_label, ""); lv_label_set_long_mode(ui->scr_main_dialog_number_exit_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_exit_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_exit, 0, LV_STATE_DEFAULT); //Write style for scr_main_dialog_number_exit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_dialog_number_exit, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_exit, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_exit, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_exit, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_exit, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_dialog_number_exit, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_dialog_number_exit, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_dialog_number_exit, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_dialog_number_exit, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_dialog_number_exit, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_exit, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_exit, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_dialog_number_exit, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_dialog_number_exit, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_dialog_number_exit, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_dialog_number_exit, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_dialog_number_exit, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_exit, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_exit, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_dialog_number_exit, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_dialog_number_exit, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_dialog_number_exit, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_label_setNumber_title ui->scr_main_label_setNumber_title = lv_label_create(ui->scr_main_dialog_title); lv_obj_set_pos(ui->scr_main_label_setNumber_title, 60, 15); lv_obj_set_size(ui->scr_main_label_setNumber_title, 400, 50); lv_label_set_text(ui->scr_main_label_setNumber_title, "设置电流(A)"); lv_label_set_long_mode(ui->scr_main_label_setNumber_title, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_setNumber_title, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_setNumber_title, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_setNumber_title, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_setNumber_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_setNumber_title, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_setNumber_title, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_setNumber_title, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_setNumber_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_setNumber_Setting ui->scr_main_dialog_setNumber_Setting = lv_button_create(ui->scr_main_dialog_title); lv_obj_set_pos(ui->scr_main_dialog_setNumber_Setting, 480, 15); lv_obj_set_size(ui->scr_main_dialog_setNumber_Setting, 100, 50); ui->scr_main_dialog_setNumber_Setting_label = lv_label_create(ui->scr_main_dialog_setNumber_Setting); lv_label_set_text(ui->scr_main_dialog_setNumber_Setting_label, "设置"); lv_label_set_long_mode(ui->scr_main_dialog_setNumber_Setting_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_setNumber_Setting_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_setNumber_Setting, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_setNumber_Setting_label, LV_PCT(100)); //Write style for scr_main_dialog_setNumber_Setting, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_setNumber_Setting, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_setNumber_Setting, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_setNumber_Setting, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_setNumber_Setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_setNumber_Setting, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_setNumber_Setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_setNumber_Setting, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_setNumber_Setting, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_setNumber_Setting, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_setNumber_Setting, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_7 ui->scr_main_cont_7 = lv_obj_create(ui->scr_main_dialog_setNumber); lv_obj_set_pos(ui->scr_main_cont_7, 30, 160); lv_obj_set_size(ui->scr_main_cont_7, 540, 200); lv_obj_set_scrollbar_mode(ui->scr_main_cont_7, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_7, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_7, lv_color_hex(0xC4C4C4), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_7, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_1 ui->scr_main_dialog_number_1 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_1, 20, 11); lv_obj_set_size(ui->scr_main_dialog_number_1, 80, 50); ui->scr_main_dialog_number_1_label = lv_label_create(ui->scr_main_dialog_number_1); lv_label_set_text(ui->scr_main_dialog_number_1_label, "1"); lv_label_set_long_mode(ui->scr_main_dialog_number_1_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_1, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_1_label, LV_PCT(100)); //Write style for scr_main_dialog_number_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_1, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_1, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_2 ui->scr_main_dialog_number_2 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_2, 118, 10); lv_obj_set_size(ui->scr_main_dialog_number_2, 80, 50); ui->scr_main_dialog_number_2_label = lv_label_create(ui->scr_main_dialog_number_2); lv_label_set_text(ui->scr_main_dialog_number_2_label, "2"); lv_label_set_long_mode(ui->scr_main_dialog_number_2_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_2_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_2, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_2_label, LV_PCT(100)); //Write style for scr_main_dialog_number_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_2, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_2, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_3 ui->scr_main_dialog_number_3 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_3, 213, 10); lv_obj_set_size(ui->scr_main_dialog_number_3, 80, 50); ui->scr_main_dialog_number_3_label = lv_label_create(ui->scr_main_dialog_number_3); lv_label_set_text(ui->scr_main_dialog_number_3_label, "3"); lv_label_set_long_mode(ui->scr_main_dialog_number_3_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_3_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_3, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_3_label, LV_PCT(100)); //Write style for scr_main_dialog_number_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_3, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_3, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_3, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_4 ui->scr_main_dialog_number_4 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_4, 23, 75); lv_obj_set_size(ui->scr_main_dialog_number_4, 80, 50); ui->scr_main_dialog_number_4_label = lv_label_create(ui->scr_main_dialog_number_4); lv_label_set_text(ui->scr_main_dialog_number_4_label, "4"); lv_label_set_long_mode(ui->scr_main_dialog_number_4_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_4_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_4, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_4_label, LV_PCT(100)); //Write style for scr_main_dialog_number_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_4, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_4, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_4, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_5 ui->scr_main_dialog_number_5 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_5, 118, 75); lv_obj_set_size(ui->scr_main_dialog_number_5, 80, 50); ui->scr_main_dialog_number_5_label = lv_label_create(ui->scr_main_dialog_number_5); lv_label_set_text(ui->scr_main_dialog_number_5_label, "5"); lv_label_set_long_mode(ui->scr_main_dialog_number_5_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_5_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_5, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_5_label, LV_PCT(100)); //Write style for scr_main_dialog_number_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_5, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_5, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_5, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_6 ui->scr_main_dialog_number_6 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_6, 213, 75); lv_obj_set_size(ui->scr_main_dialog_number_6, 80, 50); ui->scr_main_dialog_number_6_label = lv_label_create(ui->scr_main_dialog_number_6); lv_label_set_text(ui->scr_main_dialog_number_6_label, "6"); lv_label_set_long_mode(ui->scr_main_dialog_number_6_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_6_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_6, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_6_label, LV_PCT(100)); //Write style for scr_main_dialog_number_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_6, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_6, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_6, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_7 ui->scr_main_dialog_number_7 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_7, 23, 140); lv_obj_set_size(ui->scr_main_dialog_number_7, 80, 50); ui->scr_main_dialog_number_7_label = lv_label_create(ui->scr_main_dialog_number_7); lv_label_set_text(ui->scr_main_dialog_number_7_label, "7"); lv_label_set_long_mode(ui->scr_main_dialog_number_7_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_7_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_7, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_7_label, LV_PCT(100)); //Write style for scr_main_dialog_number_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_7, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_7, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_7, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_7, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_7, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_8 ui->scr_main_dialog_number_8 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_8, 118, 140); lv_obj_set_size(ui->scr_main_dialog_number_8, 80, 50); ui->scr_main_dialog_number_8_label = lv_label_create(ui->scr_main_dialog_number_8); lv_label_set_text(ui->scr_main_dialog_number_8_label, "8"); lv_label_set_long_mode(ui->scr_main_dialog_number_8_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_8_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_8, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_8_label, LV_PCT(100)); //Write style for scr_main_dialog_number_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_8, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_8, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_8, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_8, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_8, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_9 ui->scr_main_dialog_number_9 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_9, 213, 140); lv_obj_set_size(ui->scr_main_dialog_number_9, 80, 50); ui->scr_main_dialog_number_9_label = lv_label_create(ui->scr_main_dialog_number_9); lv_label_set_text(ui->scr_main_dialog_number_9_label, "9"); lv_label_set_long_mode(ui->scr_main_dialog_number_9_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_9_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_9, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_9_label, LV_PCT(100)); //Write style for scr_main_dialog_number_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_9, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_9, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_9, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_9, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_9, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_minus ui->scr_main_dialog_number_minus = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_minus, 308, 10); lv_obj_set_size(ui->scr_main_dialog_number_minus, 80, 50); lv_obj_add_flag(ui->scr_main_dialog_number_minus, LV_OBJ_FLAG_HIDDEN); ui->scr_main_dialog_number_minus_label = lv_label_create(ui->scr_main_dialog_number_minus); lv_label_set_text(ui->scr_main_dialog_number_minus_label, "-"); lv_label_set_long_mode(ui->scr_main_dialog_number_minus_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_minus_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_minus, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_minus_label, LV_PCT(100)); //Write style for scr_main_dialog_number_minus, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_minus, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_minus, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_minus, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_minus, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_minus, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_minus, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_minus, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_minus, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_minus, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_minus, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_0 ui->scr_main_dialog_number_0 = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_0, 308, 75); lv_obj_set_size(ui->scr_main_dialog_number_0, 80, 50); ui->scr_main_dialog_number_0_label = lv_label_create(ui->scr_main_dialog_number_0); lv_label_set_text(ui->scr_main_dialog_number_0_label, "0"); lv_label_set_long_mode(ui->scr_main_dialog_number_0_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_0_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_0, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_0_label, LV_PCT(100)); //Write style for scr_main_dialog_number_0, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_0, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_0, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_0, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_0, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_0, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_0, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_0, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_0, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_0, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_0, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_point ui->scr_main_dialog_number_point = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_point, 308, 140); lv_obj_set_size(ui->scr_main_dialog_number_point, 80, 50); ui->scr_main_dialog_number_point_label = lv_label_create(ui->scr_main_dialog_number_point); lv_label_set_text(ui->scr_main_dialog_number_point_label, "."); lv_label_set_long_mode(ui->scr_main_dialog_number_point_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_point_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_point, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_point_label, LV_PCT(100)); //Write style for scr_main_dialog_number_point, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_point, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_point, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_point, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_point, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_point, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_point, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_point, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_point, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_point, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_point, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_del ui->scr_main_dialog_number_del = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_del, 402, 10); lv_obj_set_size(ui->scr_main_dialog_number_del, 122, 115); ui->scr_main_dialog_number_del_label = lv_label_create(ui->scr_main_dialog_number_del); lv_label_set_text(ui->scr_main_dialog_number_del_label, "删除"); lv_label_set_long_mode(ui->scr_main_dialog_number_del_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_del_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_del, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_del_label, LV_PCT(100)); //Write style for scr_main_dialog_number_del, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_del, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_del, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_del, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_del, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_del, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_del, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_del, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_del, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_del, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_del, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_number_clear ui->scr_main_dialog_number_clear = lv_button_create(ui->scr_main_cont_7); lv_obj_set_pos(ui->scr_main_dialog_number_clear, 403, 140); lv_obj_set_size(ui->scr_main_dialog_number_clear, 122, 50); ui->scr_main_dialog_number_clear_label = lv_label_create(ui->scr_main_dialog_number_clear); lv_label_set_text(ui->scr_main_dialog_number_clear_label, "清空"); lv_label_set_long_mode(ui->scr_main_dialog_number_clear_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_number_clear_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_number_clear, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_number_clear_label, LV_PCT(100)); //Write style for scr_main_dialog_number_clear, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_number_clear, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_number_clear, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_number_clear, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_number_clear, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_number_clear, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_number_clear, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_number_clear, lv_color_hex(0xFF0000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_number_clear, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_number_clear, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_number_clear, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_setNumber_label ui->scr_main_dialog_setNumber_label = lv_label_create(ui->scr_main_dialog_setNumber); lv_obj_set_pos(ui->scr_main_dialog_setNumber_label, 30, 95); lv_obj_set_size(ui->scr_main_dialog_setNumber_label, 540, 50); lv_label_set_text(ui->scr_main_dialog_setNumber_label, "0"); lv_label_set_long_mode(ui->scr_main_dialog_setNumber_label, LV_LABEL_LONG_WRAP); //Write style for scr_main_dialog_setNumber_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_setNumber_label, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_setNumber_label, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_setNumber_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_setNumber_label, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_setNumber_label, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_setNumber_label, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_setNumber_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_ExitWarning ui->scr_main_dialog_ExitWarning = lv_obj_create(ui->scr_main_cont_base); lv_obj_set_pos(ui->scr_main_dialog_ExitWarning, 90, 60); lv_obj_set_size(ui->scr_main_dialog_ExitWarning, 600, 380); lv_obj_set_scrollbar_mode(ui->scr_main_dialog_ExitWarning, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_dialog_ExitWarning, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_dialog_ExitWarning, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_ExitWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_ExitWarning, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_ExitWarning, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_ExitWarning, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_ExitWarning, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_ExitWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_ExitWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_ExitWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_ExitWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_ExitWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_2 ui->scr_main_cont_2 = lv_obj_create(ui->scr_main_dialog_ExitWarning); lv_obj_set_pos(ui->scr_main_cont_2, 0, 0); lv_obj_set_size(ui->scr_main_cont_2, 600, 80); lv_obj_set_scrollbar_mode(ui->scr_main_cont_2, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_2, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_exitCancel ui->scr_main_imgbtn_exitCancel = lv_imagebutton_create(ui->scr_main_cont_2); lv_obj_set_pos(ui->scr_main_imgbtn_exitCancel, 10, 20); lv_obj_set_size(ui->scr_main_imgbtn_exitCancel, 40, 40); lv_obj_add_flag(ui->scr_main_imgbtn_exitCancel, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_exitCancel, LV_IMAGEBUTTON_STATE_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_exitCancel, LV_IMAGEBUTTON_STATE_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_exitCancel, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_exitCancel, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); ui->scr_main_imgbtn_exitCancel_label = lv_label_create(ui->scr_main_imgbtn_exitCancel); lv_label_set_text(ui->scr_main_imgbtn_exitCancel_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_exitCancel_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_exitCancel_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_exitCancel, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_exitCancel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_exitCancel, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_exitCancel, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_exitCancel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_exitCancel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_exitCancel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_exitCancel, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_exitCancel, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_exitCancel, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_exitCancel, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_exitCancel, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_exitCancel, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_exitCancel, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_exitCancel, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_exitCancel, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_exitCancel, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_exitCancel, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_exitCancel, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_exitCancel, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_exitCancel, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_exitCancel, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_exitCancel, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_exitCancel, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_label_55 ui->scr_main_label_55 = lv_label_create(ui->scr_main_cont_2); lv_obj_set_pos(ui->scr_main_label_55, 60, 15); lv_obj_set_size(ui->scr_main_label_55, 400, 50); lv_label_set_text(ui->scr_main_label_55, "警告"); lv_label_set_long_mode(ui->scr_main_label_55, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_55, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_55, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_55, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_55, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_55, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_55, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_55, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_55, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_ExitConfirm ui->scr_main_btn_ExitConfirm = lv_button_create(ui->scr_main_cont_2); lv_obj_set_pos(ui->scr_main_btn_ExitConfirm, 478, 15); lv_obj_set_size(ui->scr_main_btn_ExitConfirm, 100, 50); ui->scr_main_btn_ExitConfirm_label = lv_label_create(ui->scr_main_btn_ExitConfirm); lv_label_set_text(ui->scr_main_btn_ExitConfirm_label, "确定"); lv_label_set_long_mode(ui->scr_main_btn_ExitConfirm_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_ExitConfirm_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_ExitConfirm, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_ExitConfirm_label, LV_PCT(100)); //Write style for scr_main_btn_ExitConfirm, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_ExitConfirm, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_ExitConfirm, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_ExitConfirm, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_ExitConfirm, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_ExitConfirm, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_ExitConfirm, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_ExitConfirm, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_ExitConfirm, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_ExitConfirm, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_ExitConfirm, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_10 ui->scr_main_cont_10 = lv_obj_create(ui->scr_main_dialog_ExitWarning); lv_obj_set_pos(ui->scr_main_cont_10, 25, 100); lv_obj_set_size(ui->scr_main_cont_10, 550, 260); lv_obj_set_scrollbar_mode(ui->scr_main_cont_10, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_10, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_10, lv_color_hex(0xC4C4C4), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_10, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_60 ui->scr_main_label_60 = lv_label_create(ui->scr_main_cont_10); lv_obj_set_pos(ui->scr_main_label_60, 26, 106); lv_obj_set_size(ui->scr_main_label_60, 500, 32); lv_label_set_text(ui->scr_main_label_60, "程序运行中,是否停止并退出?"); lv_label_set_long_mode(ui->scr_main_label_60, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_60, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_60, lv_color_hex(0xFF0000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_60, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_60, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_60, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_60, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_setType ui->scr_main_dialog_setType = lv_obj_create(ui->scr_main_cont_base); lv_obj_set_pos(ui->scr_main_dialog_setType, 90, 60); lv_obj_set_size(ui->scr_main_dialog_setType, 600, 380); lv_obj_set_scrollbar_mode(ui->scr_main_dialog_setType, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_dialog_setType, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_dialog_setType, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_setType, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_setType, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_setType, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_setType, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_setType, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_4 ui->scr_main_cont_4 = lv_obj_create(ui->scr_main_dialog_setType); lv_obj_set_pos(ui->scr_main_cont_4, 0, 0); lv_obj_set_size(ui->scr_main_cont_4, 600, 80); lv_obj_set_scrollbar_mode(ui->scr_main_cont_4, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_4, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_setTypeCancel ui->scr_main_imgbtn_setTypeCancel = lv_imagebutton_create(ui->scr_main_cont_4); lv_obj_set_pos(ui->scr_main_imgbtn_setTypeCancel, 10, 20); lv_obj_set_size(ui->scr_main_imgbtn_setTypeCancel, 40, 40); lv_obj_add_flag(ui->scr_main_imgbtn_setTypeCancel, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_setTypeCancel, LV_IMAGEBUTTON_STATE_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_setTypeCancel, LV_IMAGEBUTTON_STATE_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_setTypeCancel, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_setTypeCancel, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); ui->scr_main_imgbtn_setTypeCancel_label = lv_label_create(ui->scr_main_imgbtn_setTypeCancel); lv_label_set_text(ui->scr_main_imgbtn_setTypeCancel_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_setTypeCancel_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_setTypeCancel_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_setTypeCancel, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_setTypeCancel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_setTypeCancel, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_setTypeCancel, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_setTypeCancel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_setTypeCancel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_setTypeCancel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_setTypeCancel, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_setTypeCancel, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_setTypeCancel, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_setTypeCancel, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_setTypeCancel, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_setTypeCancel, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_setTypeCancel, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_setTypeCancel, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_setTypeCancel, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_setTypeCancel, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_setTypeCancel, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_setTypeCancel, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_setTypeCancel, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_setTypeCancel, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_setTypeCancel, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_setTypeCancel, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_setTypeCancel, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_label_setType_title ui->scr_main_label_setType_title = lv_label_create(ui->scr_main_cont_4); lv_obj_set_pos(ui->scr_main_label_setType_title, 60, 15); lv_obj_set_size(ui->scr_main_label_setType_title, 400, 50); lv_label_set_text(ui->scr_main_label_setType_title, "设置类型"); lv_label_set_long_mode(ui->scr_main_label_setType_title, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_setType_title, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_setType_title, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_setType_title, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_setType_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_setType_title, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_setType_title, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_setType_title, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_setType_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_setType_Setting ui->scr_main_dialog_setType_Setting = lv_button_create(ui->scr_main_cont_4); lv_obj_set_pos(ui->scr_main_dialog_setType_Setting, 480, 15); lv_obj_set_size(ui->scr_main_dialog_setType_Setting, 100, 50); ui->scr_main_dialog_setType_Setting_label = lv_label_create(ui->scr_main_dialog_setType_Setting); lv_label_set_text(ui->scr_main_dialog_setType_Setting_label, "设置"); lv_label_set_long_mode(ui->scr_main_dialog_setType_Setting_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_dialog_setType_Setting_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_dialog_setType_Setting, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_dialog_setType_Setting_label, LV_PCT(100)); //Write style for scr_main_dialog_setType_Setting, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_dialog_setType_Setting, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_setType_Setting, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_setType_Setting, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_dialog_setType_Setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_setType_Setting, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_setType_Setting, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_setType_Setting, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_setType_Setting, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_setType_Setting, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_setType_Setting, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_8 ui->scr_main_cont_8 = lv_obj_create(ui->scr_main_dialog_setType); lv_obj_set_pos(ui->scr_main_cont_8, 30, 160); lv_obj_set_size(ui->scr_main_cont_8, 540, 200); lv_obj_set_scrollbar_mode(ui->scr_main_cont_8, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_8, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_8, lv_color_hex(0xC4C4C4), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_8, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setLiHv ui->scr_main_btn_setLiHv = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setLiHv, 23, 10); lv_obj_set_size(ui->scr_main_btn_setLiHv, 140, 50); ui->scr_main_btn_setLiHv_label = lv_label_create(ui->scr_main_btn_setLiHv); lv_label_set_text(ui->scr_main_btn_setLiHv_label, "LiHv"); lv_label_set_long_mode(ui->scr_main_btn_setLiHv_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setLiHv_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setLiHv, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setLiHv_label, LV_PCT(100)); //Write style for scr_main_btn_setLiHv, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setLiHv, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setLiHv, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setLiHv, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setLiHv, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setLiHv, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setLiHv, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setLiHv, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setLiHv, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setLiHv, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setLiHv, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setLiPo ui->scr_main_btn_setLiPo = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setLiPo, 200, 10); lv_obj_set_size(ui->scr_main_btn_setLiPo, 140, 50); ui->scr_main_btn_setLiPo_label = lv_label_create(ui->scr_main_btn_setLiPo); lv_label_set_text(ui->scr_main_btn_setLiPo_label, "LiPo"); lv_label_set_long_mode(ui->scr_main_btn_setLiPo_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setLiPo_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setLiPo, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setLiPo_label, LV_PCT(100)); //Write style for scr_main_btn_setLiPo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setLiPo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setLiPo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setLiPo, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setLiPo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setLiPo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setLiPo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setLiPo, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setLiPo, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setLiPo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setLiPo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setLilon ui->scr_main_btn_setLilon = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setLilon, 380, 10); lv_obj_set_size(ui->scr_main_btn_setLilon, 140, 50); ui->scr_main_btn_setLilon_label = lv_label_create(ui->scr_main_btn_setLilon); lv_label_set_text(ui->scr_main_btn_setLilon_label, "Lilon"); lv_label_set_long_mode(ui->scr_main_btn_setLilon_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setLilon_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setLilon, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setLilon_label, LV_PCT(100)); //Write style for scr_main_btn_setLilon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setLilon, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setLilon, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setLilon, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setLilon, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setLilon, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setLilon, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setLilon, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setLilon, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setLilon, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setLilon, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setLiXX ui->scr_main_btn_setLiXX = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setLiXX, 23, 73); lv_obj_set_size(ui->scr_main_btn_setLiXX, 140, 50); ui->scr_main_btn_setLiXX_label = lv_label_create(ui->scr_main_btn_setLiXX); lv_label_set_text(ui->scr_main_btn_setLiXX_label, "LiFe"); lv_label_set_long_mode(ui->scr_main_btn_setLiXX_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setLiXX_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setLiXX, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setLiXX_label, LV_PCT(100)); //Write style for scr_main_btn_setLiXX, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setLiXX, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setLiXX, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setLiXX, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setLiXX, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setLiXX, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setLiXX, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setLiXX, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setLiXX, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setLiXX, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setLiXX, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setLiFe ui->scr_main_btn_setLiFe = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setLiFe, 200, 75); lv_obj_set_size(ui->scr_main_btn_setLiFe, 140, 50); ui->scr_main_btn_setLiFe_label = lv_label_create(ui->scr_main_btn_setLiFe); lv_label_set_text(ui->scr_main_btn_setLiFe_label, "LiXX"); lv_label_set_long_mode(ui->scr_main_btn_setLiFe_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setLiFe_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setLiFe, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setLiFe_label, LV_PCT(100)); //Write style for scr_main_btn_setLiFe, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setLiFe, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setLiFe, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setLiFe, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setLiFe, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setLiFe, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setLiFe, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setLiFe, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setLiFe, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setLiFe, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setLiFe, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setNiZn ui->scr_main_btn_setNiZn = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setNiZn, 380, 75); lv_obj_set_size(ui->scr_main_btn_setNiZn, 140, 50); ui->scr_main_btn_setNiZn_label = lv_label_create(ui->scr_main_btn_setNiZn); lv_label_set_text(ui->scr_main_btn_setNiZn_label, "NiZn"); lv_label_set_long_mode(ui->scr_main_btn_setNiZn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setNiZn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setNiZn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setNiZn_label, LV_PCT(100)); //Write style for scr_main_btn_setNiZn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setNiZn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setNiZn, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setNiZn, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setNiZn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setNiZn, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setNiZn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setNiZn, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setNiZn, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setNiZn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setNiZn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setNiCd ui->scr_main_btn_setNiCd = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setNiCd, 23, 140); lv_obj_set_size(ui->scr_main_btn_setNiCd, 140, 50); ui->scr_main_btn_setNiCd_label = lv_label_create(ui->scr_main_btn_setNiCd); lv_label_set_text(ui->scr_main_btn_setNiCd_label, "NiCd"); lv_label_set_long_mode(ui->scr_main_btn_setNiCd_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setNiCd_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setNiCd, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setNiCd_label, LV_PCT(100)); //Write style for scr_main_btn_setNiCd, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setNiCd, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setNiCd, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setNiCd, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setNiCd, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setNiCd, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setNiCd, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setNiCd, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setNiCd, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setNiCd, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setNiCd, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setNiMe ui->scr_main_btn_setNiMe = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setNiMe, 200, 140); lv_obj_set_size(ui->scr_main_btn_setNiMe, 140, 50); ui->scr_main_btn_setNiMe_label = lv_label_create(ui->scr_main_btn_setNiMe); lv_label_set_text(ui->scr_main_btn_setNiMe_label, "NiMH"); lv_label_set_long_mode(ui->scr_main_btn_setNiMe_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setNiMe_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setNiMe, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setNiMe_label, LV_PCT(100)); //Write style for scr_main_btn_setNiMe, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setNiMe, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setNiMe, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setNiMe, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setNiMe, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setNiMe, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setNiMe, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setNiMe, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setNiMe, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setNiMe, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setNiMe, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_setPb ui->scr_main_btn_setPb = lv_button_create(ui->scr_main_cont_8); lv_obj_set_pos(ui->scr_main_btn_setPb, 380, 140); lv_obj_set_size(ui->scr_main_btn_setPb, 140, 50); ui->scr_main_btn_setPb_label = lv_label_create(ui->scr_main_btn_setPb); lv_label_set_text(ui->scr_main_btn_setPb_label, "Pb"); lv_label_set_long_mode(ui->scr_main_btn_setPb_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_setPb_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_setPb, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_setPb_label, LV_PCT(100)); //Write style for scr_main_btn_setPb, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_setPb, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_setPb, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_setPb, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_setPb, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_setPb, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_setPb, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_setPb, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_setPb, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_setPb, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_setPb, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_setType_label ui->scr_main_dialog_setType_label = lv_label_create(ui->scr_main_dialog_setType); lv_obj_set_pos(ui->scr_main_dialog_setType_label, 30, 95); lv_obj_set_size(ui->scr_main_dialog_setType_label, 540, 50); lv_label_set_text(ui->scr_main_dialog_setType_label, "LiHv"); lv_label_set_long_mode(ui->scr_main_dialog_setType_label, LV_LABEL_LONG_WRAP); //Write style for scr_main_dialog_setType_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_dialog_setType_label, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_dialog_setType_label, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_dialog_setType_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_dialog_setType_label, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_setType_label, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_setType_label, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_setType_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_dialog_DetectWarning ui->scr_main_dialog_DetectWarning = lv_obj_create(ui->scr_main_cont_base); lv_obj_set_pos(ui->scr_main_dialog_DetectWarning, 90, 60); lv_obj_set_size(ui->scr_main_dialog_DetectWarning, 600, 380); lv_obj_set_scrollbar_mode(ui->scr_main_dialog_DetectWarning, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->scr_main_dialog_DetectWarning, LV_OBJ_FLAG_HIDDEN); //Write style for scr_main_dialog_DetectWarning, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_dialog_DetectWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_dialog_DetectWarning, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_dialog_DetectWarning, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_dialog_DetectWarning, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_dialog_DetectWarning, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_dialog_DetectWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_dialog_DetectWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_dialog_DetectWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_dialog_DetectWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_dialog_DetectWarning, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_6 ui->scr_main_cont_6 = lv_obj_create(ui->scr_main_dialog_DetectWarning); lv_obj_set_pos(ui->scr_main_cont_6, 0, 0); lv_obj_set_size(ui->scr_main_cont_6, 600, 80); lv_obj_set_scrollbar_mode(ui->scr_main_cont_6, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_6, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_imgbtn_detectCancel ui->scr_main_imgbtn_detectCancel = lv_imagebutton_create(ui->scr_main_cont_6); lv_obj_set_pos(ui->scr_main_imgbtn_detectCancel, 10, 20); lv_obj_set_size(ui->scr_main_imgbtn_detectCancel, 40, 40); lv_obj_add_flag(ui->scr_main_imgbtn_detectCancel, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->scr_main_imgbtn_detectCancel, LV_IMAGEBUTTON_STATE_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_detectCancel, LV_IMAGEBUTTON_STATE_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_detectCancel, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_navback_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->scr_main_imgbtn_detectCancel, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_navback_RGB565A8_40x40, NULL, NULL); ui->scr_main_imgbtn_detectCancel_label = lv_label_create(ui->scr_main_imgbtn_detectCancel); lv_label_set_text(ui->scr_main_imgbtn_detectCancel_label, ""); lv_label_set_long_mode(ui->scr_main_imgbtn_detectCancel_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_imgbtn_detectCancel_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_imgbtn_detectCancel, 0, LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_detectCancel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->scr_main_imgbtn_detectCancel, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_imgbtn_detectCancel, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_detectCancel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_imgbtn_detectCancel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_detectCancel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for scr_main_imgbtn_detectCancel, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_detectCancel, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_detectCancel, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_detectCancel, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_detectCancel, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_detectCancel, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_detectCancel, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for scr_main_imgbtn_detectCancel, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_detectCancel, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_detectCancel, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->scr_main_imgbtn_detectCancel, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->scr_main_imgbtn_detectCancel, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->scr_main_imgbtn_detectCancel, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->scr_main_imgbtn_detectCancel, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for scr_main_imgbtn_detectCancel, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->scr_main_imgbtn_detectCancel, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->scr_main_imgbtn_detectCancel, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes scr_main_label_57 ui->scr_main_label_57 = lv_label_create(ui->scr_main_cont_6); lv_obj_set_pos(ui->scr_main_label_57, 60, 15); lv_obj_set_size(ui->scr_main_label_57, 400, 50); lv_label_set_text(ui->scr_main_label_57, "警告"); lv_label_set_long_mode(ui->scr_main_label_57, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_57, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_57, lv_color_hex(0xFABB3E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_57, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_57, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_57, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_57, 11, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_57, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_57, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_btn_detectConfirm ui->scr_main_btn_detectConfirm = lv_button_create(ui->scr_main_cont_6); lv_obj_set_pos(ui->scr_main_btn_detectConfirm, 480, 15); lv_obj_set_size(ui->scr_main_btn_detectConfirm, 100, 50); ui->scr_main_btn_detectConfirm_label = lv_label_create(ui->scr_main_btn_detectConfirm); lv_label_set_text(ui->scr_main_btn_detectConfirm_label, "确定"); lv_label_set_long_mode(ui->scr_main_btn_detectConfirm_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->scr_main_btn_detectConfirm_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->scr_main_btn_detectConfirm, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->scr_main_btn_detectConfirm_label, LV_PCT(100)); //Write style for scr_main_btn_detectConfirm, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->scr_main_btn_detectConfirm, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_btn_detectConfirm, lv_color_hex(0x1E1E1E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_btn_detectConfirm, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->scr_main_btn_detectConfirm, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_btn_detectConfirm, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_btn_detectConfirm, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_btn_detectConfirm, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_btn_detectConfirm, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_btn_detectConfirm, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_btn_detectConfirm, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_cont_9 ui->scr_main_cont_9 = lv_obj_create(ui->scr_main_dialog_DetectWarning); lv_obj_set_pos(ui->scr_main_cont_9, 25, 100); lv_obj_set_size(ui->scr_main_cont_9, 550, 260); lv_obj_set_scrollbar_mode(ui->scr_main_cont_9, LV_SCROLLBAR_MODE_OFF); //Write style for scr_main_cont_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_cont_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_cont_9, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_cont_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->scr_main_cont_9, lv_color_hex(0xC4C4C4), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->scr_main_cont_9, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_cont_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_cont_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_cont_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_cont_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_cont_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes scr_main_label_61 ui->scr_main_label_61 = lv_label_create(ui->scr_main_cont_9); lv_obj_set_pos(ui->scr_main_label_61, -2, 119); lv_obj_set_size(ui->scr_main_label_61, 550, 32); //lv_label_set_text(ui->scr_main_label_61, "无法检测到电池,请重新插入,并开始"); lv_label_set_long_mode(ui->scr_main_label_61, LV_LABEL_LONG_WRAP); //Write style for scr_main_label_61, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->scr_main_label_61, lv_color_hex(0xFF0000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->scr_main_label_61, &lv_font_SourceHanSerifSC_Regular_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->scr_main_label_61, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->scr_main_label_61, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->scr_main_label_61, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of scr_main. //Update current screen layout. lv_obj_update_layout(ui->scr_main); //Init events for screen. events_init_scr_main(ui); }