336 lines
24 KiB
C
336 lines
24 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_sscreen_burn(lv_ui *ui)
|
|
{
|
|
//Write codes sscreen_burn
|
|
ui->sscreen_burn = lv_obj_create(NULL);
|
|
lv_obj_set_size(ui->sscreen_burn, 128, 160);
|
|
lv_obj_set_scrollbar_mode(ui->sscreen_burn, LV_SCROLLBAR_MODE_OFF);
|
|
|
|
//Write style for sscreen_burn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_cont_1
|
|
ui->sscreen_burn_cont_1 = lv_obj_create(ui->sscreen_burn);
|
|
lv_obj_set_pos(ui->sscreen_burn_cont_1, 0, 0);
|
|
lv_obj_set_size(ui->sscreen_burn_cont_1, 128, 160);
|
|
lv_obj_set_scrollbar_mode(ui->sscreen_burn_cont_1, LV_SCROLLBAR_MODE_OFF);
|
|
|
|
//Write style for sscreen_burn_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui->sscreen_burn_cont_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_grad_dir(ui->sscreen_burn_cont_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_cont_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_opa(ui->sscreen_burn_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_color(ui->sscreen_burn_cont_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_side(ui->sscreen_burn_cont_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_1
|
|
ui->sscreen_burn_label_1 = lv_label_create(ui->sscreen_burn_cont_1);
|
|
lv_label_set_text(ui->sscreen_burn_label_1, "esp32-OfflineBurn.bin");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_1, LV_LABEL_LONG_SCROLL);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_1, 0, 0);
|
|
lv_obj_set_size(ui->sscreen_burn_label_1, 124, 18);
|
|
|
|
//Write style for sscreen_burn_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_1, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui->sscreen_burn_label_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_grad_dir(ui->sscreen_burn_label_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_4
|
|
ui->sscreen_burn_label_4 = lv_label_create(ui->sscreen_burn_cont_1);
|
|
lv_label_set_text(ui->sscreen_burn_label_4, "MAC:");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_4, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_4, 2, 49);
|
|
lv_obj_set_size(ui->sscreen_burn_label_4, 42, 16);
|
|
|
|
//Write style for sscreen_burn_label_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_4, &lv_font_GB2312_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_4, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_4, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_5
|
|
ui->sscreen_burn_label_5 = lv_label_create(ui->sscreen_burn_cont_1);
|
|
lv_label_set_text(ui->sscreen_burn_label_5, "84:F7:03\n72:B6:00");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_5, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_5, 42, 45);
|
|
lv_obj_set_size(ui->sscreen_burn_label_5, 77, 25);
|
|
|
|
//Write style for sscreen_burn_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_5, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_5, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_9
|
|
ui->sscreen_burn_label_9 = lv_label_create(ui->sscreen_burn_cont_1);
|
|
lv_label_set_text(ui->sscreen_burn_label_9, "99999");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_9, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_9, 79, 102);
|
|
lv_obj_set_size(ui->sscreen_burn_label_9, 42, 11);
|
|
|
|
//Write style for sscreen_burn_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_9, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_9, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_9, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_9, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_bar_1
|
|
ui->sscreen_burn_bar_1 = lv_bar_create(ui->sscreen_burn);
|
|
lv_obj_set_style_anim_time(ui->sscreen_burn_bar_1, 1000, 0);
|
|
lv_bar_set_mode(ui->sscreen_burn_bar_1, LV_BAR_MODE_NORMAL);
|
|
lv_bar_set_range(ui->sscreen_burn_bar_1, 0, 100);
|
|
lv_bar_set_value(ui->sscreen_burn_bar_1, 50, LV_ANIM_OFF);
|
|
lv_obj_set_pos(ui->sscreen_burn_bar_1, 7, 151);
|
|
lv_obj_set_size(ui->sscreen_burn_bar_1, 113, 4);
|
|
|
|
//Write style for sscreen_burn_bar_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_bar_1, 60, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui->sscreen_burn_bar_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_grad_dir(ui->sscreen_burn_bar_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_bar_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_bar_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write style for sscreen_burn_bar_1, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_bar_1, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui->sscreen_burn_bar_1, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_grad_dir(ui->sscreen_burn_bar_1, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_bar_1, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_btn_1
|
|
ui->sscreen_burn_btn_1 = lv_btn_create(ui->sscreen_burn);
|
|
ui->sscreen_burn_btn_1_label = lv_label_create(ui->sscreen_burn_btn_1);
|
|
lv_label_set_text(ui->sscreen_burn_btn_1_label, "执行烧录");
|
|
lv_label_set_long_mode(ui->sscreen_burn_btn_1_label, LV_LABEL_LONG_WRAP);
|
|
lv_obj_align(ui->sscreen_burn_btn_1_label, LV_ALIGN_CENTER, 0, 0);
|
|
lv_obj_set_style_pad_all(ui->sscreen_burn_btn_1, 0, LV_STATE_DEFAULT);
|
|
lv_obj_set_width(ui->sscreen_burn_btn_1_label, LV_PCT(100));
|
|
lv_obj_set_pos(ui->sscreen_burn_btn_1, 68, 126);
|
|
lv_obj_set_size(ui->sscreen_burn_btn_1, 53, 20);
|
|
|
|
//Write style for sscreen_burn_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui->sscreen_burn_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_grad_dir(ui->sscreen_burn_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_btn_1, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_btn_2
|
|
ui->sscreen_burn_btn_2 = lv_btn_create(ui->sscreen_burn);
|
|
ui->sscreen_burn_btn_2_label = lv_label_create(ui->sscreen_burn_btn_2);
|
|
lv_label_set_text(ui->sscreen_burn_btn_2_label, "芯片信息");
|
|
lv_label_set_long_mode(ui->sscreen_burn_btn_2_label, LV_LABEL_LONG_WRAP);
|
|
lv_obj_align(ui->sscreen_burn_btn_2_label, LV_ALIGN_CENTER, 0, 0);
|
|
lv_obj_set_style_pad_all(ui->sscreen_burn_btn_2, 0, LV_STATE_DEFAULT);
|
|
lv_obj_set_width(ui->sscreen_burn_btn_2_label, LV_PCT(100));
|
|
lv_obj_set_pos(ui->sscreen_burn_btn_2, 7, 126);
|
|
lv_obj_set_size(ui->sscreen_burn_btn_2, 53, 20);
|
|
|
|
//Write style for sscreen_burn_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_btn_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_btn_2, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui->sscreen_burn_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_grad_dir(ui->sscreen_burn_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_2
|
|
ui->sscreen_burn_label_2 = lv_label_create(ui->sscreen_burn);
|
|
lv_label_set_text(ui->sscreen_burn_label_2, "型号:");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_2, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_2, 2, 27);
|
|
lv_obj_set_size(ui->sscreen_burn_label_2, 42, 16);
|
|
|
|
//Write style for sscreen_burn_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_2, &lv_font_GB2312_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_3
|
|
ui->sscreen_burn_label_3 = lv_label_create(ui->sscreen_burn);
|
|
lv_label_set_text(ui->sscreen_burn_label_3, "ESP32S3");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_3, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_3, 44, 27);
|
|
lv_obj_set_size(ui->sscreen_burn_label_3, 78, 16);
|
|
|
|
//Write style for sscreen_burn_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_3, &lv_font_GB2312_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_3, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_6
|
|
ui->sscreen_burn_label_6 = lv_label_create(ui->sscreen_burn);
|
|
lv_label_set_text(ui->sscreen_burn_label_6, "剩余次数:");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_6, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_6, 2, 81);
|
|
lv_obj_set_size(ui->sscreen_burn_label_6, 75, 16);
|
|
|
|
//Write style for sscreen_burn_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_6, &lv_font_GB2312_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_6, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_6, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_7
|
|
ui->sscreen_burn_label_7 = lv_label_create(ui->sscreen_burn);
|
|
lv_label_set_text(ui->sscreen_burn_label_7, "总共次数:");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_7, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_7, 2, 102);
|
|
lv_obj_set_size(ui->sscreen_burn_label_7, 75, 16);
|
|
|
|
//Write style for sscreen_burn_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_7, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_7, &lv_font_GB2312_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_7, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//Write codes sscreen_burn_label_8
|
|
ui->sscreen_burn_label_8 = lv_label_create(ui->sscreen_burn);
|
|
lv_label_set_text(ui->sscreen_burn_label_8, "99999");
|
|
lv_label_set_long_mode(ui->sscreen_burn_label_8, LV_LABEL_LONG_WRAP);
|
|
lv_obj_set_pos(ui->sscreen_burn_label_8, 81, 85);
|
|
lv_obj_set_size(ui->sscreen_burn_label_8, 42, 11);
|
|
|
|
//Write style for sscreen_burn_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
lv_obj_set_style_border_width(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_color(ui->sscreen_burn_label_8, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui->sscreen_burn_label_8, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui->sscreen_burn_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_letter_space(ui->sscreen_burn_label_8, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_line_space(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_align(ui->sscreen_burn_label_8, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
lv_obj_set_style_shadow_width(ui->sscreen_burn_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
//The custom code of sscreen_burn.
|
|
|
|
|
|
//Update current screen layout.
|
|
lv_obj_update_layout(ui->sscreen_burn);
|
|
|
|
//Init events for screen.
|
|
events_init_sscreen_burn(ui);
|
|
}
|