sggt/LVGL/myGUI/generated/setup_scr_screen_main.c

474 lines
32 KiB
C

/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/
#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"
void setup_scr_screen_main(lv_ui *ui)
{
//Write codes screen_main
ui->screen_main = lv_obj_create(NULL);
lv_obj_set_size(ui->screen_main, 320, 240);
lv_obj_set_scrollbar_mode(ui->screen_main, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_main, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_main, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_chart_1
ui->screen_main_chart_1 = lv_chart_create(ui->screen_main);
lv_chart_set_type(ui->screen_main_chart_1, LV_CHART_TYPE_LINE);
lv_chart_set_div_line_count(ui->screen_main_chart_1, 3, 5);
lv_chart_set_point_count(ui->screen_main_chart_1, 5);
lv_chart_set_range(ui->screen_main_chart_1, LV_CHART_AXIS_PRIMARY_Y, 0, 100);
lv_chart_set_range(ui->screen_main_chart_1, LV_CHART_AXIS_SECONDARY_Y, 0, 100);
lv_chart_set_axis_tick(ui->screen_main_chart_1, LV_CHART_AXIS_PRIMARY_X, 10, 5, 5, 4, true, 40);
lv_chart_set_zoom_x(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);
#if LV_USE_FREEMASTER == 0
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, 0);
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, 0);
lv_chart_set_next_value(ui->screen_main_chart_1, ui->screen_main_chart_1_0, 0);
#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);
#if LV_USE_FREEMASTER == 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);
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
lv_obj_set_pos(ui->screen_main_chart_1, 8, 30);
lv_obj_set_size(ui->screen_main_chart_1, 300, 90);
lv_obj_set_scrollbar_mode(ui->screen_main_chart_1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_main_chart_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_main_chart_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_main_chart_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_main_chart_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_main_chart_1, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_main_chart_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_main_chart_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_main_chart_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_chart_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_line_width(ui->screen_main_chart_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_line_color(ui->screen_main_chart_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_line_opa(ui->screen_main_chart_1, 34, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_chart_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_main_chart_1, Part: LV_PART_TICKS, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_main_chart_1, lv_color_hex(0x151212), LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_main_chart_1, &lv_font_SourceHanSerifSC_Regular_12, LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_main_chart_1, 255, LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_line_width(ui->screen_main_chart_1, 2, LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_line_color(ui->screen_main_chart_1, lv_color_hex(0x000000), LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_line_opa(ui->screen_main_chart_1, 255, LV_PART_TICKS|LV_STATE_DEFAULT);
//Write codes screen_main_spangroup_time
ui->screen_main_spangroup_time = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_time, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_time, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_time, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_time_span = lv_spangroup_new_span(ui->screen_main_spangroup_time);
lv_span_set_text(ui->screen_main_spangroup_time_span, "00:00:00");
lv_style_set_text_color(&ui->screen_main_spangroup_time_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_main_spangroup_time_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_time_span->style, &lv_font_SourceHanSerifSC_Regular_16);
lv_obj_set_pos(ui->screen_main_spangroup_time, 3, 5);
lv_obj_set_size(ui->screen_main_spangroup_time, 75, 12);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_time_main_main_default
static lv_style_t style_screen_main_spangroup_time_main_main_default;
ui_init_style(&style_screen_main_spangroup_time_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_time_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_time_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_time, &style_screen_main_spangroup_time_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_time);
//Write codes screen_main_animimg_battery
ui->screen_main_animimg_battery = lv_animimg_create(ui->screen_main);
lv_animimg_set_src(ui->screen_main_animimg_battery, (const void **) screen_main_animimg_battery_imgs, 6, false);
lv_animimg_set_duration(ui->screen_main_animimg_battery, 30*6);
lv_animimg_set_repeat_count(ui->screen_main_animimg_battery, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_animimg_battery, screen_main_animimg_battery_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_battery, 280, 1);
lv_obj_set_size(ui->screen_main_animimg_battery, 35, 22);
//Write codes screen_main_cont_numin
ui->screen_main_cont_numin = lv_obj_create(ui->screen_main);
lv_obj_set_pos(ui->screen_main_cont_numin, 108, 165);
lv_obj_set_size(ui->screen_main_cont_numin, 205, 30);
lv_obj_set_scrollbar_mode(ui->screen_main_cont_numin, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_main_cont_numin, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_cont_numin, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_main_cont_numin, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_main_cont_numin, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_main_cont_numin, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_cont_numin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_cont_numin, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_main_cont_numin, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_main_cont_numin, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_cont_numin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_cont_numin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_cont_numin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_cont_numin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_cont_numin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_ani_in_6
ui->screen_main_ani_in_6 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_6, (const void **) screen_main_ani_in_6_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_6, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_6, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_6, screen_main_ani_in_6_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_6, 180, -2);
lv_obj_set_size(ui->screen_main_ani_in_6, 20, 30);
//Write codes screen_main_ani_in_5
ui->screen_main_ani_in_5 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_5, (const void **) screen_main_ani_in_5_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_5, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_5, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_5, screen_main_ani_in_5_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_5, 156, -2);
lv_obj_set_size(ui->screen_main_ani_in_5, 20, 30);
//Write codes screen_main_ani_in_4
ui->screen_main_ani_in_4 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_4, (const void **) screen_main_ani_in_4_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_4, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_4, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_4, screen_main_ani_in_4_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_4, 132, -2);
lv_obj_set_size(ui->screen_main_ani_in_4, 20, 30);
//Write codes screen_main_img_in_dot
ui->screen_main_img_in_dot = lv_img_create(ui->screen_main_cont_numin);
lv_obj_add_flag(ui->screen_main_img_in_dot, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->screen_main_img_in_dot, &_W_MOK_dot_alpha_8x30);
lv_img_set_pivot(ui->screen_main_img_in_dot, 50,50);
lv_img_set_angle(ui->screen_main_img_in_dot, 0);
lv_obj_set_pos(ui->screen_main_img_in_dot, 120, -2);
lv_obj_set_size(ui->screen_main_img_in_dot, 8, 30);
//Write style for screen_main_img_in_dot, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_recolor_opa(ui->screen_main_img_in_dot, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_img_opa(ui->screen_main_img_in_dot, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_img_in_dot, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_clip_corner(ui->screen_main_img_in_dot, true, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_ani_in_3
ui->screen_main_ani_in_3 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_3, (const void **) screen_main_ani_in_3_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_3, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_3, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_3, screen_main_ani_in_3_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_3, 96, -2);
lv_obj_set_size(ui->screen_main_ani_in_3, 20, 30);
//Write codes screen_main_ani_in_2
ui->screen_main_ani_in_2 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_2, (const void **) screen_main_ani_in_2_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_2, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_2, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_2, screen_main_ani_in_2_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_2, 72, -2);
lv_obj_set_size(ui->screen_main_ani_in_2, 20, 30);
//Write codes screen_main_ani_in_1
ui->screen_main_ani_in_1 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_1, (const void **) screen_main_ani_in_1_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_1, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_1, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_1, screen_main_ani_in_1_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_1, 48, -2);
lv_obj_set_size(ui->screen_main_ani_in_1, 20, 30);
//Write codes screen_main_ani_in_0
ui->screen_main_ani_in_0 = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_0, (const void **) screen_main_ani_in_0_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_in_0, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_0, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_0, screen_main_ani_in_0_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_0, 24, -2);
lv_obj_set_size(ui->screen_main_ani_in_0, 20, 30);
//Write codes screen_main_ani_in_sign
ui->screen_main_ani_in_sign = lv_animimg_create(ui->screen_main_cont_numin);
lv_animimg_set_src(ui->screen_main_ani_in_sign, (const void **) screen_main_ani_in_sign_imgs, 3, false);
lv_animimg_set_duration(ui->screen_main_ani_in_sign, 30*3);
lv_animimg_set_repeat_count(ui->screen_main_ani_in_sign, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_in_sign, screen_main_ani_in_sign_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_in_sign, 0, -2);
lv_obj_set_size(ui->screen_main_ani_in_sign, 20, 30);
//Write codes screen_main_cont_numout
ui->screen_main_cont_numout = lv_obj_create(ui->screen_main);
lv_obj_set_pos(ui->screen_main_cont_numout, 108, 200);
lv_obj_set_size(ui->screen_main_cont_numout, 205, 30);
lv_obj_set_scrollbar_mode(ui->screen_main_cont_numout, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_main_cont_numout, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_cont_numout, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_main_cont_numout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_main_cont_numout, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_main_cont_numout, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_cont_numout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_cont_numout, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_main_cont_numout, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_main_cont_numout, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_cont_numout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_cont_numout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_cont_numout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_cont_numout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_cont_numout, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_ani_out_6
ui->screen_main_ani_out_6 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_6, (const void **) screen_main_ani_out_6_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_6, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_6, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_6, screen_main_ani_out_6_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_6, 180, -2);
lv_obj_set_size(ui->screen_main_ani_out_6, 20, 30);
//Write codes screen_main_ani_out_5
ui->screen_main_ani_out_5 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_5, (const void **) screen_main_ani_out_5_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_5, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_5, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_5, screen_main_ani_out_5_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_5, 156, -2);
lv_obj_set_size(ui->screen_main_ani_out_5, 20, 30);
//Write codes screen_main_ani_out_4
ui->screen_main_ani_out_4 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_4, (const void **) screen_main_ani_out_4_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_4, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_4, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_4, screen_main_ani_out_4_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_4, 132, -2);
lv_obj_set_size(ui->screen_main_ani_out_4, 20, 30);
//Write codes screen_main_img_out_dot
ui->screen_main_img_out_dot = lv_img_create(ui->screen_main_cont_numout);
lv_obj_add_flag(ui->screen_main_img_out_dot, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->screen_main_img_out_dot, &_W_MOK_dot_alpha_8x30);
lv_img_set_pivot(ui->screen_main_img_out_dot, 50,50);
lv_img_set_angle(ui->screen_main_img_out_dot, 0);
lv_obj_set_pos(ui->screen_main_img_out_dot, 120, -2);
lv_obj_set_size(ui->screen_main_img_out_dot, 8, 30);
//Write style for screen_main_img_out_dot, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_recolor_opa(ui->screen_main_img_out_dot, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_img_opa(ui->screen_main_img_out_dot, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_img_out_dot, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_clip_corner(ui->screen_main_img_out_dot, true, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_ani_out_3
ui->screen_main_ani_out_3 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_3, (const void **) screen_main_ani_out_3_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_3, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_3, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_3, screen_main_ani_out_3_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_3, 96, -2);
lv_obj_set_size(ui->screen_main_ani_out_3, 20, 30);
//Write codes screen_main_ani_out_2
ui->screen_main_ani_out_2 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_2, (const void **) screen_main_ani_out_2_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_2, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_2, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_2, screen_main_ani_out_2_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_2, 72, -2);
lv_obj_set_size(ui->screen_main_ani_out_2, 20, 30);
//Write codes screen_main_ani_out_1
ui->screen_main_ani_out_1 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_1, (const void **) screen_main_ani_out_1_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_1, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_1, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_1, screen_main_ani_out_1_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_1, 48, -2);
lv_obj_set_size(ui->screen_main_ani_out_1, 20, 30);
//Write codes screen_main_ani_out_0
ui->screen_main_ani_out_0 = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_0, (const void **) screen_main_ani_out_0_imgs, 11, false);
lv_animimg_set_duration(ui->screen_main_ani_out_0, 30*11);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_0, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_0, screen_main_ani_out_0_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_0, 24, -2);
lv_obj_set_size(ui->screen_main_ani_out_0, 20, 30);
//Write codes screen_main_ani_out_sign
ui->screen_main_ani_out_sign = lv_animimg_create(ui->screen_main_cont_numout);
lv_animimg_set_src(ui->screen_main_ani_out_sign, (const void **) screen_main_ani_out_sign_imgs, 3, false);
lv_animimg_set_duration(ui->screen_main_ani_out_sign, 30*3);
lv_animimg_set_repeat_count(ui->screen_main_ani_out_sign, LV_ANIM_REPEAT_INFINITE);
lv_img_set_src(ui->screen_main_ani_out_sign, screen_main_ani_out_sign_imgs[0]);
lv_obj_set_pos(ui->screen_main_ani_out_sign, 0, -2);
lv_obj_set_size(ui->screen_main_ani_out_sign, 20, 30);
//Write codes screen_main_img_cursor
ui->screen_main_img_cursor = lv_img_create(ui->screen_main);
lv_obj_add_flag(ui->screen_main_img_cursor, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->screen_main_img_cursor, &_triangle_alpha_15x8);
lv_img_set_pivot(ui->screen_main_img_cursor, 50,50);
lv_img_set_angle(ui->screen_main_img_cursor, 0);
lv_obj_set_pos(ui->screen_main_img_cursor, 208, 230);
lv_obj_set_size(ui->screen_main_img_cursor, 15, 8);
//Write style for screen_main_img_cursor, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_recolor_opa(ui->screen_main_img_cursor, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_img_opa(ui->screen_main_img_cursor, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_img_cursor, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_clip_corner(ui->screen_main_img_cursor, 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, 55, 165);
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_SourceHanSerifSC_Regular_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, 1, 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, 0, 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, 55, 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_SourceHanSerifSC_Regular_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, 1, 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, 230, 5);
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_SourceHanSerifSC_Regular_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, "V");
lv_label_set_long_mode(ui->screen_main_label_unit, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_main_label_unit, 160, 5);
lv_obj_set_size(ui->screen_main_label_unit, 35, 14);
//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_SourceHanSerifSC_Regular_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, 120, 5);
lv_obj_set_size(ui->screen_main_label_Mode, 40, 14);
//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_SourceHanSerifSC_Regular_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.
//Update current screen layout.
lv_obj_update_layout(ui->screen_main);
}