/* * 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" void setup_scr_screen_modbus_trx(lv_ui *ui) { //Write codes screen_modbus_trx ui->screen_modbus_trx = lv_obj_create(NULL); lv_obj_set_size(ui->screen_modbus_trx, 320, 240); lv_obj_set_scrollbar_mode(ui->screen_modbus_trx, LV_SCROLLBAR_MODE_OFF); //Write style for screen_modbus_trx, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_modbus_trx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_modbus_trx, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_modbus_trx, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_value_Rx ui->screen_modbus_trx_value_Rx = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_value_Rx, ""); lv_label_set_long_mode(ui->screen_modbus_trx_value_Rx, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_value_Rx, 3, 169); lv_obj_set_size(ui->screen_modbus_trx_value_Rx, 314, 68); //Write style for screen_modbus_trx_value_Rx, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_value_Rx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_value_Rx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_value_Rx, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_value_Rx, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_value_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_value_Rx, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_value_Rx, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_value_Rx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_value_Rx, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_value_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_value_Rx, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_value_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_value_Rx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_value_Rx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_value_Rx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_value_Rx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_value_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_value_Tx ui->screen_modbus_trx_value_Tx = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_value_Tx, ""); lv_label_set_long_mode(ui->screen_modbus_trx_value_Tx, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_value_Tx, 160, 21); lv_obj_set_size(ui->screen_modbus_trx_value_Tx, 157, 85); //Write style for screen_modbus_trx_value_Tx, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_value_Tx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_value_Tx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_value_Tx, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_value_Tx, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_value_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_value_Tx, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_value_Tx, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_value_Tx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_value_Tx, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_value_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_value_Tx, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_value_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_value_Tx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_value_Tx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_value_Tx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_value_Tx, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_value_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_value_Data ui->screen_modbus_trx_value_Data = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_value_Data, ""); lv_label_set_long_mode(ui->screen_modbus_trx_value_Data, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_value_Data, 3, 21); lv_obj_set_size(ui->screen_modbus_trx_value_Data, 147, 85); //Write style for screen_modbus_trx_value_Data, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_value_Data, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_value_Data, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_value_Data, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_value_Data, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_value_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_value_Data, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_value_Data, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_value_Data, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_value_Data, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_value_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_value_Data, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_value_Data, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_modbus_trx_value_Data, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_modbus_trx_value_Data, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_value_Data, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_value_Data, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_value_Data, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_value_Data, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_value_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_label_Rx ui->screen_modbus_trx_label_Rx = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_label_Rx, "(HEX)Rx:"); lv_label_set_long_mode(ui->screen_modbus_trx_label_Rx, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_label_Rx, 3, 150); lv_obj_set_size(ui->screen_modbus_trx_label_Rx, 85, 18); //Write style for screen_modbus_trx_label_Rx, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_label_Rx, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_label_Rx, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_label_Rx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_label_Rx, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_label_Rx, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_label_Rx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_label_send ui->screen_modbus_trx_label_send = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_label_send, "发送"); lv_label_set_long_mode(ui->screen_modbus_trx_label_send, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_label_send, 220, 114); lv_obj_set_size(ui->screen_modbus_trx_label_send, 80, 30); //Write style for screen_modbus_trx_label_send, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_label_send, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_label_send, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_label_send, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_label_send, 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_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_label_send, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_label_send, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_label_send, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_label_send, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_label_send, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_modbus_trx_label_send, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_modbus_trx_label_send, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_label_send, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_label_send, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_label_set ui->screen_modbus_trx_label_set = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_label_set, "设置"); lv_label_set_long_mode(ui->screen_modbus_trx_label_set, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_label_set, 120, 114); lv_obj_set_size(ui->screen_modbus_trx_label_set, 80, 30); //Write style for screen_modbus_trx_label_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_label_set, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_label_set, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_label_set, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_label_set, 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_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_label_set, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_label_set, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_label_set, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_label_set, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_label_set, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_modbus_trx_label_set, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_modbus_trx_label_set, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_label_set, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_label_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_label_previous ui->screen_modbus_trx_label_previous = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_label_previous, "上一步"); lv_label_set_long_mode(ui->screen_modbus_trx_label_previous, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_label_previous, 20, 114); lv_obj_set_size(ui->screen_modbus_trx_label_previous, 80, 30); //Write style for screen_modbus_trx_label_previous, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_label_previous, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_label_previous, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_label_previous, lv_color_hex(0x00b6ff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_label_previous, 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_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_label_previous, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_label_previous, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_label_previous, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_label_previous, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_label_previous, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_modbus_trx_label_previous, lv_color_hex(0xCAEEFF), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_modbus_trx_label_previous, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_label_previous, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_label_previous, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_label_Tx ui->screen_modbus_trx_label_Tx = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_label_Tx, "(HEX)Tx:"); lv_label_set_long_mode(ui->screen_modbus_trx_label_Tx, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_label_Tx, 166, 3); lv_obj_set_size(ui->screen_modbus_trx_label_Tx, 85, 18); //Write style for screen_modbus_trx_label_Tx, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_label_Tx, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_label_Tx, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_label_Tx, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_label_Tx, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_label_Tx, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_label_Tx, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_label_Data ui->screen_modbus_trx_label_Data = lv_label_create(ui->screen_modbus_trx); lv_label_set_text(ui->screen_modbus_trx_label_Data, "数据:"); lv_label_set_long_mode(ui->screen_modbus_trx_label_Data, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_label_Data, 3, 3); lv_obj_set_size(ui->screen_modbus_trx_label_Data, 95, 18); //Write style for screen_modbus_trx_label_Data, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_label_Data, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_label_Data, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_label_Data, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_label_Data, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_label_Data, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_label_Data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_window_data ui->screen_modbus_trx_window_data = lv_obj_create(ui->screen_modbus_trx); lv_obj_set_pos(ui->screen_modbus_trx_window_data, 10, 20); lv_obj_set_size(ui->screen_modbus_trx_window_data, 300, 200); lv_obj_set_scrollbar_mode(ui->screen_modbus_trx_window_data, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->screen_modbus_trx_window_data, LV_OBJ_FLAG_HIDDEN); //Write style for screen_modbus_trx_window_data, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_window_data, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_window_data, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_window_data, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_window_data, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_window_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_window_data, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_modbus_trx_window_data, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_modbus_trx_window_data, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_window_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_window_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_window_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_window_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_window_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_37 ui->screen_modbus_trx_num_37 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_37, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_37, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_37, 248, 152); lv_obj_set_size(ui->screen_modbus_trx_num_37, 16, 20); //Write style for screen_modbus_trx_num_37, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_37, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_37, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_37, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_37, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_37, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_37, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_37, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_37, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_37, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_37, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_37, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_36 ui->screen_modbus_trx_num_36 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_36, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_36, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_36, 227, 152); lv_obj_set_size(ui->screen_modbus_trx_num_36, 16, 20); //Write style for screen_modbus_trx_num_36, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_36, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_36, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_36, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_36, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_36, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_36, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_36, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_36, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_36, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_36, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_36, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_35 ui->screen_modbus_trx_num_35 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_35, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_35, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_35, 182, 152); lv_obj_set_size(ui->screen_modbus_trx_num_35, 16, 20); //Write style for screen_modbus_trx_num_35, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_35, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_35, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_35, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_35, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_35, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_35, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_35, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_35, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_35, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_35, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_35, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_34 ui->screen_modbus_trx_num_34 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_34, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_34, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_34, 161, 152); lv_obj_set_size(ui->screen_modbus_trx_num_34, 16, 20); //Write style for screen_modbus_trx_num_34, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_34, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_34, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_34, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_34, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_34, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_34, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_34, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_34, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_34, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_34, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_34, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_33 ui->screen_modbus_trx_num_33 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_33, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_33, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_33, 116, 152); lv_obj_set_size(ui->screen_modbus_trx_num_33, 16, 20); //Write style for screen_modbus_trx_num_33, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_33, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_33, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_33, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_33, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_33, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_33, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_33, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_33, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_33, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_33, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_33, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_32 ui->screen_modbus_trx_num_32 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_32, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_32, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_32, 95, 152); lv_obj_set_size(ui->screen_modbus_trx_num_32, 16, 20); //Write style for screen_modbus_trx_num_32, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_32, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_32, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_32, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_32, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_32, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_32, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_32, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_32, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_32, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_32, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_32, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_31 ui->screen_modbus_trx_num_31 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_31, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_31, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_31, 49, 152); lv_obj_set_size(ui->screen_modbus_trx_num_31, 16, 20); //Write style for screen_modbus_trx_num_31, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_31, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_31, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_31, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_31, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_31, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_31, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_31, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_31, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_31, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_31, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_31, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_30 ui->screen_modbus_trx_num_30 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_30, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_30, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_30, 29, 152); lv_obj_set_size(ui->screen_modbus_trx_num_30, 16, 20); //Write style for screen_modbus_trx_num_30, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_30, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_30, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_30, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_30, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_30, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_30, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_30, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_30, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_30, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_30, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_30, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_27 ui->screen_modbus_trx_num_27 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_27, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_27, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_27, 248, 109); lv_obj_set_size(ui->screen_modbus_trx_num_27, 16, 20); //Write style for screen_modbus_trx_num_27, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_27, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_27, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_27, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_27, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_27, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_27, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_27, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_26 ui->screen_modbus_trx_num_26 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_26, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_26, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_26, 227, 109); lv_obj_set_size(ui->screen_modbus_trx_num_26, 16, 20); //Write style for screen_modbus_trx_num_26, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_26, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_26, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_26, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_26, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_26, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_26, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_26, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_25 ui->screen_modbus_trx_num_25 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_25, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_25, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_25, 182, 109); lv_obj_set_size(ui->screen_modbus_trx_num_25, 16, 20); //Write style for screen_modbus_trx_num_25, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_25, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_25, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_25, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_25, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_25, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_25, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_25, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_25, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_25, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_25, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_24 ui->screen_modbus_trx_num_24 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_24, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_24, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_24, 161, 109); lv_obj_set_size(ui->screen_modbus_trx_num_24, 16, 20); //Write style for screen_modbus_trx_num_24, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_24, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_24, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_24, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_24, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_24, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_24, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_24, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_24, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_24, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_24, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_24, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_23 ui->screen_modbus_trx_num_23 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_23, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_23, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_23, 116, 109); lv_obj_set_size(ui->screen_modbus_trx_num_23, 16, 20); //Write style for screen_modbus_trx_num_23, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_23, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_23, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_23, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_23, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_23, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_23, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_23, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_23, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_23, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_23, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_23, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_22 ui->screen_modbus_trx_num_22 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_22, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_22, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_22, 95, 109); lv_obj_set_size(ui->screen_modbus_trx_num_22, 16, 20); //Write style for screen_modbus_trx_num_22, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_22, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_22, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_22, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_22, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_22, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_22, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_22, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_21 ui->screen_modbus_trx_num_21 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_21, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_21, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_21, 50, 109); lv_obj_set_size(ui->screen_modbus_trx_num_21, 16, 20); //Write style for screen_modbus_trx_num_21, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_21, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_21, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_21, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_21, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_21, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_21, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_21, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_20 ui->screen_modbus_trx_num_20 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_20, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_20, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_20, 29, 109); lv_obj_set_size(ui->screen_modbus_trx_num_20, 16, 20); //Write style for screen_modbus_trx_num_20, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_20, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_20, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_20, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_20, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_20, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_20, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_20, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_17 ui->screen_modbus_trx_num_17 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_17, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_17, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_17, 248, 66); lv_obj_set_size(ui->screen_modbus_trx_num_17, 16, 20); //Write style for screen_modbus_trx_num_17, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_17, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_17, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_17, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_17, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_17, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_17, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_17, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_16 ui->screen_modbus_trx_num_16 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_16, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_16, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_16, 227, 66); lv_obj_set_size(ui->screen_modbus_trx_num_16, 16, 20); //Write style for screen_modbus_trx_num_16, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_16, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_16, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_16, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_16, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_16, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_16, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_16, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_16, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_16, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_16, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_15 ui->screen_modbus_trx_num_15 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_15, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_15, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_15, 182, 66); lv_obj_set_size(ui->screen_modbus_trx_num_15, 16, 20); //Write style for screen_modbus_trx_num_15, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_15, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_15, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_15, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_15, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_15, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_15, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_15, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_15, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_15, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_15, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_14 ui->screen_modbus_trx_num_14 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_14, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_14, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_14, 161, 66); lv_obj_set_size(ui->screen_modbus_trx_num_14, 16, 20); //Write style for screen_modbus_trx_num_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_14, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_14, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_14, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_14, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_14, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_14, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_14, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_13 ui->screen_modbus_trx_num_13 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_13, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_13, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_13, 116, 66); lv_obj_set_size(ui->screen_modbus_trx_num_13, 16, 20); //Write style for screen_modbus_trx_num_13, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_13, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_13, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_13, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_13, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_13, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_13, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_13, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_12 ui->screen_modbus_trx_num_12 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_12, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_12, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_12, 95, 66); lv_obj_set_size(ui->screen_modbus_trx_num_12, 16, 20); //Write style for screen_modbus_trx_num_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_12, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_12, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_12, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_12, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_12, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_12, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_12, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_11 ui->screen_modbus_trx_num_11 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_11, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_11, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_11, 50, 66); lv_obj_set_size(ui->screen_modbus_trx_num_11, 16, 20); //Write style for screen_modbus_trx_num_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_11, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_11, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_11, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_11, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_11, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_11, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_10 ui->screen_modbus_trx_num_10 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_10, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_10, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_10, 29, 66); lv_obj_set_size(ui->screen_modbus_trx_num_10, 16, 20); //Write style for screen_modbus_trx_num_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_10, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_10, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_10, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_10, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_10, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_10, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_07 ui->screen_modbus_trx_num_07 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_07, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_07, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_07, 248, 23); lv_obj_set_size(ui->screen_modbus_trx_num_07, 16, 20); //Write style for screen_modbus_trx_num_07, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_07, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_07, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_07, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_07, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_07, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_07, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_07, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_07, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_07, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_07, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_07, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_06 ui->screen_modbus_trx_num_06 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_06, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_06, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_06, 227, 23); lv_obj_set_size(ui->screen_modbus_trx_num_06, 16, 20); //Write style for screen_modbus_trx_num_06, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_06, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_06, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_06, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_06, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_06, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_06, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_06, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_06, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_06, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_06, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_06, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_05 ui->screen_modbus_trx_num_05 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_05, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_05, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_05, 182, 23); lv_obj_set_size(ui->screen_modbus_trx_num_05, 16, 20); //Write style for screen_modbus_trx_num_05, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_05, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_05, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_05, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_05, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_05, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_05, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_05, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_05, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_05, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_05, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_05, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_04 ui->screen_modbus_trx_num_04 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_04, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_04, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_04, 161, 23); lv_obj_set_size(ui->screen_modbus_trx_num_04, 16, 20); //Write style for screen_modbus_trx_num_04, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_04, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_04, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_04, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_04, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_04, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_04, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_04, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_04, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_04, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_04, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_04, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_03 ui->screen_modbus_trx_num_03 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_03, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_03, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_03, 116, 23); lv_obj_set_size(ui->screen_modbus_trx_num_03, 16, 20); //Write style for screen_modbus_trx_num_03, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_03, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_03, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_03, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_03, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_03, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_03, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_03, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_03, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_03, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_03, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_03, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_02 ui->screen_modbus_trx_num_02 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_02, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_02, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_02, 95, 23); lv_obj_set_size(ui->screen_modbus_trx_num_02, 16, 20); //Write style for screen_modbus_trx_num_02, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_02, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_02, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_02, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_02, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_02, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_02, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_02, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_02, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_02, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_02, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_02, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_01 ui->screen_modbus_trx_num_01 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_01, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_01, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_01, 50, 23); lv_obj_set_size(ui->screen_modbus_trx_num_01, 16, 20); //Write style for screen_modbus_trx_num_01, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_01, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_01, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_01, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_01, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_01, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_01, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_01, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_01, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_01, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_01, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_modbus_trx_num_00 ui->screen_modbus_trx_num_00 = lv_label_create(ui->screen_modbus_trx_window_data); lv_label_set_text(ui->screen_modbus_trx_num_00, "0"); lv_label_set_long_mode(ui->screen_modbus_trx_num_00, LV_LABEL_LONG_WRAP); lv_obj_set_pos(ui->screen_modbus_trx_num_00, 29, 23); lv_obj_set_size(ui->screen_modbus_trx_num_00, 16, 20); //Write style for screen_modbus_trx_num_00, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_modbus_trx_num_00, 3, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_modbus_trx_num_00, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_modbus_trx_num_00, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_modbus_trx_num_00, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_modbus_trx_num_00, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_modbus_trx_num_00, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_modbus_trx_num_00, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_modbus_trx_num_00, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_modbus_trx_num_00, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_modbus_trx_num_00, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_modbus_trx_num_00, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of screen_modbus_trx. //Update current screen layout. lv_obj_update_layout(ui->screen_modbus_trx); }