更新:

1、主界面部分内容从文本组变为标签,解决了字体颜色变化异常的问题;
2、呼吸灯迁移至lvgl刷新任务内,删除串口打印信息;
3、freertos内存:15360->17360,task_LCD:512->1024,taskmenu:512->256;
4、复位与初始化分离,单独创建reset函数;
This commit is contained in:
吴俊潮 2025-03-04 16:34:16 +08:00
parent 0c484b2398
commit 0121a63bba
460 changed files with 33455 additions and 66378 deletions

View File

@ -135,6 +135,7 @@ extern const lv_img_dsc_t * screen_main_animimg_14_imgs[11];
void menu_test5(void); //模拟正式产品,实现基本功能 void menu_test5(void); //模拟正式产品,实现基本功能
void menu_data_init(void); //数据初始化 void menu_data_init(void); //数据初始化
void menu_reset(void); //界面复位
void scr_init_run(void); //开机动画 void scr_init_run(void); //开机动画
void scr_main_run(void); //主界面 void scr_main_run(void); //主界面
void scr_setting_run(void); //详细设置界面 void scr_setting_run(void); //详细设置界面

View File

@ -2,7 +2,7 @@
* @Author: wujunchao wujunchao@wuxismart.com * @Author: wujunchao wujunchao@wuxismart.com
* @Date: 2024-12-27 11:50:56 * @Date: 2024-12-27 11:50:56
* @LastEditors: wujunchao wujunchao@wuxismart.com * @LastEditors: wujunchao wujunchao@wuxismart.com
* @LastEditTime: 2025-03-03 15:58:37 * @LastEditTime: 2025-03-04 16:29:05
* @FilePath: \signal_generator\App\APP_WU\Src\apps_gather.c * @FilePath: \signal_generator\App\APP_WU\Src\apps_gather.c
* @Description: ,`customMade`, koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: ,`customMade`, koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@ -18,27 +18,7 @@ TABVIEW_DATA tabdata;
void menu_data_init(void) void menu_data_init(void)
{ {
//general //general
if(m5data.scr_now != SCREEN_INIT) m5data.scr_now = SCREEN_INIT;
{
//加载初始界面
setup_scr_screen_init(&guider_ui);
lv_scr_load(guider_ui.screen_init);
//释放内存
if(m5data.scr_now == SCREEN_SETTING)
{
guider_ui.screen_setting_del = true;
lv_obj_del(guider_ui.screen_setting);
}
if(m5data.scr_now == SCREEN_MAIN)
{
guider_ui.screen_main_del = true;
lv_obj_del(guider_ui.screen_main);
}
m5data.scr_now = SCREEN_INIT;
}
m5data.tick_prv = -1; m5data.tick_prv = -1;
m5data.tick_cur = -1; m5data.tick_cur = -1;
@ -95,13 +75,38 @@ void menu_data_init(void)
} }
uint8_t menu_reset_flag = 0; uint8_t menu_reset_flag = 0;
void menu_reset(void)
{
//参数复位
menu_data_init();
//界面复位
//加载初始界面
setup_scr_screen_init(&guider_ui);
lv_scr_load(guider_ui.screen_init);
//释放内存
if(m5data.scr_now == SCREEN_SETTING)
{
guider_ui.screen_setting_del = true;
lv_obj_del(guider_ui.screen_setting);
}
if(m5data.scr_now == SCREEN_MAIN)
{
guider_ui.screen_main_del = true;
lv_obj_del(guider_ui.screen_main);
}
}
void menu_test5(void) void menu_test5(void)
{ {
if(menu_reset_flag) if(menu_reset_flag)
{ {
menu_reset_flag = 0; menu_reset_flag = 0;
menu_data_init(); menu_reset();
return; return;
} }
@ -165,37 +170,37 @@ void key_functions_main(void) //按键功能
{ {
case SIG_VOLTAGE: //电压 case SIG_VOLTAGE: //电压
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Volt"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Volt");
} }
break; break;
case SIG_CURRENT: //电流 case SIG_CURRENT: //电流
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Cur"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Cur");
} }
break; break;
case SIG_RESISTANT: //电阻 case SIG_RESISTANT: //电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Res"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Res");
} }
break; break;
case SIG_FREQUENCE: //频率 case SIG_FREQUENCE: //频率
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Fre"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Fre");
} }
break; break;
case SIG_TC: //热电偶 case SIG_TC: //热电偶
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "TC"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Tc");
} }
break; break;
case SIG_RTD: //热电阻 case SIG_RTD: //热电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "RTD"); lv_label_set_text(guider_ui.screen_main_label_Mode, "RTD");
} }
break; break;
@ -452,37 +457,37 @@ void key_functions_main(void) //按键功能
{ {
case SIG_VOLTAGE: //电压 case SIG_VOLTAGE: //电压
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Volt"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Volt");
} }
break; break;
case SIG_CURRENT: //电流 case SIG_CURRENT: //电流
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Cur"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Cur");
} }
break; break;
case SIG_RESISTANT: //电阻 case SIG_RESISTANT: //电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Res"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Res");
} }
break; break;
case SIG_FREQUENCE: //频率 case SIG_FREQUENCE: //频率
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Fre"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Fre");
} }
break; break;
case SIG_TC: //热电偶 case SIG_TC: //热电偶
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "TC"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Tc");
} }
break; break;
case SIG_RTD: //热电阻 case SIG_RTD: //热电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "RTD"); lv_label_set_text(guider_ui.screen_main_label_Mode, "RTD");
} }
break; break;
@ -564,12 +569,12 @@ void key_functions_main(void) //按键功能
if(m5data.io_on2off == IO_ON) if(m5data.io_on2off == IO_ON)
{ {
m5data.io_on2off = IO_OFF; m5data.io_on2off = IO_OFF;
lv_span_set_text(guider_ui.screen_main_spangroup_6_span, "OFF"); lv_label_set_text(guider_ui.screen_main_label_ONOFF, "OFF");
} }
else else
{ {
m5data.io_on2off = IO_ON; m5data.io_on2off = IO_ON;
lv_span_set_text(guider_ui.screen_main_spangroup_6_span, "ON"); lv_label_set_text(guider_ui.screen_main_label_ONOFF, "ON");
} }
io_on2off_status(); //更新状态指示 io_on2off_status(); //更新状态指示
@ -659,13 +664,13 @@ void key_functions_main(void) //按键功能
{ {
case VOLTAGE_MV: case VOLTAGE_MV:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "mV"); lv_label_set_text(guider_ui.screen_main_label_unit, "mV");
} }
break; break;
case VOLTAGE_V: case VOLTAGE_V:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "V"); lv_label_set_text(guider_ui.screen_main_label_unit, "V");
} }
break; break;
@ -715,13 +720,13 @@ void key_functions_main(void) //按键功能
{ {
case VOLTAGE_MV: case VOLTAGE_MV:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "mV"); lv_label_set_text(guider_ui.screen_main_label_unit, "mV");
} }
break; break;
case VOLTAGE_V: case VOLTAGE_V:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "V"); lv_label_set_text(guider_ui.screen_main_label_unit, "V");
} }
break; break;
@ -1141,35 +1146,62 @@ void input_value_show(void)
void io_on2off_status(void) //输入输出、ON&OFF状态指示 void io_on2off_status(void) //输入输出、ON&OFF状态指示
{ {
if(m5data.io_on2off == IO_ON) switch (m5data.io_on2off)
{ {
if(m5data.io_mode == IO_OUTPUT) case IO_ON:
{ {
//输入变回黑色,输出变为绿色 switch (m5data.io_mode)
lv_style_set_text_color(&guider_ui.screen_main_spangroup_2_span->style, lv_color_hex(0x000000)); {
lv_style_set_text_color(&guider_ui.screen_main_spangroup_3_span->style, lv_color_hex(0x06ff00)); case IO_OUTPUT:
{
//输入变回黑色,输出变为绿色
lv_obj_set_style_text_color(guider_ui.screen_main_label_IN, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(guider_ui.screen_main_label_OUT, lv_color_hex(0x06ff00), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case IO_INPUT:
{
//输出变回黑色,输入变为绿色
lv_obj_set_style_text_color(guider_ui.screen_main_label_IN, lv_color_hex(0x06ff00), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(guider_ui.screen_main_label_OUT, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
} }
else break;
case IO_OFF:
{ {
//输出变回黑色,输入变为绿色 switch (m5data.io_mode)
lv_style_set_text_color(&guider_ui.screen_main_spangroup_2_span->style, lv_color_hex(0x06ff00)); {
lv_style_set_text_color(&guider_ui.screen_main_spangroup_3_span->style, lv_color_hex(0x000000)); case IO_OUTPUT:
} {
} //输入变回黑色,输出变为红色
else lv_obj_set_style_text_color(guider_ui.screen_main_label_IN, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
{ lv_obj_set_style_text_color(guider_ui.screen_main_label_OUT, lv_color_hex(0xff0027), LV_PART_MAIN|LV_STATE_DEFAULT);
if(m5data.io_mode == IO_OUTPUT) }
{ break;
//输入变回黑色,输出变为红色
lv_style_set_text_color(&guider_ui.screen_main_spangroup_2_span->style, lv_color_hex(0x000000)); case IO_INPUT:
lv_style_set_text_color(&guider_ui.screen_main_spangroup_3_span->style, lv_color_hex(0xff0027)); {
} //输出变回黑色,输入变为红色
else lv_obj_set_style_text_color(guider_ui.screen_main_label_IN, lv_color_hex(0xff0027), LV_PART_MAIN|LV_STATE_DEFAULT);
{ lv_obj_set_style_text_color(guider_ui.screen_main_label_OUT, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
//输出变回黑色,输入变为红色 }
lv_style_set_text_color(&guider_ui.screen_main_spangroup_2_span->style, lv_color_hex(0xff0027)); break;
lv_style_set_text_color(&guider_ui.screen_main_spangroup_3_span->style, lv_color_hex(0x000000));
default:
break;
}
} }
break;
default:
break;
} }
} }
@ -1356,6 +1388,7 @@ void key_functions_setting(void) //按键功能,详细设置菜单界面
case ITEMS_3: case ITEMS_3:
{ {
tabdata.tab_cursor_inner = 0;
} }
break; break;
@ -1602,19 +1635,18 @@ void scr_main_recover(void) //恢复主界面的各项参数显
{ {
case SIG_VOLTAGE: case SIG_VOLTAGE:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Volt"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Volt");
switch (m5data.output_mode_type) //功能类型切换电压V/mV switch (m5data.output_mode_type) //功能类型切换电压V/mV
{ {
case VOLTAGE_MV: case VOLTAGE_MV:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "mV"); lv_label_set_text(guider_ui.screen_main_label_unit, "mV");
} }
break; break;
case VOLTAGE_V: case VOLTAGE_V:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "V"); lv_label_set_text(guider_ui.screen_main_label_unit, "V");
} }
break; break;
@ -1624,33 +1656,33 @@ void scr_main_recover(void) //恢复主界面的各项参数显
} }
break; break;
case SIG_CURRENT: case SIG_CURRENT: //电流
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Cur"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Cur");
} }
break; break;
case SIG_RESISTANT: case SIG_RESISTANT: //电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Res"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Res");
} }
break; break;
case SIG_FREQUENCE: case SIG_FREQUENCE: //频率
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Fre"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Fre");
} }
break; break;
case SIG_TC: case SIG_TC: //热电偶
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "TC"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Tc");
} }
break; break;
case SIG_RTD: case SIG_RTD: //热电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "RTD"); lv_label_set_text(guider_ui.screen_main_label_Mode, "RTD");
} }
break; break;
@ -1666,19 +1698,18 @@ void scr_main_recover(void) //恢复主界面的各项参数显
{ {
case SIG_VOLTAGE: case SIG_VOLTAGE:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Volt"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Volt");
switch (m5data.input_mode) //功能类型切换电压V/mV
switch (m5data.input_mode_type) //功能类型切换电压V/mV
{ {
case VOLTAGE_MV: case VOLTAGE_MV:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "mV"); lv_label_set_text(guider_ui.screen_main_label_unit, "mV");
} }
break; break;
case VOLTAGE_V: case VOLTAGE_V:
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_4_span, "V"); lv_label_set_text(guider_ui.screen_main_label_unit, "V");
} }
break; break;
@ -1688,33 +1719,33 @@ void scr_main_recover(void) //恢复主界面的各项参数显
} }
break; break;
case SIG_CURRENT: case SIG_CURRENT: //电流
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Cur"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Cur");
} }
break; break;
case SIG_RESISTANT: case SIG_RESISTANT: //电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Res"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Res");
} }
break; break;
case SIG_FREQUENCE: case SIG_FREQUENCE: //频率
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "Fre"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Fre");
} }
break; break;
case SIG_TC: case SIG_TC: //热电偶
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "TC"); lv_label_set_text(guider_ui.screen_main_label_Mode, "Tc");
} }
break; break;
case SIG_RTD: case SIG_RTD: //热电阻
{ {
lv_span_set_text(guider_ui.screen_main_spangroup_5_span, "RTD"); lv_label_set_text(guider_ui.screen_main_label_Mode, "RTD");
} }
break; break;

View File

@ -64,7 +64,7 @@
#define configTICK_RATE_HZ ((TickType_t)1000) #define configTICK_RATE_HZ ((TickType_t)1000)
#define configMAX_PRIORITIES ( 7 ) #define configMAX_PRIORITIES ( 7 )
#define configMINIMAL_STACK_SIZE ((uint16_t)128) #define configMINIMAL_STACK_SIZE ((uint16_t)128)
#define configTOTAL_HEAP_SIZE ((size_t)15360) #define configTOTAL_HEAP_SIZE ((size_t)17360)
#define configMAX_TASK_NAME_LEN ( 16 ) #define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_16_BIT_TICKS 0 #define configUSE_16_BIT_TICKS 0
#define configUSE_MUTEXES 1 #define configUSE_MUTEXES 1

View File

@ -35,7 +35,7 @@
/* Private define ------------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */ /* USER CODE BEGIN PD */
#define LVGL_BREATHE_INTERVAL 5
/* USER CODE END PD */ /* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/
@ -45,6 +45,7 @@
/* Private variables ---------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/
/* USER CODE BEGIN Variables */ /* USER CODE BEGIN Variables */
uint16_t breathe_cnt = 0;
/* USER CODE END Variables */ /* USER CODE END Variables */
osThreadId defaultTaskHandle; osThreadId defaultTaskHandle;
osThreadId task_lcdHandle; osThreadId task_lcdHandle;
@ -128,7 +129,7 @@ void MX_FREERTOS_Init(void) {
defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL); defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
/* definition and creation of task_lcd */ /* definition and creation of task_lcd */
osThreadDef(task_lcd, start_task_lcd, osPriorityBelowNormal, 0, 512); osThreadDef(task_lcd, start_task_lcd, osPriorityBelowNormal, 0, 1024);
task_lcdHandle = osThreadCreate(osThread(task_lcd), NULL); task_lcdHandle = osThreadCreate(osThread(task_lcd), NULL);
/* definition and creation of task_hart */ /* definition and creation of task_hart */
@ -148,7 +149,7 @@ void MX_FREERTOS_Init(void) {
task_mux_analogHandle = osThreadCreate(osThread(task_mux_analog), NULL); task_mux_analogHandle = osThreadCreate(osThread(task_mux_analog), NULL);
/* definition and creation of task_menu */ /* definition and creation of task_menu */
osThreadDef(task_menu, start_menu, osPriorityIdle, 0, 512); osThreadDef(task_menu, start_menu, osPriorityIdle, 0, 256);
task_menuHandle = osThreadCreate(osThread(task_menu), NULL); task_menuHandle = osThreadCreate(osThread(task_menu), NULL);
/* USER CODE BEGIN RTOS_THREADS */ /* USER CODE BEGIN RTOS_THREADS */
@ -199,7 +200,14 @@ void start_task_lcd(void const * argument)
osMutexRelease(mutex_lvglHandle); osMutexRelease(mutex_lvglHandle);
} }
osDelay(5); if(breathe_cnt * LVGL_BREATHE_INTERVAL >= 1000)
{
breathe_cnt = 0;
LED_TOG;
}
breathe_cnt++;
osDelay(LVGL_BREATHE_INTERVAL);
} }
/* USER CODE END start_task_lcd */ /* USER CODE END start_task_lcd */
} }
@ -241,9 +249,6 @@ void start_task_ble(void const * argument)
strcpy((char *)(scom6_ble.tx_buff), "hellow I am ble.\r\n"); strcpy((char *)(scom6_ble.tx_buff), "hellow I am ble.\r\n");
ble_send(&huart6, scom6_ble.tx_buff); ble_send(&huart6, scom6_ble.tx_buff);
usart_printf(&huart3,"Alive");
LED_TOG;
osDelay(1000); osDelay(1000);
} }
/* USER CODE END start_task_ble */ /* USER CODE END start_task_ble */

View File

@ -30,14 +30,6 @@ typedef struct
lv_obj_t *screen_main_spangroup_1; lv_obj_t *screen_main_spangroup_1;
lv_span_t *screen_main_spangroup_1_span; lv_span_t *screen_main_spangroup_1_span;
lv_obj_t *screen_main_animimg_1; lv_obj_t *screen_main_animimg_1;
lv_obj_t *screen_main_spangroup_5;
lv_span_t *screen_main_spangroup_5_span;
lv_obj_t *screen_main_spangroup_4;
lv_span_t *screen_main_spangroup_4_span;
lv_obj_t *screen_main_spangroup_3;
lv_span_t *screen_main_spangroup_3_span;
lv_obj_t *screen_main_spangroup_2;
lv_span_t *screen_main_spangroup_2_span;
lv_obj_t *screen_main_cont_num2; lv_obj_t *screen_main_cont_num2;
lv_obj_t *screen_main_animimg_15; lv_obj_t *screen_main_animimg_15;
lv_obj_t *screen_main_animimg_14; lv_obj_t *screen_main_animimg_14;
@ -56,9 +48,12 @@ typedef struct
lv_obj_t *screen_main_animimg_4; lv_obj_t *screen_main_animimg_4;
lv_obj_t *screen_main_animimg_3; lv_obj_t *screen_main_animimg_3;
lv_obj_t *screen_main_animimg_2; lv_obj_t *screen_main_animimg_2;
lv_obj_t *screen_main_spangroup_6;
lv_span_t *screen_main_spangroup_6_span;
lv_obj_t *screen_main_img_3; lv_obj_t *screen_main_img_3;
lv_obj_t *screen_main_label_IN;
lv_obj_t *screen_main_label_OUT;
lv_obj_t *screen_main_label_ONOFF;
lv_obj_t *screen_main_label_unit;
lv_obj_t *screen_main_label_Mode;
lv_obj_t *screen_setting; lv_obj_t *screen_setting;
bool screen_setting_del; bool screen_setting_del;
lv_obj_t *screen_setting_label_title; lv_obj_t *screen_setting_label_title;
@ -273,7 +268,6 @@ LV_IMG_DECLARE(_triangle_alpha_15x8);
LV_FONT_DECLARE(lv_font_montserratMedium_12) LV_FONT_DECLARE(lv_font_montserratMedium_12)
LV_FONT_DECLARE(lv_font_montserratMedium_16) LV_FONT_DECLARE(lv_font_montserratMedium_16)
LV_FONT_DECLARE(lv_font_montserratMedium_14) LV_FONT_DECLARE(lv_font_montserratMedium_14)
LV_FONT_DECLARE(lv_font_montserratMedium_20)
LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_14) LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_14)
LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_12) LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_12)

File diff suppressed because it is too large Load Diff

View File

@ -40,18 +40,18 @@ void setup_scr_screen_main(lv_ui *ui)
lv_chart_set_zoom_y(ui->screen_main_chart_1, 256); lv_chart_set_zoom_y(ui->screen_main_chart_1, 256);
ui->screen_main_chart_1_0 = lv_chart_add_series(ui->screen_main_chart_1, lv_color_hex(0x00b6ff), LV_CHART_AXIS_PRIMARY_Y); ui->screen_main_chart_1_0 = lv_chart_add_series(ui->screen_main_chart_1, lv_color_hex(0x00b6ff), LV_CHART_AXIS_PRIMARY_Y);
#if LV_USE_FREEMASTER == 0 #if LV_USE_FREEMASTER == 0
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 1); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 20); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 30); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 40); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 5); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 0);
#endif #endif
ui->screen_main_chart_1_1 = lv_chart_add_series(ui->screen_main_chart_1, lv_color_hex(0xf9ff00), LV_CHART_AXIS_PRIMARY_Y); ui->screen_main_chart_1_1 = lv_chart_add_series(ui->screen_main_chart_1, lv_color_hex(0xf9ff00), LV_CHART_AXIS_PRIMARY_Y);
#if LV_USE_FREEMASTER == 0 #if LV_USE_FREEMASTER == 0
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 100); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 75); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 50); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 25); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 0); lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_1, 0);
#endif #endif
lv_obj_set_pos(ui->screen_main_chart_1, 8, 30); lv_obj_set_pos(ui->screen_main_chart_1, 8, 30);
@ -111,129 +111,13 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_1 //Write codes screen_main_animimg_1
ui->screen_main_animimg_1 = lv_animimg_create(ui->screen_main); ui->screen_main_animimg_1 = lv_animimg_create(ui->screen_main);
lv_animimg_set_src(ui->screen_main_animimg_1, (const void **) screen_main_animimg_1_imgs, 6); lv_animimg_set_src(ui->screen_main_animimg_1, (const void **) screen_main_animimg_1_imgs, 6, false);
lv_animimg_set_duration(ui->screen_main_animimg_1, 30*6); lv_animimg_set_duration(ui->screen_main_animimg_1, 30*6);
lv_animimg_set_repeat_count(ui->screen_main_animimg_1, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_1, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_1, screen_main_animimg_1_imgs[0]); lv_img_set_src(ui->screen_main_animimg_1, screen_main_animimg_1_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_1, 280, 0); lv_obj_set_pos(ui->screen_main_animimg_1, 280, 0);
lv_obj_set_size(ui->screen_main_animimg_1, 40, 25); lv_obj_set_size(ui->screen_main_animimg_1, 40, 25);
//Write codes screen_main_spangroup_5
ui->screen_main_spangroup_5 = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_5, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_5, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_5, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_5_span = lv_spangroup_new_span(ui->screen_main_spangroup_5);
lv_span_set_text(ui->screen_main_spangroup_5_span, "Volt");
lv_style_set_text_color(&ui->screen_main_spangroup_5_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_main_spangroup_5_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_5_span->style, &lv_font_montserratMedium_14);
lv_obj_set_pos(ui->screen_main_spangroup_5, 116, 8);
lv_obj_set_size(ui->screen_main_spangroup_5, 42, 18);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_5_main_main_default
static lv_style_t style_screen_main_spangroup_5_main_main_default;
ui_init_style(&style_screen_main_spangroup_5_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_5_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_5_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_5, &style_screen_main_spangroup_5_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_5);
//Write codes screen_main_spangroup_4
ui->screen_main_spangroup_4 = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_4, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_4, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_4, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_4_span = lv_spangroup_new_span(ui->screen_main_spangroup_4);
lv_span_set_text(ui->screen_main_spangroup_4_span, "mv");
lv_style_set_text_color(&ui->screen_main_spangroup_4_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_main_spangroup_4_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_4_span->style, &lv_font_montserratMedium_14);
lv_obj_set_pos(ui->screen_main_spangroup_4, 158, 8);
lv_obj_set_size(ui->screen_main_spangroup_4, 34, 18);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_4_main_main_default
static lv_style_t style_screen_main_spangroup_4_main_main_default;
ui_init_style(&style_screen_main_spangroup_4_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_4_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_4_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_4, &style_screen_main_spangroup_4_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_4);
//Write codes screen_main_spangroup_3
ui->screen_main_spangroup_3 = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_3, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_3, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_3, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_3_span = lv_spangroup_new_span(ui->screen_main_spangroup_3);
lv_span_set_text(ui->screen_main_spangroup_3_span, "OUT");
lv_style_set_text_color(&ui->screen_main_spangroup_3_span->style, lv_color_hex(0xff0027));
lv_style_set_text_decor(&ui->screen_main_spangroup_3_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_3_span->style, &lv_font_montserratMedium_20);
lv_obj_set_pos(ui->screen_main_spangroup_3, 23, 197);
lv_obj_set_size(ui->screen_main_spangroup_3, 53, 18);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_3_main_main_default
static lv_style_t style_screen_main_spangroup_3_main_main_default;
ui_init_style(&style_screen_main_spangroup_3_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_3_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_3_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_3, &style_screen_main_spangroup_3_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_3);
//Write codes screen_main_spangroup_2
ui->screen_main_spangroup_2 = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_2, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_2, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_2, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_2_span = lv_spangroup_new_span(ui->screen_main_spangroup_2);
lv_span_set_text(ui->screen_main_spangroup_2_span, "IN");
lv_style_set_text_color(&ui->screen_main_spangroup_2_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_main_spangroup_2_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_2_span->style, &lv_font_montserratMedium_20);
lv_obj_set_pos(ui->screen_main_spangroup_2, 23, 150);
lv_obj_set_size(ui->screen_main_spangroup_2, 53, 18);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_2_main_main_default
static lv_style_t style_screen_main_spangroup_2_main_main_default;
ui_init_style(&style_screen_main_spangroup_2_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_2_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_2_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_2, &style_screen_main_spangroup_2_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_2);
//Write codes screen_main_cont_num2 //Write codes screen_main_cont_num2
ui->screen_main_cont_num2 = lv_obj_create(ui->screen_main); ui->screen_main_cont_num2 = lv_obj_create(ui->screen_main);
lv_obj_set_pos(ui->screen_main_cont_num2, 100, 150); lv_obj_set_pos(ui->screen_main_cont_num2, 100, 150);
@ -257,7 +141,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_15 //Write codes screen_main_animimg_15
ui->screen_main_animimg_15 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_15 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_15, (const void **) screen_main_animimg_15_imgs, 2); lv_animimg_set_src(ui->screen_main_animimg_15, (const void **) screen_main_animimg_15_imgs, 2, false);
lv_animimg_set_duration(ui->screen_main_animimg_15, 30*2); lv_animimg_set_duration(ui->screen_main_animimg_15, 30*2);
lv_animimg_set_repeat_count(ui->screen_main_animimg_15, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_15, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_15, screen_main_animimg_15_imgs[0]); lv_img_set_src(ui->screen_main_animimg_15, screen_main_animimg_15_imgs[0]);
@ -266,7 +150,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_14 //Write codes screen_main_animimg_14
ui->screen_main_animimg_14 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_14 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_14, (const void **) screen_main_animimg_14_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_14, (const void **) screen_main_animimg_14_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_14, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_14, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_14, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_14, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_14, screen_main_animimg_14_imgs[0]); lv_img_set_src(ui->screen_main_animimg_14, screen_main_animimg_14_imgs[0]);
@ -275,7 +159,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_13 //Write codes screen_main_animimg_13
ui->screen_main_animimg_13 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_13 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_13, (const void **) screen_main_animimg_13_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_13, (const void **) screen_main_animimg_13_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_13, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_13, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_13, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_13, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_13, screen_main_animimg_13_imgs[0]); lv_img_set_src(ui->screen_main_animimg_13, screen_main_animimg_13_imgs[0]);
@ -284,7 +168,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_12 //Write codes screen_main_animimg_12
ui->screen_main_animimg_12 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_12 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_12, (const void **) screen_main_animimg_12_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_12, (const void **) screen_main_animimg_12_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_12, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_12, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_12, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_12, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_12, screen_main_animimg_12_imgs[0]); lv_img_set_src(ui->screen_main_animimg_12, screen_main_animimg_12_imgs[0]);
@ -308,7 +192,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_11 //Write codes screen_main_animimg_11
ui->screen_main_animimg_11 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_11 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_11, (const void **) screen_main_animimg_11_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_11, (const void **) screen_main_animimg_11_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_11, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_11, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_11, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_11, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_11, screen_main_animimg_11_imgs[0]); lv_img_set_src(ui->screen_main_animimg_11, screen_main_animimg_11_imgs[0]);
@ -317,7 +201,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_10 //Write codes screen_main_animimg_10
ui->screen_main_animimg_10 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_10 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_10, (const void **) screen_main_animimg_10_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_10, (const void **) screen_main_animimg_10_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_10, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_10, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_10, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_10, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_10, screen_main_animimg_10_imgs[0]); lv_img_set_src(ui->screen_main_animimg_10, screen_main_animimg_10_imgs[0]);
@ -326,7 +210,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_9 //Write codes screen_main_animimg_9
ui->screen_main_animimg_9 = lv_animimg_create(ui->screen_main_cont_num2); ui->screen_main_animimg_9 = lv_animimg_create(ui->screen_main_cont_num2);
lv_animimg_set_src(ui->screen_main_animimg_9, (const void **) screen_main_animimg_9_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_9, (const void **) screen_main_animimg_9_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_9, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_9, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_9, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_9, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_9, screen_main_animimg_9_imgs[0]); lv_img_set_src(ui->screen_main_animimg_9, screen_main_animimg_9_imgs[0]);
@ -356,7 +240,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_8 //Write codes screen_main_animimg_8
ui->screen_main_animimg_8 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_8 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_8, (const void **) screen_main_animimg_8_imgs, 2); lv_animimg_set_src(ui->screen_main_animimg_8, (const void **) screen_main_animimg_8_imgs, 2, false);
lv_animimg_set_duration(ui->screen_main_animimg_8, 30*2); lv_animimg_set_duration(ui->screen_main_animimg_8, 30*2);
lv_animimg_set_repeat_count(ui->screen_main_animimg_8, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_8, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_8, screen_main_animimg_8_imgs[0]); lv_img_set_src(ui->screen_main_animimg_8, screen_main_animimg_8_imgs[0]);
@ -365,7 +249,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_7 //Write codes screen_main_animimg_7
ui->screen_main_animimg_7 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_7 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_7, (const void **) screen_main_animimg_7_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_7, (const void **) screen_main_animimg_7_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_7, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_7, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_7, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_7, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_7, screen_main_animimg_7_imgs[0]); lv_img_set_src(ui->screen_main_animimg_7, screen_main_animimg_7_imgs[0]);
@ -374,7 +258,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_6 //Write codes screen_main_animimg_6
ui->screen_main_animimg_6 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_6 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_6, (const void **) screen_main_animimg_6_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_6, (const void **) screen_main_animimg_6_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_6, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_6, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_6, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_6, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_6, screen_main_animimg_6_imgs[0]); lv_img_set_src(ui->screen_main_animimg_6, screen_main_animimg_6_imgs[0]);
@ -383,7 +267,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_5 //Write codes screen_main_animimg_5
ui->screen_main_animimg_5 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_5 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_5, (const void **) screen_main_animimg_5_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_5, (const void **) screen_main_animimg_5_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_5, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_5, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_5, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_5, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_5, screen_main_animimg_5_imgs[0]); lv_img_set_src(ui->screen_main_animimg_5, screen_main_animimg_5_imgs[0]);
@ -407,7 +291,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_4 //Write codes screen_main_animimg_4
ui->screen_main_animimg_4 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_4 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_4, (const void **) screen_main_animimg_4_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_4, (const void **) screen_main_animimg_4_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_4, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_4, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_4, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_4, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_4, screen_main_animimg_4_imgs[0]); lv_img_set_src(ui->screen_main_animimg_4, screen_main_animimg_4_imgs[0]);
@ -416,7 +300,7 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_3 //Write codes screen_main_animimg_3
ui->screen_main_animimg_3 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_3 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_3, (const void **) screen_main_animimg_3_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_3, (const void **) screen_main_animimg_3_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_3, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_3, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_3, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_3, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_3, screen_main_animimg_3_imgs[0]); lv_img_set_src(ui->screen_main_animimg_3, screen_main_animimg_3_imgs[0]);
@ -425,42 +309,13 @@ void setup_scr_screen_main(lv_ui *ui)
//Write codes screen_main_animimg_2 //Write codes screen_main_animimg_2
ui->screen_main_animimg_2 = lv_animimg_create(ui->screen_main_cont_num1); ui->screen_main_animimg_2 = lv_animimg_create(ui->screen_main_cont_num1);
lv_animimg_set_src(ui->screen_main_animimg_2, (const void **) screen_main_animimg_2_imgs, 11); lv_animimg_set_src(ui->screen_main_animimg_2, (const void **) screen_main_animimg_2_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_animimg_2, 30*11); lv_animimg_set_duration(ui->screen_main_animimg_2, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_animimg_2, LV_ANIM_REPEAT_INFINITE); lv_animimg_set_repeat_count(ui->screen_main_animimg_2, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_2, screen_main_animimg_2_imgs[0]); lv_img_set_src(ui->screen_main_animimg_2, screen_main_animimg_2_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_2, 29, 0); lv_obj_set_pos(ui->screen_main_animimg_2, 29, 0);
lv_obj_set_size(ui->screen_main_animimg_2, 25, 35); lv_obj_set_size(ui->screen_main_animimg_2, 25, 35);
//Write codes screen_main_spangroup_6
ui->screen_main_spangroup_6 = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_6, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_6, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_6, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_6_span = lv_spangroup_new_span(ui->screen_main_spangroup_6);
lv_span_set_text(ui->screen_main_spangroup_6_span, "OFF");
lv_style_set_text_color(&ui->screen_main_spangroup_6_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_main_spangroup_6_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_6_span->style, &lv_font_montserratMedium_14);
lv_obj_set_pos(ui->screen_main_spangroup_6, 209, 8);
lv_obj_set_size(ui->screen_main_spangroup_6, 34, 18);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_6_main_main_default
static lv_style_t style_screen_main_spangroup_6_main_main_default;
ui_init_style(&style_screen_main_spangroup_6_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_6_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_6_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_6, &style_screen_main_spangroup_6_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_6);
//Write codes screen_main_img_3 //Write codes screen_main_img_3
ui->screen_main_img_3 = lv_img_create(ui->screen_main); ui->screen_main_img_3 = lv_img_create(ui->screen_main);
lv_obj_add_flag(ui->screen_main_img_3, LV_OBJ_FLAG_CLICKABLE); lv_obj_add_flag(ui->screen_main_img_3, LV_OBJ_FLAG_CLICKABLE);
@ -476,6 +331,121 @@ void setup_scr_screen_main(lv_ui *ui)
lv_obj_set_style_radius(ui->screen_main_img_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_img_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_clip_corner(ui->screen_main_img_3, true, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_clip_corner(ui->screen_main_img_3, true, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_label_IN
ui->screen_main_label_IN = lv_label_create(ui->screen_main);
lv_label_set_text(ui->screen_main_label_IN, "IN");
lv_label_set_long_mode(ui->screen_main_label_IN, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_main_label_IN, 23, 160);
lv_obj_set_size(ui->screen_main_label_IN, 45, 20);
//Write style for screen_main_label_IN, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_main_label_IN, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_main_label_IN, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_main_label_IN, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_main_label_IN, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_main_label_IN, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_label_IN, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_label_IN, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_label_OUT
ui->screen_main_label_OUT = lv_label_create(ui->screen_main);
lv_label_set_text(ui->screen_main_label_OUT, "OUT");
lv_label_set_long_mode(ui->screen_main_label_OUT, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_main_label_OUT, 23, 200);
lv_obj_set_size(ui->screen_main_label_OUT, 45, 20);
//Write style for screen_main_label_OUT, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_main_label_OUT, lv_color_hex(0xf00000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_main_label_OUT, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_main_label_OUT, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_main_label_OUT, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_main_label_OUT, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_label_OUT, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_label_ONOFF
ui->screen_main_label_ONOFF = lv_label_create(ui->screen_main);
lv_label_set_text(ui->screen_main_label_ONOFF, "OFF");
lv_label_set_long_mode(ui->screen_main_label_ONOFF, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_main_label_ONOFF, 207, 6);
lv_obj_set_size(ui->screen_main_label_ONOFF, 40, 18);
//Write style for screen_main_label_ONOFF, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_main_label_ONOFF, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_main_label_ONOFF, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_main_label_ONOFF, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_main_label_ONOFF, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_label_ONOFF, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_label_unit
ui->screen_main_label_unit = lv_label_create(ui->screen_main);
lv_label_set_text(ui->screen_main_label_unit, "mV");
lv_label_set_long_mode(ui->screen_main_label_unit, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_main_label_unit, 157, 6);
lv_obj_set_size(ui->screen_main_label_unit, 37, 18);
//Write style for screen_main_label_unit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_main_label_unit, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_main_label_unit, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_main_label_unit, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_main_label_unit, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_label_unit, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_label_Mode
ui->screen_main_label_Mode = lv_label_create(ui->screen_main);
lv_label_set_text(ui->screen_main_label_Mode, "Volt");
lv_label_set_long_mode(ui->screen_main_label_Mode, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_main_label_Mode, 105, 6);
lv_obj_set_size(ui->screen_main_label_Mode, 42, 18);
//Write style for screen_main_label_Mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_main_label_Mode, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_main_label_Mode, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_main_label_Mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_main_label_Mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_label_Mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//The custom code of screen_main. //The custom code of screen_main.

View File

@ -415,6 +415,8 @@ void setup_scr_screen_setting(lv_ui *ui)
lv_obj_set_style_text_line_space(ui->screen_setting_label_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_setting_label_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_setting_label_01, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_setting_label_01, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_setting_label_01, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_setting_label_01, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_setting_label_01, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_setting_label_01, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_setting_label_01, 8, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_setting_label_01, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_setting_label_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_setting_label_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_setting_label_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_setting_label_01, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

View File

@ -183,7 +183,6 @@ const lv_img_dsc_t * screen_main_animimg_7_imgs[11] = {
&screen_main_animimg_2W_MOK_9, &screen_main_animimg_2W_MOK_9,
&screen_main_animimg_2W_MOK_null, &screen_main_animimg_2W_MOK_null,
}; };
const lv_img_dsc_t * screen_main_animimg_6_imgs[11] = { const lv_img_dsc_t * screen_main_animimg_6_imgs[11] = {
&screen_main_animimg_2W_MOK_0, &screen_main_animimg_2W_MOK_0,
&screen_main_animimg_2W_MOK_1, &screen_main_animimg_2W_MOK_1,

View File

@ -64,7 +64,7 @@ lv_obj_t * lv_animimg_create(lv_obj_t * parent)
return obj; return obj;
} }
void lv_animimg_set_src(lv_obj_t * obj, const void * dsc[], uint8_t num) void lv_animimg_set_src(lv_obj_t * obj, const void * dsc[], uint8_t num, uint8_t ex)
{ {
LV_ASSERT_OBJ(obj, MY_CLASS); LV_ASSERT_OBJ(obj, MY_CLASS);
lv_animimg_t * animimg = (lv_animimg_t *)obj; lv_animimg_t * animimg = (lv_animimg_t *)obj;

View File

@ -68,7 +68,7 @@ lv_obj_t * lv_animimg_create(lv_obj_t * parent);
* @param dsc pointer to a series images * @param dsc pointer to a series images
* @param num images' number * @param num images' number
*/ */
void lv_animimg_set_src(lv_obj_t * img, const void * dsc[], uint8_t num); void lv_animimg_set_src(lv_obj_t * img, const void * dsc[], uint8_t num, uint8_t ex);
/** /**
* Startup the image animation. * Startup the image animation.

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -3903,18 +3903,6 @@
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>..\LVGL\myGUI\generated\guider_fonts\lv_font_montserratMedium_20.c</PathWithFileName>
<FilenameWithoutPath>lv_font_montserratMedium_20.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>17</GroupNumber>
<FileNumber>290</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\LVGL\myGUI\generated\guider_fonts\lv_font_SourceHanSerifSC_Regular_12.c</PathWithFileName> <PathWithFileName>..\LVGL\myGUI\generated\guider_fonts\lv_font_SourceHanSerifSC_Regular_12.c</PathWithFileName>
<FilenameWithoutPath>lv_font_SourceHanSerifSC_Regular_12.c</FilenameWithoutPath> <FilenameWithoutPath>lv_font_SourceHanSerifSC_Regular_12.c</FilenameWithoutPath>
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
@ -3922,7 +3910,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>291</FileNumber> <FileNumber>290</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -3934,7 +3922,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>292</FileNumber> <FileNumber>291</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -3946,7 +3934,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>293</FileNumber> <FileNumber>292</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -3958,7 +3946,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>294</FileNumber> <FileNumber>293</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -3970,7 +3958,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>295</FileNumber> <FileNumber>294</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -3982,7 +3970,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>296</FileNumber> <FileNumber>295</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -3994,7 +3982,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>297</FileNumber> <FileNumber>296</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4006,7 +3994,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>298</FileNumber> <FileNumber>297</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4018,7 +4006,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>299</FileNumber> <FileNumber>298</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4030,7 +4018,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>300</FileNumber> <FileNumber>299</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4042,7 +4030,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>301</FileNumber> <FileNumber>300</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4054,7 +4042,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>302</FileNumber> <FileNumber>301</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4066,7 +4054,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>303</FileNumber> <FileNumber>302</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4078,7 +4066,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>304</FileNumber> <FileNumber>303</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4090,7 +4078,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>305</FileNumber> <FileNumber>304</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4102,7 +4090,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>306</FileNumber> <FileNumber>305</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4114,7 +4102,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>307</FileNumber> <FileNumber>306</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4126,7 +4114,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>308</FileNumber> <FileNumber>307</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4138,7 +4126,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>309</FileNumber> <FileNumber>308</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4150,7 +4138,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>310</FileNumber> <FileNumber>309</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4162,7 +4150,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>311</FileNumber> <FileNumber>310</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4174,7 +4162,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>312</FileNumber> <FileNumber>311</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -4186,7 +4174,7 @@
</File> </File>
<File> <File>
<GroupNumber>17</GroupNumber> <GroupNumber>17</GroupNumber>
<FileNumber>313</FileNumber> <FileNumber>312</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>

View File

@ -2619,11 +2619,6 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\LVGL\myGUI\generated\guider_fonts\lv_font_montserratMedium_16.c</FilePath> <FilePath>..\LVGL\myGUI\generated\guider_fonts\lv_font_montserratMedium_16.c</FilePath>
</File> </File>
<File>
<FileName>lv_font_montserratMedium_20.c</FileName>
<FileType>1</FileType>
<FilePath>..\LVGL\myGUI\generated\guider_fonts\lv_font_montserratMedium_20.c</FilePath>
</File>
<File> <File>
<FileName>lv_font_SourceHanSerifSC_Regular_12.c</FileName> <FileName>lv_font_SourceHanSerifSC_Regular_12.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More