更新:

1、modbus收发界面,数据设置弹窗:选择、焦点、修改;
2、设置文本和设置底色的接口函数在传参的时候使用的数据类型不一样,设置底色无法使用循环,但是设置文本可以;
This commit is contained in:
吴俊潮 2025-05-27 18:24:16 +08:00
parent c01717daac
commit 6f36d2609e
9 changed files with 17049 additions and 20249 deletions

View File

@ -25,15 +25,37 @@ typedef enum
MOD_TRX_NONE
}MOD_TRX_ITEMS;
//Modbus配置界面设置右列数值底色
void config_items_set_color(MOD_CONF_ITEMS cur, uint32_t color);
//Modbus配置界面选中右列值
void config_items_check(MOD_CONF_ITEMS cur, MOD_CONF_ITEMS cur_prv);
//Modbus配置界面弹窗选中cur熄灭cur_prv
void window_num_check(uint8_t cur, uint8_t cur_prv);
//Modbus配置界面弹窗设定显示内容
void window_num_set(uint8_t pos, uint8_t num);
//Modbus配置界面更新弹窗内容
void window_display(void);
//Modbus配置界面弹窗内容转化为数值
void window2value(void);
//Modbus收发界面设置选项底色
void trx_items_set_color(MOD_TRX_ITEMS cur, uint32_t color);
//Modbus收发界面设置data中32个数字的底色
void set_trx_num_color(uint8_t cur, uint32_t color);
//Modbus收发界面选中选项
void trx_items_check(MOD_TRX_ITEMS cur, MOD_TRX_ITEMS cur_prv);
//Modbus收发界面弹窗选中数字
void window_trx_check(uint8_t cur, uint8_t cur_prv);
//按键功能
void key_functions_modbus(void);
//切换至modbus配置界面后对显示内容进行调整语言、默认值
@ -42,8 +64,12 @@ void scr_modbus_config_recover(void);
//切换至trx收发界面后游标复位清空数据、tx、rx内容
void scr_modbus_trx_recover(void);
//任务循环中反复执行的功能
void screen_modbus_trx_run(void);
//打开trx弹窗后初始化显示内容
void window_trx_init(void);
extern uint8_t com_switch_cursor;
extern uint8_t com_switch_cursor_prv;
extern uint8_t trx_focus;
@ -53,6 +79,7 @@ extern uint8_t config_focus;
extern MOD_TRX_ITEMS mod_mas_trx_cursor;
extern MOD_TRX_ITEMS mod_mas_trx_cursor_prv;
extern uint8_t trx_focus;
extern lv_obj_t *window_trx_nums[32];

View File

@ -3,17 +3,12 @@
#include "apps_gather.h"
//选中cur熄灭cur_prv
void window_num_check(uint8_t cur, uint8_t cur_prv);
void window_num_set(uint8_t pos, uint8_t num);
void value2window(void);
void window2value(void);
//Modbus配置界面弹窗内部游标移动
void cursor_move(int8_t step);
void window_display(void);
extern uint8_t window_trx_focus;
extern uint8_t window_num[4];
extern uint8_t window_cursor;
extern uint8_t window_cursor_prv;
#endif

View File

@ -1,5 +1,7 @@
#include "app_screen_modbus.h"
lv_obj_t *window_trx_nums[32];
//modbus配置项的游标
MOD_CONF_ITEMS mod_mas_conf_cursor = MOD_CONF_SLAVE_ID;
MOD_CONF_ITEMS mod_mas_conf_cursor_prv = MOD_CONF_NONE;
@ -86,6 +88,263 @@ void config_items_check(MOD_CONF_ITEMS cur, MOD_CONF_ITEMS cur_prv)
config_items_set_color(cur_prv, COLOR_ITEMS_UNCHECKED);
}
void window_num_check(uint8_t cur, uint8_t cur_prv)
{
switch (cur)
{
case 0:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_0, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 1:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_1, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 2:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_2, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 3:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_3, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
switch (cur_prv)
{
case 0:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_0, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 1:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_1, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 2:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_2, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 3:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_3, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
}
void window_num_set(uint8_t pos, uint8_t num)
{
char str_temp[8] = {0};
if( num < 16 )
{
sprintf(str_temp, "%x", num);
}
else if (num == 20)
{
strcpy(str_temp, "0");
}
else if (num == 21)
{
strcpy(str_temp, "x");
}
else
{
strcpy(str_temp, "-");
}
switch (pos)
{
case 0:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_0, str_temp);
}
break;
case 1:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_1, str_temp);
}
break;
case 2:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_2, str_temp);
}
break;
case 3:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_3, str_temp);
}
break;
default:
break;
}
}
void window_display(void)
{
switch (mod_mas_conf_cursor)
{
case MOD_CONF_SLAVE_ID:
{
//前两位显示“0x”游标从2开始2-3
window_num[0] = 20;
window_num[1] = 21;
window_num[2] = mod_master.target_id >> 4;
window_num[3] = mod_master.target_id & 0x0F;
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 2;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
case MOD_CONF_START_ADDRESS:
{
//游标从0开始0-3
window_num[0] = 0x000F & (mod_master.start_address >> 12);
window_num[1] = 0x000F & (mod_master.start_address >> 8);
window_num[2] = 0x000F & (mod_master.start_address >> 4);
window_num[3] = 0x000F & (mod_master.start_address );
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 0;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
case MOD_CONF_COMMAND:
{
//前两位显示“0x”游标从2开始2-3
window_num[0] = 20;
window_num[1] = 21;
window_num[2] = mod_master.command_code >> 4;
window_num[3] = mod_master.command_code & 0x0F;
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 2;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
case MOD_CONF_REGISTER_NUM:
{
//第一位显示“0”游标从1开始1-3
window_num[0] = 0;
window_num[1] = mod_master.register_num / 100;
window_num[2] = (mod_master.register_num / 10) % 10;
window_num[3] = mod_master.register_num % 10;
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 1;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
default:
break;
}
}
void window2value(void)
{
char str_temp[16];
switch (mod_mas_conf_cursor)
{
case MOD_CONF_SLAVE_ID:
{
mod_master.target_id = window_num[2] & 0x0F;
mod_master.target_id <<= 4;
mod_master.target_id += window_num[3] & 0x0F;
sprintf(str_temp, "0x%02x", mod_master.target_id);
lv_label_set_text(guider_ui.screen_modbus_config_value_device_addr, str_temp);
}
break;
case MOD_CONF_START_ADDRESS:
{
mod_master.start_address = window_num[0] & 0x0F;
mod_master.start_address <<= 4;
mod_master.start_address += window_num[1] & 0x0F;
mod_master.start_address <<= 4;
mod_master.start_address += window_num[2] & 0x0F;
mod_master.start_address <<= 4;
mod_master.start_address += window_num[3] & 0x0F;
sprintf(str_temp, "0x%04x", mod_master.start_address);
lv_label_set_text(guider_ui.screen_modbus_config_value_start_addr, str_temp);
}
break;
case MOD_CONF_COMMAND:
{
mod_master.command_code= window_num[2];
mod_master.command_code <<= 4;
mod_master.command_code += window_num[3];
sprintf(str_temp, "0x%02x", mod_master.command_code);
lv_label_set_text(guider_ui.screen_modbus_config_value_cmd, str_temp);
}
break;
case MOD_CONF_REGISTER_NUM:
{
mod_master.register_num = window_num[1]*100 + window_num[2]*10 + window_num[3];
sprintf(str_temp, "%d", mod_master.register_num);
lv_label_set_text(guider_ui.screen_modbus_config_value_register_num, str_temp);
}
break;
default:
break;
}
}
void trx_items_set_color(MOD_TRX_ITEMS cur, uint32_t color)
{
switch (cur)
@ -138,7 +397,206 @@ void trx_items_check(MOD_TRX_ITEMS cur, MOD_TRX_ITEMS cur_prv)
trx_items_set_color(cur_prv, COLOR_ITEMS_UNCHECKED);
}
//打开trx弹窗后初始化显示内容
uint8_t lv_obj2nums_init_flag = 0;
void window_trx_init(void)
{
if( !lv_obj2nums_init_flag )
{
lv_obj2nums_init_flag = 1;
window_trx_nums[0] = guider_ui.screen_modbus_trx_num_00;
window_trx_nums[1] = guider_ui.screen_modbus_trx_num_01;
window_trx_nums[2] = guider_ui.screen_modbus_trx_num_02;
window_trx_nums[3] = guider_ui.screen_modbus_trx_num_03;
window_trx_nums[4] = guider_ui.screen_modbus_trx_num_04;
window_trx_nums[5] = guider_ui.screen_modbus_trx_num_05;
window_trx_nums[6] = guider_ui.screen_modbus_trx_num_06;
window_trx_nums[7] = guider_ui.screen_modbus_trx_num_07;
window_trx_nums[8] = guider_ui.screen_modbus_trx_num_10;
window_trx_nums[9] = guider_ui.screen_modbus_trx_num_11;
window_trx_nums[10] = guider_ui.screen_modbus_trx_num_12;
window_trx_nums[11] = guider_ui.screen_modbus_trx_num_13;
window_trx_nums[12] = guider_ui.screen_modbus_trx_num_14;
window_trx_nums[13] = guider_ui.screen_modbus_trx_num_15;
window_trx_nums[14] = guider_ui.screen_modbus_trx_num_16;
window_trx_nums[15] = guider_ui.screen_modbus_trx_num_17;
window_trx_nums[16] = guider_ui.screen_modbus_trx_num_20;
window_trx_nums[17] = guider_ui.screen_modbus_trx_num_21;
window_trx_nums[18] = guider_ui.screen_modbus_trx_num_22;
window_trx_nums[19] = guider_ui.screen_modbus_trx_num_23;
window_trx_nums[20] = guider_ui.screen_modbus_trx_num_24;
window_trx_nums[21] = guider_ui.screen_modbus_trx_num_25;
window_trx_nums[22] = guider_ui.screen_modbus_trx_num_26;
window_trx_nums[23] = guider_ui.screen_modbus_trx_num_27;
window_trx_nums[24] = guider_ui.screen_modbus_trx_num_30;
window_trx_nums[25] = guider_ui.screen_modbus_trx_num_31;
window_trx_nums[26] = guider_ui.screen_modbus_trx_num_32;
window_trx_nums[27] = guider_ui.screen_modbus_trx_num_33;
window_trx_nums[28] = guider_ui.screen_modbus_trx_num_34;
window_trx_nums[29] = guider_ui.screen_modbus_trx_num_35;
window_trx_nums[30] = guider_ui.screen_modbus_trx_num_36;
window_trx_nums[31] = guider_ui.screen_modbus_trx_num_37;
}
for(uint8_t i = 0; i < 32; i++)
{
lv_label_set_text(window_trx_nums[i], "-");
}
}
void set_trx_num_color(uint8_t cur, uint32_t color)
{
//设备底色的接口函数数据类型不一样用window_trx_nums[i]循环会进入硬件错误中断
switch (cur)
{
case 0:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_00, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 1:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_01, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 2:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_02, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 3:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_03, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 4:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_04, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 5:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_05, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 6:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_06, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 7:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_07, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 8:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_10, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 9:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_11, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 10:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_12, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 11:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_13, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 12:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_14, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 13:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_15, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 14:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_16, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 15:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_17, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 16:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_20, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 17:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_21, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 18:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_22, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 19:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_23, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 20:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_24, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 21:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_25, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 22:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_26, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 23:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_27, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 24:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_30, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 25:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_31, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 26:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_32, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 27:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_33, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 28:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_34, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 29:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_35, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 30:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_36, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
case 31:
lv_obj_set_style_bg_color(guider_ui.screen_modbus_trx_num_37, lv_color_hex(color), LV_PART_MAIN|LV_STATE_DEFAULT);
break;
default:
break;
}
}
void window_trx_check(uint8_t cur, uint8_t cur_prv)
{
if(window_trx_focus == 1)
{
set_trx_num_color(cur, COLOR_CONTENTS_FOCUSED);
}
else
{
set_trx_num_color(cur, COLOR_CONTENTS_CHECKED);
}
set_trx_num_color(cur_prv, COLOR_CONTENTS_UNCHECKED);
}
void scr_modbus_config_recover(void)
{

View File

@ -272,17 +272,55 @@ void key_config_update(OPERATIONS ope)
}
break;
case MODBUS_MASTER_TRX:
case MODBUS_MASTER_CONFIG_MODIFY:
{
//使能左、右、确认OK、返回
//使能上、下、左、右、确认OK、返回
key_config(KEY_UP, KEY_STATUS_ENABLE);
key_config(KEY_DOWN, KEY_STATUS_ENABLE);
key_config(KEY_LEFT, KEY_STATUS_ENABLE);
key_config(KEY_RIGHT, KEY_STATUS_ENABLE);
key_config(KEY_OK, KEY_STATUS_ENABLE);
key_config(KEY_BACK, KEY_STATUS_ENABLE);
//不使能其他按键
key_config(KEY_IN, KEY_STATUS_DISABLE);
key_config(KEY_OUT, KEY_STATUS_DISABLE);
key_config(KEY_SOURCE, KEY_STATUS_DISABLE);
key_config(KEY_MENU, KEY_STATUS_DISABLE);
key_config(KEY_SWITCH, KEY_STATUS_DISABLE);
}
break;
case MODBUS_MASTER_TRX:
{
//使能上、下、左、右、确认OK、返回
key_config(KEY_UP, KEY_STATUS_ENABLE);
key_config(KEY_DOWN, KEY_STATUS_ENABLE);
key_config(KEY_LEFT, KEY_STATUS_ENABLE);
key_config(KEY_RIGHT, KEY_STATUS_ENABLE);
key_config(KEY_OK, KEY_STATUS_ENABLE);
key_config(KEY_BACK, KEY_STATUS_ENABLE);
//不使能其他按键
key_config(KEY_IN, KEY_STATUS_DISABLE);
key_config(KEY_OUT, KEY_STATUS_DISABLE);
key_config(KEY_SOURCE, KEY_STATUS_DISABLE);
key_config(KEY_MENU, KEY_STATUS_DISABLE);
key_config(KEY_SWITCH, KEY_STATUS_DISABLE);
}
break;
case MODBUS_MASTER_TRX_MODIFY:
{
//使能上、下、左、右、确认OK、返回
key_config(KEY_UP, KEY_STATUS_ENABLE);
key_config(KEY_DOWN, KEY_STATUS_ENABLE);
key_config(KEY_LEFT, KEY_STATUS_ENABLE);
key_config(KEY_RIGHT, KEY_STATUS_ENABLE);
key_config(KEY_OK, KEY_STATUS_ENABLE);
key_config(KEY_BACK, KEY_STATUS_ENABLE);
//不使能其他按键
key_config(KEY_UP, KEY_STATUS_DISABLE);
key_config(KEY_DOWN, KEY_STATUS_DISABLE);
key_config(KEY_IN, KEY_STATUS_DISABLE);
key_config(KEY_OUT, KEY_STATUS_DISABLE);
key_config(KEY_SOURCE, KEY_STATUS_DISABLE);

View File

@ -3,70 +3,12 @@
uint8_t mod_trx_set_flag = 0; //trx的屏幕是否加载过
uint8_t window_cursor = 0; //弹窗游标位置
uint8_t window_cursor_prv = 0;
uint8_t window_num[4] = {0}; //窗口内的四个数字
uint8_t window_num[4] = {0}; //配置窗口内的四个数字
void window_num_check(uint8_t cur, uint8_t cur_prv)
{
switch (cur)
{
case 0:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_0, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 1:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_1, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 2:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_2, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 3:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_3, lv_color_hex(COLOR_CONTENTS_CHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
switch (cur_prv)
{
case 0:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_0, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 1:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_1, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 2:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_2, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 3:
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_num_3, lv_color_hex(COLOR_CONTENTS_UNCHECKED), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
}
uint8_t window_trx_num[32] = {0}; //收发界面data窗口内的32个数字
uint8_t window_trx_cursor = 0;
uint8_t window_trx_cursor_prv = 0;
uint8_t window_trx_focus = 0; //收发界面data窗口内的焦点
void cursor_move(int8_t step)
{
@ -123,208 +65,12 @@ void cursor_move(int8_t step)
window_num_check(window_cursor, window_cursor_prv);
}
void window_num_set(uint8_t pos, uint8_t num)
{
char str_temp[8] = {0};
if( num <= 16 )
{
sprintf(str_temp, "%x", num);
}
else if (num == 20)
{
strcpy(str_temp, "0");
}
else if (num == 21)
{
strcpy(str_temp, "x");
}
else
{
strcpy(str_temp, "-");
}
switch (pos)
{
case 0:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_0, str_temp);
}
break;
case 1:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_1, str_temp);
}
break;
case 2:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_2, str_temp);
}
break;
case 3:
{
lv_label_set_text(guider_ui.screen_modbus_config_num_3, str_temp);
}
break;
default:
break;
}
}
void value2window(void)
{}
void window2value(void)
{
char str_temp[16];
switch (mod_mas_conf_cursor)
{
case MOD_CONF_SLAVE_ID:
{
mod_master.target_id = window_num[2] & 0x0F;
mod_master.target_id <<= 4;
mod_master.target_id += window_num[3] & 0x0F;
sprintf(str_temp, "0x%02x", mod_master.target_id);
lv_label_set_text(guider_ui.screen_modbus_config_value_device_addr, str_temp);
}
break;
case MOD_CONF_START_ADDRESS:
{
mod_master.start_address = window_num[0] & 0x0F;
mod_master.start_address <<= 4;
mod_master.start_address += window_num[1] & 0x0F;
mod_master.start_address <<= 4;
mod_master.start_address += window_num[2] & 0x0F;
mod_master.start_address <<= 4;
mod_master.start_address += window_num[3] & 0x0F;
sprintf(str_temp, "0x%04x", mod_master.start_address);
lv_label_set_text(guider_ui.screen_modbus_config_value_start_addr, str_temp);
}
break;
case MOD_CONF_COMMAND:
{
mod_master.command_code= window_num[2];
mod_master.command_code <<= 4;
mod_master.command_code += window_num[3];
sprintf(str_temp, "0x%02x", mod_master.command_code);
lv_label_set_text(guider_ui.screen_modbus_config_value_cmd, str_temp);
}
break;
case MOD_CONF_REGISTER_NUM:
{
mod_master.register_num = window_num[1]*100 + window_num[2]*10 + window_num[3];
sprintf(str_temp, "%d", mod_master.register_num);
lv_label_set_text(guider_ui.screen_modbus_config_value_register_num, str_temp);
}
break;
default:
break;
}
}
void window_display(void)
{
switch (mod_mas_conf_cursor)
{
case MOD_CONF_SLAVE_ID:
{
//前两位显示“0x”游标从2开始2-3
window_num[0] = 20;
window_num[1] = 21;
window_num[2] = mod_master.target_id >> 4;
window_num[3] = mod_master.target_id & 0x0F;
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 2;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
case MOD_CONF_START_ADDRESS:
{
//游标从0开始0-3
window_num[0] = 0x000F & (mod_master.start_address >> 12);
window_num[1] = 0x000F & (mod_master.start_address >> 8);
window_num[2] = 0x000F & (mod_master.start_address >> 4);
window_num[3] = 0x000F & (mod_master.start_address );
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 0;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
case MOD_CONF_COMMAND:
{
//前两位显示“0x”游标从2开始2-3
window_num[0] = 20;
window_num[1] = 21;
window_num[2] = mod_master.command_code >> 4;
window_num[3] = mod_master.command_code & 0x0F;
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 2;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
case MOD_CONF_REGISTER_NUM:
{
//第一位显示“0”游标从1开始1-3
window_num[0] = 0;
window_num[1] = mod_master.register_num / 100;
window_num[2] = (mod_master.register_num / 10) % 10;
window_num[3] = mod_master.register_num % 10;
for(uint8_t i = 0; i < 4; i++)
{
window_num_set(i, window_num[i]);
}
window_cursor = 1;
window_cursor_prv = 99;
window_num_check(window_cursor, window_cursor_prv);
lv_obj_clear_flag(guider_ui.screen_modbus_config_window_config, LV_OBJ_FLAG_HIDDEN);
}
break;
default:
break;
}
}
void key_functions_modbus(void)
{
if( key_pv.status == KEY_STATUS_DISABLE ) return;
uint8_t calculate_temp = 0; //临时变量,替代枚举变量进行计算
char str_temp[16];
switch (key_pv.tag)
{
@ -386,7 +132,31 @@ void key_functions_modbus(void)
break;
case MODBUS_MASTER_TRX_MODIFY:
{}
{
if(window_trx_focus == 0)
{
window_trx_cursor_prv = window_trx_cursor;
window_trx_cursor -= 8;
if( window_trx_cursor > 200 ) window_trx_cursor += 32;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
}
else
{
window_trx_num[window_trx_cursor] += 1;
if(window_trx_num[window_trx_cursor] > 16) window_trx_num[window_trx_cursor] = 0;
if(window_trx_num[window_trx_cursor] != 16)
{
sprintf(str_temp, "%x", window_trx_num[window_trx_cursor]);
lv_label_set_text(window_trx_nums[window_trx_cursor], str_temp);
}
else
{
lv_label_set_text(window_trx_nums[window_trx_cursor], "-");
}
}
}
break;
default:
@ -453,7 +223,31 @@ void key_functions_modbus(void)
break;
case MODBUS_MASTER_TRX_MODIFY:
{}
{
if(window_trx_focus == 0)
{
window_trx_cursor_prv = window_trx_cursor;
window_trx_cursor += 8;
if( window_trx_cursor > 31 ) window_trx_cursor -= 32;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
}
else
{
window_trx_num[window_trx_cursor] -= 1;
if(window_trx_num[window_trx_cursor] >= 200) window_trx_num[window_trx_cursor] = 16;
if(window_trx_num[window_trx_cursor] != 16)
{
sprintf(str_temp, "%x", window_trx_num[window_trx_cursor]);
lv_label_set_text(window_trx_nums[window_trx_cursor], str_temp);
}
else
{
lv_label_set_text(window_trx_nums[window_trx_cursor], "-");
}
}
}
break;
default:
@ -509,8 +303,6 @@ void key_functions_modbus(void)
case MOD_CONF_BYTES:
{
char str_temp[16];
mod_master.byte_num -= 1;
if( mod_master.byte_num > 200) mod_master.byte_num = 16;
@ -521,8 +313,6 @@ void key_functions_modbus(void)
case MOD_CONF_TIMEOUT:
{
char str_temp[16];
mod_master.timeout -= 100;
if( mod_master.timeout > 60000) mod_master.timeout = 10000;
@ -555,7 +345,16 @@ void key_functions_modbus(void)
break;
case MODBUS_MASTER_TRX_MODIFY:
{}
{
if(window_trx_focus == 0)
{
window_trx_cursor_prv = window_trx_cursor;
window_trx_cursor -= 1;
if( window_trx_cursor > 200 ) window_trx_cursor = 31;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
}
}
break;
default:
@ -611,8 +410,6 @@ void key_functions_modbus(void)
case MOD_CONF_BYTES:
{
char str_temp[16];
mod_master.byte_num += 1;
if( mod_master.byte_num > 16) mod_master.byte_num = 0;
@ -623,8 +420,6 @@ void key_functions_modbus(void)
case MOD_CONF_TIMEOUT:
{
char str_temp[16];
mod_master.timeout += 100;
if( mod_master.timeout > 10000) mod_master.timeout = 0;
@ -656,7 +451,16 @@ void key_functions_modbus(void)
break;
case MODBUS_MASTER_TRX_MODIFY:
{}
{
if(window_trx_focus == 0)
{
window_trx_cursor_prv = window_trx_cursor;
window_trx_cursor += 1;
if( window_trx_cursor > 31 ) window_trx_cursor = 0;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
}
}
break;
default:
@ -680,6 +484,7 @@ void key_functions_modbus(void)
{
window_display();
current_operation = MODBUS_MASTER_CONFIG_MODIFY;
key_config_update(current_operation);
}
break;
@ -687,6 +492,7 @@ void key_functions_modbus(void)
{
window_display();
current_operation = MODBUS_MASTER_CONFIG_MODIFY;
key_config_update(current_operation);
}
break;
@ -694,6 +500,7 @@ void key_functions_modbus(void)
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_value_bytes, lv_color_hex(COLOR_CONTENTS_FOCUSED), LV_PART_MAIN|LV_STATE_DEFAULT);
current_operation = MODBUS_MASTER_CONFIG_MODIFY;
key_config_update(current_operation);
}
break;
@ -701,6 +508,7 @@ void key_functions_modbus(void)
{
lv_obj_set_style_bg_color(guider_ui.screen_modbus_config_value_timeout, lv_color_hex(COLOR_CONTENTS_FOCUSED), LV_PART_MAIN|LV_STATE_DEFAULT);
current_operation = MODBUS_MASTER_CONFIG_MODIFY;
key_config_update(current_operation);
}
break;
@ -708,6 +516,7 @@ void key_functions_modbus(void)
{
window_display();
current_operation = MODBUS_MASTER_CONFIG_MODIFY;
key_config_update(current_operation);
}
break;
@ -715,6 +524,7 @@ void key_functions_modbus(void)
{
window_display();
current_operation = MODBUS_MASTER_CONFIG_MODIFY;
key_config_update(current_operation);
}
break;
@ -742,6 +552,7 @@ void key_functions_modbus(void)
config_items_check(MOD_CONF_NONE, mod_mas_conf_cursor);
current_operation = MODBUS_MASTER_TRX;
key_config_update(current_operation);
}
break;
@ -766,6 +577,17 @@ void key_functions_modbus(void)
{
case MOD_TRX_DATA:
{
lv_obj_clear_flag(guider_ui.screen_modbus_trx_window_data, LV_OBJ_FLAG_HIDDEN);
window_trx_cursor = 0;
window_trx_cursor_prv = 99;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
memset(window_trx_num, 16, sizeof(window_trx_num));
window_trx_init();
current_operation = MODBUS_MASTER_TRX_MODIFY;
key_config_update(current_operation);
}
break;
@ -823,7 +645,7 @@ void key_functions_modbus(void)
case MOD_TRX_SEND:
{
trx_focus = 1;
window_trx_focus = 1;
trx_items_check(mod_mas_trx_cursor, MOD_TRX_NONE);
modbus_rtu_master_send();
@ -838,7 +660,10 @@ void key_functions_modbus(void)
break;
case MODBUS_MASTER_TRX_MODIFY:
{}
{
window_trx_focus = 1;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
}
break;
default:
@ -934,6 +759,7 @@ void key_functions_modbus(void)
}
current_operation = MODBUS_MASTER_CONFIG;
key_config_update(current_operation);
}
break;
@ -953,11 +779,29 @@ void key_functions_modbus(void)
trx_items_check(MOD_TRX_NONE, mod_mas_trx_cursor);
current_operation = MODBUS_MASTER_CONFIG;
key_config_update(current_operation);
}
break;
case MODBUS_MASTER_TRX_MODIFY:
{}
{
if(window_trx_focus == 1)
{
window_trx_focus = 0;
window_trx_check(window_trx_cursor, window_trx_cursor_prv);
}
else
{
lv_obj_add_flag(guider_ui.screen_modbus_trx_window_data, LV_OBJ_FLAG_HIDDEN);
window_trx_check(99, window_trx_cursor);
window_trx_cursor = 0;
window_trx_cursor_prv = 99;
current_operation = MODBUS_MASTER_TRX;
key_config_update(current_operation);
}
}
break;
default:

View File

@ -302,7 +302,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -328,7 +328,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -354,7 +354,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -380,7 +380,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -406,7 +406,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -432,7 +432,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -458,7 +458,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -484,7 +484,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -510,7 +510,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -536,7 +536,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -562,7 +562,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -588,7 +588,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -614,7 +614,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -640,7 +640,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -666,7 +666,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -692,7 +692,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -718,7 +718,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -744,7 +744,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -770,7 +770,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -796,7 +796,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -822,7 +822,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -848,7 +848,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -874,7 +874,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -900,7 +900,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -926,7 +926,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -952,7 +952,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -978,7 +978,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -1004,7 +1004,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -1030,7 +1030,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -1056,7 +1056,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -1082,7 +1082,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);
@ -1108,7 +1108,7 @@ void setup_scr_screen_modbus_trx(lv_ui *ui)
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, 0, 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);

File diff suppressed because one or more lines are too long

View File

@ -255,6 +255,16 @@
<WinNumber>1</WinNumber>
<ItemText>HoldReg</ItemText>
</Ww>
<Ww>
<count>20</count>
<WinNumber>1</WinNumber>
<ItemText>window_trx_focus,0x0A</ItemText>
</Ww>
<Ww>
<count>21</count>
<WinNumber>1</WinNumber>
<ItemText>window_trx_cursor,0x0A</ItemText>
</Ww>
</WatchWindow1>
<WatchWindow2>
<Ww>

File diff suppressed because it is too large Load Diff