msg_pt100/LVGL/generated/setup_scr_chart_screen.c

318 lines
22 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright 2024 NXP
* NXP Confidential and 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_chart_screen(lv_ui *ui)
{
//Write codes chart_screen
ui->chart_screen = lv_obj_create(NULL);
lv_obj_set_size(ui->chart_screen, 320, 172);
lv_obj_set_scrollbar_mode(ui->chart_screen, LV_SCROLLBAR_MODE_OFF);
//Write style for chart_screen, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->chart_screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->chart_screen, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->chart_screen, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_color(ui->chart_screen, lv_color_hex(0xb1b1b1), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_main_stop(ui->chart_screen, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_stop(ui->chart_screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_return_img
ui->chart_screen_return_img = lv_img_create(ui->chart_screen);
lv_obj_add_flag(ui->chart_screen_return_img, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->chart_screen_return_img, &_return_alpha_20x20);
lv_img_set_pivot(ui->chart_screen_return_img, 50,50);
lv_img_set_angle(ui->chart_screen_return_img, 0);
lv_obj_set_pos(ui->chart_screen_return_img, 10, 10);
lv_obj_set_size(ui->chart_screen_return_img, 20, 20);
//Write style for chart_screen_return_img, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->chart_screen_return_img, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_power_bar
ui->chart_screen_power_bar = lv_bar_create(ui->chart_screen);
lv_obj_set_style_anim_time(ui->chart_screen_power_bar, 1000, 0);
lv_bar_set_mode(ui->chart_screen_power_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->chart_screen_power_bar, 0, 100);
lv_bar_set_value(ui->chart_screen_power_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->chart_screen_power_bar, 265, 10);
lv_obj_set_size(ui->chart_screen_power_bar, 40, 10);
//Write style for chart_screen_power_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->chart_screen_power_bar, 60, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->chart_screen_power_bar, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->chart_screen_power_bar, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_power_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_power_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for chart_screen_power_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->chart_screen_power_bar, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->chart_screen_power_bar, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->chart_screen_power_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_power_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes chart_screen_flash_img
ui->chart_screen_flash_img = lv_img_create(ui->chart_screen);
lv_obj_add_flag(ui->chart_screen_flash_img, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->chart_screen_flash_img, &_flash_alpha_15x15);
lv_img_set_pivot(ui->chart_screen_flash_img, 50,50);
lv_img_set_angle(ui->chart_screen_flash_img, 0);
lv_obj_set_pos(ui->chart_screen_flash_img, 250, 7);
lv_obj_set_size(ui->chart_screen_flash_img, 15, 15);
//Write style for chart_screen_flash_img, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->chart_screen_flash_img, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_chart
ui->chart_screen_chart = lv_chart_create(ui->chart_screen);
lv_chart_set_type(ui->chart_screen_chart, LV_CHART_TYPE_LINE);
//lv_chart_set_type(ui->chart_screen_chart, LV_CHART_TYPE_SCATTER);
lv_chart_set_div_line_count(ui->chart_screen_chart, 3, 5);
lv_chart_set_point_count(ui->chart_screen_chart, 5);
lv_chart_set_range(ui->chart_screen_chart, LV_CHART_AXIS_PRIMARY_Y, 0, 100);
lv_chart_set_axis_tick(ui->chart_screen_chart, LV_CHART_AXIS_PRIMARY_Y, 10, 5, 5, 4, true, 40);
lv_chart_set_range(ui->chart_screen_chart, LV_CHART_AXIS_SECONDARY_Y, 0, 100);
lv_chart_set_axis_tick(ui->chart_screen_chart, LV_CHART_AXIS_PRIMARY_X, 10, 5, 5, 4, false, 40);
lv_chart_set_zoom_x(ui->chart_screen_chart, 256);
lv_chart_set_zoom_y(ui->chart_screen_chart, 256);
lv_obj_set_pos(ui->chart_screen_chart, 50, 35);
lv_obj_set_size(ui->chart_screen_chart, 215, 105);
lv_obj_set_scrollbar_mode(ui->chart_screen_chart, LV_SCROLLBAR_MODE_OFF);
//Write style for chart_screen_chart, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->chart_screen_chart, 180, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->chart_screen_chart, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->chart_screen_chart, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->chart_screen_chart, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->chart_screen_chart, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->chart_screen_chart, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->chart_screen_chart, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_chart, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_line_width(ui->chart_screen_chart, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_line_color(ui->chart_screen_chart, lv_color_hex(0xe8e8e8), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_line_opa(ui->chart_screen_chart, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_chart, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for chart_screen_chart, Part: LV_PART_TICKS, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->chart_screen_chart, lv_color_hex(0x151212), LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_chart, &lv_font_arial_12, LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_chart, 255, LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_line_width(ui->chart_screen_chart, 1, LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_line_color(ui->chart_screen_chart, lv_color_hex(0xe8e8e8), LV_PART_TICKS|LV_STATE_DEFAULT);
lv_obj_set_style_line_opa(ui->chart_screen_chart, 255, LV_PART_TICKS|LV_STATE_DEFAULT);
//Write codes chart_screen_label_1
ui->chart_screen_label_1 = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_label_1, "Type");
lv_label_set_long_mode(ui->chart_screen_label_1, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_label_1, 270, 35);
lv_obj_set_size(ui->chart_screen_label_1, 40, 20);
//Write style for chart_screen_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_label_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_type_label
ui->chart_screen_type_label = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_type_label, "null");
lv_label_set_long_mode(ui->chart_screen_type_label, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_type_label, 270, 59);
lv_obj_set_size(ui->chart_screen_type_label, 40, 20);
//Write style for chart_screen_type_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_type_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_type_label, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_type_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_type_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_type_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_type_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_label_2
ui->chart_screen_label_2 = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_label_2, "Linearity:");
lv_label_set_long_mode(ui->chart_screen_label_2, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_label_2, 5, 150);
lv_obj_set_size(ui->chart_screen_label_2, 80, 20);
//Write style for chart_screen_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_label_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_label_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_linearity_label
ui->chart_screen_linearity_label = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_linearity_label, "00.00");
lv_label_set_long_mode(ui->chart_screen_linearity_label, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_linearity_label, 80, 150);
lv_obj_set_size(ui->chart_screen_linearity_label, 50, 20);
//Write style for chart_screen_linearity_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_linearity_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_linearity_label, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_linearity_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_linearity_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_linearity_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_linearity_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_label_4
ui->chart_screen_label_4 = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_label_4, "Max Dev Pos:");
lv_label_set_long_mode(ui->chart_screen_label_4, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_label_4, 130, 150);
lv_obj_set_size(ui->chart_screen_label_4, 105, 20);
//Write style for chart_screen_label_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_label_4, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_label_4, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_label_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_mds_label
ui->chart_screen_mds_label = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_mds_label, "00.00mm");
lv_label_set_long_mode(ui->chart_screen_mds_label, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_mds_label, 230, 150);
lv_obj_set_size(ui->chart_screen_mds_label, 90, 20);
//Write style for chart_screen_mds_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_mds_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_mds_label, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_mds_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_mds_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_mds_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_mds_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_label_5
ui->chart_screen_label_5 = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_label_5, "Move");
lv_label_set_long_mode(ui->chart_screen_label_5, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_label_5, 270, 85);
lv_obj_set_size(ui->chart_screen_label_5, 46, 20);
//Write style for chart_screen_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_label_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_label_5, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_label_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_label_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes chart_screen_move_label
ui->chart_screen_move_label = lv_label_create(ui->chart_screen);
lv_label_set_text(ui->chart_screen_move_label, "s->e");
lv_label_set_long_mode(ui->chart_screen_move_label, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->chart_screen_move_label, 270, 110);
lv_obj_set_size(ui->chart_screen_move_label, 40, 20);
//Write style for chart_screen_move_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->chart_screen_move_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->chart_screen_move_label, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->chart_screen_move_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->chart_screen_move_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->chart_screen_move_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->chart_screen_move_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//The custom code of chart_screen.
extern lv_indev_t * indev_keypad;
lv_group_t *group=lv_group_create();
lv_indev_set_group(indev_keypad, group); //<2F><><EFBFBD><EFBFBD><EFBFBD>󶨵<EFBFBD><F3B6A8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
lv_group_set_editing(group, false); //<2F><><EFBFBD><EFBFBD>ģʽ
lv_group_add_obj(group ,ui->chart_screen_return_img);
//Update current screen layout.
lv_obj_update_layout(ui->chart_screen);
//Init events for screen.
events_init_chart_screen(ui);
}