sggt/LVGL/myGUI/generated/setup_scr_screen_modbus_con...

498 lines
45 KiB
C

/*
* 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 <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"
void setup_scr_screen_modbus_config(lv_ui *ui)
{
//Write codes screen_modbus_config
ui->screen_modbus_config = lv_obj_create(NULL);
lv_obj_set_size(ui->screen_modbus_config, 320, 240);
lv_obj_set_scrollbar_mode(ui->screen_modbus_config, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_modbus_config, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_modbus_config, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_next
ui->screen_modbus_config_value_next = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_next, ">>>");
lv_label_set_long_mode(ui->screen_modbus_config_value_next, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_next, 246, 194);
lv_obj_set_size(ui->screen_modbus_config_value_next, 65, 30);
//Write style for screen_modbus_config_value_next, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_next, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_next, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_next, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_next, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_next, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_next, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_next, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_next, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_next, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_next
ui->screen_modbus_config_label_next = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_next, "下一步");
lv_label_set_long_mode(ui->screen_modbus_config_label_next, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_next, 160, 194);
lv_obj_set_size(ui->screen_modbus_config_label_next, 80, 30);
//Write style for screen_modbus_config_label_next, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_next, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_next, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_next, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_next, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_next, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_next, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_next, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_timeout
ui->screen_modbus_config_value_timeout = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_timeout, "1000 ms");
lv_label_set_long_mode(ui->screen_modbus_config_value_timeout, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_timeout, 89, 194);
lv_obj_set_size(ui->screen_modbus_config_value_timeout, 65, 30);
//Write style for screen_modbus_config_value_timeout, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_timeout, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_timeout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_timeout, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_timeout, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_timeout, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_timeout, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_timeout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_timeout, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_timeout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_timeout, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_timeout, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_timeout, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_calibration
ui->screen_modbus_config_value_calibration = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_calibration, "CRC16");
lv_label_set_long_mode(ui->screen_modbus_config_value_calibration, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_calibration, 246, 148);
lv_obj_set_size(ui->screen_modbus_config_value_calibration, 65, 30);
//Write style for screen_modbus_config_value_calibration, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_calibration, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_calibration, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_calibration, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_calibration, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_calibration, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_calibration, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_calibration, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_calibration, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_calibration, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_calibration, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_calibration, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_calibration, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_bytes
ui->screen_modbus_config_value_bytes = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_bytes, "0");
lv_label_set_long_mode(ui->screen_modbus_config_value_bytes, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_bytes, 89, 148);
lv_obj_set_size(ui->screen_modbus_config_value_bytes, 65, 30);
//Write style for screen_modbus_config_value_bytes, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_bytes, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_bytes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_bytes, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_bytes, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_bytes, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_bytes, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_bytes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_bytes, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_bytes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_bytes, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_bytes, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_bytes, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_register_num
ui->screen_modbus_config_value_register_num = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_register_num, "0");
lv_label_set_long_mode(ui->screen_modbus_config_value_register_num, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_register_num, 246, 102);
lv_obj_set_size(ui->screen_modbus_config_value_register_num, 65, 30);
//Write style for screen_modbus_config_value_register_num, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_register_num, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_register_num, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_register_num, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_register_num, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_register_num, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_register_num, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_register_num, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_register_num, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_register_num, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_register_num, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_register_num, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_register_num, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_start_addr
ui->screen_modbus_config_value_start_addr = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_start_addr, "0x0000");
lv_label_set_long_mode(ui->screen_modbus_config_value_start_addr, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_start_addr, 89, 102);
lv_obj_set_size(ui->screen_modbus_config_value_start_addr, 65, 30);
//Write style for screen_modbus_config_value_start_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_start_addr, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_start_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_start_addr, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_start_addr, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_start_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_start_addr, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_start_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_start_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_start_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_start_addr, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_start_addr, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_start_addr, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_cmd
ui->screen_modbus_config_value_cmd = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_cmd, "0x00");
lv_label_set_long_mode(ui->screen_modbus_config_value_cmd, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_cmd, 246, 56);
lv_obj_set_size(ui->screen_modbus_config_value_cmd, 65, 30);
//Write style for screen_modbus_config_value_cmd, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_cmd, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_cmd, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_cmd, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_cmd, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_cmd, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_cmd, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_cmd, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_cmd, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_cmd, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_cmd, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_cmd, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_cmd, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_value_device_addr
ui->screen_modbus_config_value_device_addr = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_value_device_addr, "0x00");
lv_label_set_long_mode(ui->screen_modbus_config_value_device_addr, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_value_device_addr, 89, 56);
lv_obj_set_size(ui->screen_modbus_config_value_device_addr, 65, 30);
//Write style for screen_modbus_config_value_device_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_value_device_addr, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_value_device_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_value_device_addr, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_value_device_addr, LV_BORDER_SIDE_BOTTOM, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_value_device_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_value_device_addr, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_value_device_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_value_device_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_value_device_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_value_device_addr, lv_color_hex(0xCAEEFF), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_value_device_addr, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_value_device_addr, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_value_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_timeout
ui->screen_modbus_config_label_timeout = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_timeout, "超时时间");
lv_label_set_long_mode(ui->screen_modbus_config_label_timeout, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_timeout, 3, 194);
lv_obj_set_size(ui->screen_modbus_config_label_timeout, 80, 30);
//Write style for screen_modbus_config_label_timeout, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_timeout, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_timeout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_timeout, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_timeout, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_timeout, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_timeout, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_timeout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_timeout, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_timeout, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_timeout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_calibration
ui->screen_modbus_config_label_calibration = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_calibration, "校验");
lv_label_set_long_mode(ui->screen_modbus_config_label_calibration, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_calibration, 160, 148);
lv_obj_set_size(ui->screen_modbus_config_label_calibration, 80, 30);
//Write style for screen_modbus_config_label_calibration, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_calibration, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_calibration, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_calibration, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_calibration, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_calibration, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_calibration, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_calibration, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_calibration, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_calibration, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_calibration, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_bytes
ui->screen_modbus_config_label_bytes = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_bytes, "字节数");
lv_label_set_long_mode(ui->screen_modbus_config_label_bytes, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_bytes, 3, 148);
lv_obj_set_size(ui->screen_modbus_config_label_bytes, 80, 30);
//Write style for screen_modbus_config_label_bytes, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_bytes, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_bytes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_bytes, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_bytes, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_bytes, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_bytes, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_bytes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_bytes, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_bytes, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_bytes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_register_num
ui->screen_modbus_config_label_register_num = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_register_num, "寄存器数量");
lv_label_set_long_mode(ui->screen_modbus_config_label_register_num, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_register_num, 160, 102);
lv_obj_set_size(ui->screen_modbus_config_label_register_num, 80, 30);
//Write style for screen_modbus_config_label_register_num, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_register_num, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_register_num, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_register_num, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_register_num, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_register_num, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_register_num, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_register_num, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_register_num, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_register_num, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_register_num, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_start_addr
ui->screen_modbus_config_label_start_addr = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_start_addr, "起始地址");
lv_label_set_long_mode(ui->screen_modbus_config_label_start_addr, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_start_addr, 3, 102);
lv_obj_set_size(ui->screen_modbus_config_label_start_addr, 80, 30);
//Write style for screen_modbus_config_label_start_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_start_addr, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_start_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_start_addr, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_start_addr, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_start_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_start_addr, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_start_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_start_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_start_addr, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_start_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_cmd
ui->screen_modbus_config_label_cmd = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_cmd, "命令字");
lv_label_set_long_mode(ui->screen_modbus_config_label_cmd, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_cmd, 160, 56);
lv_obj_set_size(ui->screen_modbus_config_label_cmd, 80, 30);
//Write style for screen_modbus_config_label_cmd, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_cmd, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_cmd, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_cmd, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_cmd, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_cmd, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_cmd, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_cmd, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_cmd, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_cmd, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_cmd, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_device_addr
ui->screen_modbus_config_label_device_addr = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_device_addr, "设备地址");
lv_label_set_long_mode(ui->screen_modbus_config_label_device_addr, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_device_addr, 3, 56);
lv_obj_set_size(ui->screen_modbus_config_label_device_addr, 80, 30);
//Write style for screen_modbus_config_label_device_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_device_addr, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_device_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_device_addr, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_device_addr, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_device_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_device_addr, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_device_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_device_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_device_addr, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_device_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_modbus_config_label_title
ui->screen_modbus_config_label_title = lv_label_create(ui->screen_modbus_config);
lv_label_set_text(ui->screen_modbus_config_label_title, "Modbus RTU Master");
lv_label_set_long_mode(ui->screen_modbus_config_label_title, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_modbus_config_label_title, 0, 0);
lv_obj_set_size(ui->screen_modbus_config_label_title, 320, 40);
//Write style for screen_modbus_config_label_title, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_modbus_config_label_title, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_modbus_config_label_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_modbus_config_label_title, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_modbus_config_label_title, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_modbus_config_label_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_modbus_config_label_title, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_modbus_config_label_title, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_modbus_config_label_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_modbus_config_label_title, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_modbus_config_label_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_modbus_config_label_title, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_modbus_config_label_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_modbus_config_label_title, lv_color_hex(0xCAEEFF), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_modbus_config_label_title, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_modbus_config_label_title, 9, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_modbus_config_label_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_modbus_config_label_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_modbus_config_label_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_modbus_config_label_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//The custom code of screen_modbus_config.
//Update current screen layout.
lv_obj_update_layout(ui->screen_modbus_config);
}