sggt/LVGL/myGUI/generated/setup_scr_screen_main.c

456 lines
30 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_montserratMedium_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_1
ui->screen_main_spangroup_1 = lv_spangroup_create(ui->screen_main);
lv_spangroup_set_align(ui->screen_main_spangroup_1, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_main_spangroup_1, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_main_spangroup_1, LV_SPAN_MODE_BREAK);
//create span
ui->screen_main_spangroup_1_span = lv_spangroup_new_span(ui->screen_main_spangroup_1);
lv_span_set_text(ui->screen_main_spangroup_1_span, "00:00:00");
lv_style_set_text_color(&ui->screen_main_spangroup_1_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_main_spangroup_1_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_main_spangroup_1_span->style, &lv_font_montserratMedium_16);
lv_obj_set_pos(ui->screen_main_spangroup_1, 0, 5);
lv_obj_set_size(ui->screen_main_spangroup_1, 75, 12);
//Write style state: LV_STATE_DEFAULT for &style_screen_main_spangroup_1_main_main_default
static lv_style_t style_screen_main_spangroup_1_main_main_default;
ui_init_style(&style_screen_main_spangroup_1_main_main_default);
lv_style_set_border_width(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_radius(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_pad_top(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_pad_right(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_pad_left(&style_screen_main_spangroup_1_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_main_spangroup_1_main_main_default, 0);
lv_obj_add_style(ui->screen_main_spangroup_1, &style_screen_main_spangroup_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_main_spangroup_1);
//Write codes screen_main_animimg_1
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, false);
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_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_size(ui->screen_main_animimg_1, 40, 25);
//Write codes screen_main_cont_num2
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_size(ui->screen_main_cont_num2, 220, 47);
lv_obj_set_scrollbar_mode(ui->screen_main_cont_num2, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_main_cont_num2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_cont_num2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_main_cont_num2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_main_cont_num2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_main_cont_num2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_cont_num2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_cont_num2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_main_cont_num2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_main_cont_num2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_cont_num2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_cont_num2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_cont_num2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_cont_num2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_cont_num2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_animimg_15
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, false);
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_img_set_src(ui->screen_main_animimg_15, screen_main_animimg_15_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_15, 0, 0);
lv_obj_set_size(ui->screen_main_animimg_15, 25, 35);
//Write codes screen_main_animimg_14
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, false);
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_img_set_src(ui->screen_main_animimg_14, screen_main_animimg_14_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_14, 190, 0);
lv_obj_set_size(ui->screen_main_animimg_14, 25, 35);
//Write codes screen_main_animimg_13
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, false);
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_img_set_src(ui->screen_main_animimg_13, screen_main_animimg_13_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_13, 161, 0);
lv_obj_set_size(ui->screen_main_animimg_13, 25, 35);
//Write codes screen_main_animimg_12
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, false);
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_img_set_src(ui->screen_main_animimg_12, screen_main_animimg_12_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_12, 132, 0);
lv_obj_set_size(ui->screen_main_animimg_12, 25, 35);
//Write codes screen_main_img_2
ui->screen_main_img_2 = lv_img_create(ui->screen_main_cont_num2);
lv_obj_add_flag(ui->screen_main_img_2, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->screen_main_img_2, &_W_MOK_dot_alpha_12x35);
lv_img_set_pivot(ui->screen_main_img_2, 50,50);
lv_img_set_angle(ui->screen_main_img_2, 0);
lv_obj_set_pos(ui->screen_main_img_2, 116, 0);
lv_obj_set_size(ui->screen_main_img_2, 12, 35);
//Write style for screen_main_img_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_recolor_opa(ui->screen_main_img_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_img_opa(ui->screen_main_img_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_img_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_clip_corner(ui->screen_main_img_2, true, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_animimg_11
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, false);
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_img_set_src(ui->screen_main_animimg_11, screen_main_animimg_11_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_11, 87, 0);
lv_obj_set_size(ui->screen_main_animimg_11, 25, 35);
//Write codes screen_main_animimg_10
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, false);
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_img_set_src(ui->screen_main_animimg_10, screen_main_animimg_10_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_10, 58, 0);
lv_obj_set_size(ui->screen_main_animimg_10, 25, 35);
//Write codes screen_main_animimg_9
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, false);
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_img_set_src(ui->screen_main_animimg_9, screen_main_animimg_9_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_9, 29, 0);
lv_obj_set_size(ui->screen_main_animimg_9, 25, 35);
//Write codes screen_main_cont_num1
ui->screen_main_cont_num1 = lv_obj_create(ui->screen_main);
lv_obj_set_pos(ui->screen_main_cont_num1, 99, 192);
lv_obj_set_size(ui->screen_main_cont_num1, 221, 47);
lv_obj_set_scrollbar_mode(ui->screen_main_cont_num1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_main_cont_num1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_main_cont_num1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_main_cont_num1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_main_cont_num1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_main_cont_num1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_cont_num1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_main_cont_num1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_main_cont_num1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_main_cont_num1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_main_cont_num1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_main_cont_num1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_main_cont_num1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_main_cont_num1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_main_cont_num1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_animimg_8
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, false);
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_img_set_src(ui->screen_main_animimg_8, screen_main_animimg_8_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_8, 0, 0);
lv_obj_set_size(ui->screen_main_animimg_8, 25, 35);
//Write codes screen_main_animimg_7
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, false);
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_img_set_src(ui->screen_main_animimg_7, screen_main_animimg_7_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_7, 190, 0);
lv_obj_set_size(ui->screen_main_animimg_7, 25, 35);
//Write codes screen_main_animimg_6
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, false);
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_img_set_src(ui->screen_main_animimg_6, screen_main_animimg_6_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_6, 161, 0);
lv_obj_set_size(ui->screen_main_animimg_6, 25, 35);
//Write codes screen_main_animimg_5
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, false);
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_img_set_src(ui->screen_main_animimg_5, screen_main_animimg_5_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_5, 132, 0);
lv_obj_set_size(ui->screen_main_animimg_5, 25, 35);
//Write codes screen_main_img_1
ui->screen_main_img_1 = lv_img_create(ui->screen_main_cont_num1);
lv_obj_add_flag(ui->screen_main_img_1, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->screen_main_img_1, &_W_MOK_dot_alpha_12x35);
lv_img_set_pivot(ui->screen_main_img_1, 50,50);
lv_img_set_angle(ui->screen_main_img_1, 0);
lv_obj_set_pos(ui->screen_main_img_1, 116, 0);
lv_obj_set_size(ui->screen_main_img_1, 12, 35);
//Write style for screen_main_img_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_recolor_opa(ui->screen_main_img_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_img_opa(ui->screen_main_img_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_main_img_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_clip_corner(ui->screen_main_img_1, true, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_main_animimg_4
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, false);
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_img_set_src(ui->screen_main_animimg_4, screen_main_animimg_4_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_4, 87, 0);
lv_obj_set_size(ui->screen_main_animimg_4, 25, 35);
//Write codes screen_main_animimg_3
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, false);
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_img_set_src(ui->screen_main_animimg_3, screen_main_animimg_3_imgs[0]);
lv_obj_set_pos(ui->screen_main_animimg_3, 58, 0);
lv_obj_set_size(ui->screen_main_animimg_3, 25, 35);
//Write codes screen_main_animimg_2
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, false);
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_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_size(ui->screen_main_animimg_2, 25, 35);
//Write codes screen_main_img_3
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_img_set_src(ui->screen_main_img_3, &_triangle_alpha_15x8);
lv_img_set_pivot(ui->screen_main_img_3, 50,50);
lv_img_set_angle(ui->screen_main_img_3, 0);
lv_obj_set_pos(ui->screen_main_img_3, 192, 229);
lv_obj_set_size(ui->screen_main_img_3, 15, 8);
//Write style for screen_main_img_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_recolor_opa(ui->screen_main_img_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_img_opa(ui->screen_main_img_3, 255, 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);
//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, "V");
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, 50, 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.
//Update current screen layout.
lv_obj_update_layout(ui->screen_main);
}