新增烧录中界面,调整准备烧录界面的信息

This commit is contained in:
YuXifeng 2025-04-03 17:30:11 +08:00
parent f95f13188c
commit fc1ce99c7c
16 changed files with 2799 additions and 338 deletions

View File

@ -38,8 +38,8 @@
void custom_init(lv_ui *ui)
{
/* Add your codes here */
guider_ui.home_btn_group = lv_group_create(); //创建组
guider_ui.imglist_group = lv_group_create();
guider_ui.file_btn_group = lv_group_create();
guider_ui.user_obj.home_btn_group = lv_group_create(); //创建组
guider_ui.user_obj.imglist_group = lv_group_create();
guider_ui.user_obj.burn_btn_group = lv_group_create();
}

View File

@ -11,6 +11,7 @@
#include <stdio.h>
#include "lvgl.h"
#include "spiffs.h"
#include "flasher_tool.h"
static const char *TAG = "events_init";
@ -29,17 +30,29 @@ const char* chip_list[6] = {
"esp32s3",
};
static char chip_path[48] = {0};
static char download_file[64] = {0};
// static char download_file[64] = {0};
static void key_event_handler(lv_event_t *e);
static void file_btn_event_handler(lv_event_t *e) {
lv_obj_t *btn = lv_event_get_target(e); // 获取被点击的按钮
const char *btn_text = lv_list_get_btn_text(guider_ui.screen_imglist_list_1,btn); // 获取按钮上的文本
memset(&download_file[0],0x00,64);
sprintf(&download_file[0],"%s/%s",chip_path,btn_text);
printf("被点击的文件: %s\n", download_file);
ui_load_scr_animation(&guider_ui, &guider_ui.sscreen_burn, guider_ui.sscreen_burn_del, &guider_ui.screen_imglist_del, setup_scr_sscreen_burn, LV_SCR_LOAD_ANIM_OVER_LEFT, 200, 200, false, true);
// 使用 strncpy 复制,并确保字符串以 '\0' 结尾
strncpy(guider_ui.user_obj.burn_title, btn_text, sizeof(guider_ui.user_obj.burn_title) - 1);
guider_ui.user_obj.burn_title[sizeof(guider_ui.user_obj.burn_title) - 1] = '\0';
memset(&guider_ui.user_obj.download_file[0],0x00,64);
sprintf(&guider_ui.user_obj.download_file[0],"%s/%s",chip_path,btn_text);
//burn_btn_group
lv_indev_set_group(lvgl_button_indev, guider_ui.user_obj.burn_btn_group);
lv_group_set_default(guider_ui.user_obj.burn_btn_group);
ui_load_scr_animation(&guider_ui, &guider_ui.sscreen_burn, guider_ui.sscreen_burn_del, &guider_ui.screen_imglist_del, setup_scr_sscreen_burn, LV_SCR_LOAD_ANIM_OVER_LEFT, 200, 200, false, true);
lv_label_set_text(guider_ui.sscreen_burn_label_1, guider_ui.user_obj.burn_title);
lv_obj_add_event_cb(guider_ui.sscreen_burn_btn_1, key_event_handler, LV_EVENT_VALUE_CHANGED, NULL);
lv_obj_add_event_cb(guider_ui.sscreen_burn_btn_2, key_event_handler, LV_EVENT_VALUE_CHANGED, NULL);
lv_obj_add_event_cb(guider_ui.sscreen_burn_btn_2, key_event_handler, LV_EVENT_CUSTOM_UPDATE, NULL);
}
@ -53,13 +66,13 @@ static void key_event_handler(lv_event_t *e)
uint32_t key = (uint32_t)lv_event_get_param(e);
if (key == LV_KEY_ESC) {
printf("LV_EVENT_VALUE_CHANGED 事件: key=%ld\n", key);
lv_group_remove_all_objs(guider_ui.imglist_group);
lv_group_remove_all_objs(guider_ui.user_obj.imglist_group);
ui_load_scr_animation(&guider_ui, &guider_ui.screen, guider_ui.screen_del, &guider_ui.screen_imglist_del, setup_scr_screen, LV_SCR_LOAD_ANIM_OVER_RIGHT, 200, 200, false, true);
lv_indev_set_group(lvgl_button_indev, guider_ui.home_btn_group);
lv_group_set_default(guider_ui.home_btn_group);
lv_group_add_obj(guider_ui.home_btn_group,guider_ui.screen_btn_1);
lv_group_add_obj(guider_ui.home_btn_group,guider_ui.screen_btn_2);
lv_group_add_obj(guider_ui.home_btn_group,guider_ui.screen_btn_3);
lv_indev_set_group(lvgl_button_indev, guider_ui.user_obj.home_btn_group);
lv_group_set_default(guider_ui.user_obj.home_btn_group);
lv_group_add_obj(guider_ui.user_obj.home_btn_group,guider_ui.screen_btn_1);
lv_group_add_obj(guider_ui.user_obj.home_btn_group,guider_ui.screen_btn_2);
lv_group_add_obj(guider_ui.user_obj.home_btn_group,guider_ui.screen_btn_3);
}else{
lv_obj_t *dropdown = lv_event_get_target(e);
uint16_t selected_index = lv_dropdown_get_selected(dropdown);
@ -76,10 +89,13 @@ static void key_event_handler(lv_event_t *e)
ESP_LOGI(TAG,"[%d] Fond esp32s2 file:%s,size:%ld",i,directory[i].name,directory[i].size);
file_btn[i] = lv_list_add_btn(guider_ui.screen_imglist_list_1,NULL,directory[i].name);
lv_obj_add_event_cb(file_btn[i], file_btn_event_handler, LV_EVENT_CLICKED, NULL);
lv_group_add_obj(guider_ui.imglist_group,file_btn[i]);
lv_group_add_obj(guider_ui.user_obj.imglist_group,file_btn[i]);
}
}
} else if(code == LV_EVENT_CUSTOM_UPDATE) {
uint32_t key = (uint32_t)lv_event_get_param(e);
printf("LV_EVENT_CUSTOM_UPDATE 事件: key=%ld\n", key);
}
}
@ -90,12 +106,12 @@ static void screen_btn_1_event_handler (lv_event_t *e)
switch (code) {
case LV_EVENT_CLICKED:
{
lv_group_remove_all_objs(guider_ui.home_btn_group);
lv_group_remove_all_objs(guider_ui.user_obj.home_btn_group);
ui_load_scr_animation(&guider_ui, &guider_ui.screen_imglist, guider_ui.screen_imglist_del, &guider_ui.screen_del, setup_scr_screen_imglist, LV_SCR_LOAD_ANIM_OVER_LEFT, 200, 200, false, false);
lv_indev_set_group(lvgl_button_indev, guider_ui.imglist_group);
lv_group_set_default(guider_ui.imglist_group);
lv_group_add_obj(guider_ui.imglist_group,guider_ui.screen_imglist_btn_1);
lv_group_add_obj(guider_ui.imglist_group,guider_ui.screen_imglist_ddlist_1);
lv_indev_set_group(lvgl_button_indev, guider_ui.user_obj.imglist_group);
lv_group_set_default(guider_ui.user_obj.imglist_group);
lv_group_add_obj(guider_ui.user_obj.imglist_group,guider_ui.screen_imglist_btn_1);
lv_group_add_obj(guider_ui.user_obj.imglist_group,guider_ui.screen_imglist_ddlist_1);
lv_obj_add_event_cb(guider_ui.screen_imglist_ddlist_1, key_event_handler, LV_EVENT_VALUE_CHANGED, NULL);
uint16_t selected_index = lv_dropdown_get_selected(guider_ui.screen_imglist_ddlist_1);
@ -109,17 +125,8 @@ static void screen_btn_1_event_handler (lv_event_t *e)
{
ESP_LOGI(TAG,"[%d] Fond esp32s2 file:%s,size:%ld",i,directory[i].name,directory[i].size);
file_btn[i] = lv_list_add_btn(guider_ui.screen_imglist_list_1,NULL,directory[i].name);
lv_group_add_obj(guider_ui.imglist_group,file_btn[i]);
lv_group_add_obj(guider_ui.user_obj.imglist_group,file_btn[i]);
}
// lv_obj_t * btn1;
// btn1 = lv_list_add_btn(guider_ui.screen_imglist_list_1,NULL,"OfflineBurn.bin");
// lv_group_add_obj(guider_ui.imglist_group,btn1);
// lv_obj_t * btn2;
// btn2 = lv_list_add_btn(guider_ui.screen_imglist_list_1,NULL,"target_esp32s3.bin");
// lv_group_add_obj(guider_ui.imglist_group,btn2);
break;
}
default:
@ -133,7 +140,7 @@ static void screen_btn_3_event_handler (lv_event_t *e)
switch (code) {
case LV_EVENT_CLICKED:
{
ui_load_scr_animation(&guider_ui, &guider_ui.sscreen_burn, guider_ui.sscreen_burn_del, &guider_ui.screen_del, setup_scr_sscreen_burn, LV_SCR_LOAD_ANIM_OVER_RIGHT, 200, 200, false, false);
ui_load_scr_animation(&guider_ui, &guider_ui.screen_burning, guider_ui.screen_burning_del, &guider_ui.sscreen_burn_del, setup_scr_screen_burning, LV_SCR_LOAD_ANIM_OVER_LEFT, 200, 200, false, false);
break;
}
default:
@ -147,6 +154,64 @@ void events_init_screen (lv_ui *ui)
lv_obj_add_event_cb(ui->screen_btn_3, screen_btn_3_event_handler, LV_EVENT_ALL, ui);
}
static void sscreen_burn_btn_1_event_handler (lv_event_t *e)//执行烧录
{
lv_event_code_t code = lv_event_get_code(e);
switch (code) {
case LV_EVENT_CLICKED:
{
xEventGroupSetBits(Flasher_eventGroup,EVENT_BURN_BEGIN);
ui_load_scr_animation(&guider_ui, &guider_ui.screen_burning, guider_ui.screen_burning_del, &guider_ui.sscreen_burn_del, setup_scr_screen_burning, LV_SCR_LOAD_ANIM_OVER_LEFT, 200, 200, false, true);
break;
}
default:
break;
}
}
static void sscreen_burn_btn_2_event_handler (lv_event_t *e)//芯片信息
{
lv_event_code_t code = lv_event_get_code(e);
switch (code) {
case LV_EVENT_CLICKED:
{
// printf("Burned files: %s\n", guider_ui.user_obj.download_file);
xEventGroupSetBits(Flasher_eventGroup,EVENT_CONNECT);
break;
}
default:
break;
}
}
void events_init_sscreen_burn (lv_ui *ui)
{
lv_obj_add_event_cb(ui->sscreen_burn_btn_1, sscreen_burn_btn_1_event_handler, LV_EVENT_ALL, ui);//执行烧录
lv_obj_add_event_cb(ui->sscreen_burn_btn_2, sscreen_burn_btn_2_event_handler, LV_EVENT_ALL, ui);//芯片信息
}
static void screen_burning_btn_1_event_handler (lv_event_t *e)
{
lv_event_code_t code = lv_event_get_code(e);
switch (code) {
case LV_EVENT_CLICKED:
{
ui_load_scr_animation(&guider_ui, &guider_ui.sscreen_burn, guider_ui.sscreen_burn_del, &guider_ui.screen_burning_del, setup_scr_sscreen_burn, LV_SCR_LOAD_ANIM_OVER_RIGHT, 200, 200, false, true);
lv_obj_add_event_cb(guider_ui.sscreen_burn_btn_1, key_event_handler, LV_EVENT_VALUE_CHANGED, NULL);
lv_obj_add_event_cb(guider_ui.sscreen_burn_btn_2, key_event_handler, LV_EVENT_VALUE_CHANGED, NULL);
lv_obj_add_event_cb(guider_ui.sscreen_burn_btn_2, key_event_handler, LV_EVENT_CUSTOM_UPDATE, NULL);
break;
}
default:
break;
}
}
void events_init_screen_burning (lv_ui *ui)
{
lv_obj_add_event_cb(ui->screen_burning_btn_1, screen_burning_btn_1_event_handler, LV_EVENT_ALL, ui);
}
void events_init(lv_ui *ui)
{

View File

@ -19,7 +19,8 @@ extern "C" {
void events_init(lv_ui *ui);
void events_init_screen(lv_ui *ui);
void events_init_sscreen_burn(lv_ui *ui);
void events_init_screen_burning(lv_ui *ui);
#ifdef __cplusplus
}
#endif

View File

@ -76,6 +76,7 @@ void init_scr_del_flag(lv_ui *ui)
ui->screen_del = true;
ui->sscreen_burn_del = true;
ui->screen_imglist_del = true;
ui->screen_burning_del = true;
}
void setup_ui(lv_ui *ui)

View File

@ -15,6 +15,16 @@ extern "C" {
#include "lvgl.h"
typedef struct
{
lv_group_t *home_btn_group;
lv_group_t *imglist_group;
lv_group_t *burn_btn_group;
char download_file[128];
char burn_title[48];
}gui_user_data;
typedef struct
{
@ -31,13 +41,19 @@ typedef struct
bool sscreen_burn_del;
lv_obj_t *sscreen_burn_cont_1;
lv_obj_t *sscreen_burn_label_1;
lv_obj_t *sscreen_burn_label_4;
lv_obj_t *sscreen_burn_label_5;
lv_obj_t *sscreen_burn_label_9;
lv_obj_t *sscreen_burn_bar_1;
lv_obj_t *sscreen_burn_btn_1;
lv_obj_t *sscreen_burn_btn_1_label;
lv_obj_t *sscreen_burn_btn_2;
lv_obj_t *sscreen_burn_btn_2_label;
lv_obj_t *sscreen_burn_spangroup_1;
lv_span_t *sscreen_burn_spangroup_1_span;
lv_obj_t *sscreen_burn_label_2;
lv_obj_t *sscreen_burn_label_3;
lv_obj_t *sscreen_burn_label_6;
lv_obj_t *sscreen_burn_label_7;
lv_obj_t *sscreen_burn_label_8;
lv_obj_t *screen_imglist;
bool screen_imglist_del;
lv_obj_t *screen_imglist_cont_1;
@ -46,9 +62,17 @@ typedef struct
lv_obj_t *screen_imglist_ddlist_1;
lv_obj_t *screen_imglist_btn_1;
lv_obj_t *screen_imglist_btn_1_label;
lv_group_t *home_btn_group;
lv_group_t *imglist_group;
lv_group_t *file_btn_group;
lv_obj_t *screen_burning;
bool screen_burning_del;
lv_obj_t *screen_burning_cont_1;
lv_obj_t *screen_burning_bar_1;
lv_obj_t *screen_burning_label_1;
lv_obj_t *screen_burning_btn_1;
lv_obj_t *screen_burning_btn_1_label;
lv_obj_t *screen_burning_spangroup_1;
lv_span_t *screen_burning_spangroup_1_span;
gui_user_data user_obj;
}lv_ui;
typedef void (*ui_setup_scr_t)(lv_ui * ui);
@ -74,12 +98,13 @@ extern lv_ui guider_ui;
void setup_scr_screen(lv_ui *ui);
void setup_scr_sscreen_burn(lv_ui *ui);
void setup_scr_screen_imglist(lv_ui *ui);
void setup_scr_screen_burning(lv_ui *ui);
LV_FONT_DECLARE(lv_font_GB2312_16)
LV_FONT_DECLARE(lv_font_montserratMedium_16)
LV_FONT_DECLARE(lv_font_montserratMedium_12)
LV_FONT_DECLARE(lv_font_GB2312_12)
LV_FONT_DECLARE(lv_font_GB2312_14)
#ifdef __cplusplus
}

View File

@ -1 +1 @@
GEN_CSRCS += lv_font_GB2312_16.c lv_font_montserratMedium_16.c lv_font_montserratMedium_12.c lv_font_GB2312_12.c
GEN_CSRCS += lv_font_GB2312_16.c lv_font_montserratMedium_16.c lv_font_montserratMedium_12.c lv_font_GB2312_12.c lv_font_GB2312_14.c

View File

@ -534,6 +534,17 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
0xa1, 0x0, 0x9, 0x30, 0x0, 0xb0, 0xac, 0xcc,
0xce, 0x30,
/* U+5B8C "完" */
0x0, 0x0, 0x35, 0x0, 0x0, 0x0, 0x0, 0x0,
0x9, 0x70, 0x0, 0x0, 0xc, 0xbb, 0xbb, 0xbb,
0xbb, 0xd0, 0xb, 0x0, 0x0, 0x0, 0x0, 0xc0,
0x2, 0x2b, 0xbb, 0xbb, 0xb3, 0x10, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x5, 0xaa, 0xda, 0xad,
0xaa, 0x80, 0x0, 0x0, 0xc0, 0xb, 0x0, 0x0,
0x0, 0x5, 0x80, 0xb, 0x0, 0x10, 0x0, 0x5b,
0x0, 0xb, 0x0, 0x75, 0x2b, 0x80, 0x0, 0xb,
0xaa, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
/* U+5F55 "录" */
0x0, 0xbb, 0xbb, 0xbb, 0xf0, 0x0, 0x0, 0x0,
0x0, 0x0, 0xd0, 0x0, 0x0, 0x3b, 0xbb, 0xbb,
@ -555,6 +566,17 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
0x90, 0x2, 0xb1, 0xc2, 0x12, 0x1, 0xaa, 0xaa,
0x30, 0x20,
/* U+6210 "成" */
0x0, 0x0, 0x0, 0x84, 0x10, 0x0, 0x0, 0x0,
0x0, 0x84, 0x68, 0x0, 0x0, 0xaa, 0xaa, 0xdb,
0xae, 0x90, 0x0, 0xd1, 0x11, 0x76, 0x11, 0x10,
0x0, 0xc0, 0x0, 0x47, 0x8, 0x40, 0x0, 0xfb,
0xbd, 0x2a, 0xc, 0x0, 0x0, 0xc0, 0xd, 0xc,
0x85, 0x0, 0x1, 0xb0, 0xc, 0xa, 0xb0, 0x0,
0x4, 0x89, 0xc7, 0x4c, 0xc0, 0x32, 0xa, 0x30,
0x8, 0xb0, 0x78, 0x92, 0x1a, 0x0, 0x5, 0x0,
0x9, 0xd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
/* U+6267 "执" */
0x0, 0x74, 0x0, 0x1c, 0x0, 0x0, 0x0, 0x75,
0x0, 0x1c, 0x0, 0x0, 0x3, 0x97, 0x30, 0x1c,
@ -1341,73 +1363,75 @@ static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 1988, .adv_w = 96, .box_w = 3, .box_h = 11, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 2005, .adv_w = 96, .box_w = 6, .box_h = 2, .ofs_x = 0, .ofs_y = 8},
{.bitmap_index = 2011, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2077, .adv_w = 192, .box_w = 12, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2137, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2203, .adv_w = 192, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2275, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2353, .adv_w = 192, .box_w = 10, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 2413, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2479, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2545, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2623, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2677, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2743, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2797, .adv_w = 132, .box_w = 9, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2838, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2916, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2994, .adv_w = 216, .box_w = 14, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3071, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3149, .adv_w = 216, .box_w = 14, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 3212, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3290, .adv_w = 96, .box_w = 6, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3320, .adv_w = 144, .box_w = 9, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3365, .adv_w = 216, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3456, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 3510, .adv_w = 132, .box_w = 9, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3569, .adv_w = 168, .box_w = 8, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 3617, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3689, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3750, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3811, .adv_w = 168, .box_w = 8, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 3859, .adv_w = 168, .box_w = 12, .box_h = 11, .ofs_x = -1, .ofs_y = -1},
{.bitmap_index = 3925, .adv_w = 120, .box_w = 7, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3964, .adv_w = 120, .box_w = 7, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4003, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4064, .adv_w = 168, .box_w = 11, .box_h = 3, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 4081, .adv_w = 216, .box_w = 14, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 4144, .adv_w = 240, .box_w = 16, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4248, .adv_w = 216, .box_w = 15, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 4346, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4412, .adv_w = 168, .box_w = 11, .box_h = 7, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 4451, .adv_w = 168, .box_w = 11, .box_h = 7, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 4490, .adv_w = 240, .box_w = 16, .box_h = 10, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 4570, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 4624, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4702, .adv_w = 192, .box_w = 13, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 4787, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4848, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4920, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4981, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5042, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5096, .adv_w = 120, .box_w = 9, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 5155, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5227, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5299, .adv_w = 216, .box_w = 14, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5362, .adv_w = 192, .box_w = 14, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 5453, .adv_w = 144, .box_w = 9, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5512, .adv_w = 240, .box_w = 15, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5602, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5670, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5738, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5806, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5874, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5942, .adv_w = 240, .box_w = 16, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6030, .adv_w = 168, .box_w = 10, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6095, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6167, .adv_w = 192, .box_w = 13, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 6252, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6320, .adv_w = 144, .box_w = 9, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6379, .adv_w = 193, .box_w = 13, .box_h = 9, .ofs_x = 0, .ofs_y = 0}
{.bitmap_index = 2077, .adv_w = 192, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2149, .adv_w = 192, .box_w = 12, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2209, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2275, .adv_w = 192, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2347, .adv_w = 192, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2419, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2497, .adv_w = 192, .box_w = 10, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 2557, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2623, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2689, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 2767, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2821, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 2887, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2941, .adv_w = 132, .box_w = 9, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2982, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3060, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3138, .adv_w = 216, .box_w = 14, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3215, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3293, .adv_w = 216, .box_w = 14, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 3356, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3434, .adv_w = 96, .box_w = 6, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3464, .adv_w = 144, .box_w = 9, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3509, .adv_w = 216, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3600, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 3654, .adv_w = 132, .box_w = 9, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3713, .adv_w = 168, .box_w = 8, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 3761, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3833, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3894, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3955, .adv_w = 168, .box_w = 8, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 4003, .adv_w = 168, .box_w = 12, .box_h = 11, .ofs_x = -1, .ofs_y = -1},
{.bitmap_index = 4069, .adv_w = 120, .box_w = 7, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4108, .adv_w = 120, .box_w = 7, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4147, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4208, .adv_w = 168, .box_w = 11, .box_h = 3, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 4225, .adv_w = 216, .box_w = 14, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 4288, .adv_w = 240, .box_w = 16, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4392, .adv_w = 216, .box_w = 15, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 4490, .adv_w = 192, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4556, .adv_w = 168, .box_w = 11, .box_h = 7, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 4595, .adv_w = 168, .box_w = 11, .box_h = 7, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 4634, .adv_w = 240, .box_w = 16, .box_h = 10, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 4714, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 4768, .adv_w = 192, .box_w = 12, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4846, .adv_w = 192, .box_w = 13, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 4931, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4992, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5064, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5125, .adv_w = 168, .box_w = 11, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5186, .adv_w = 192, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5240, .adv_w = 120, .box_w = 9, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 5299, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5371, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5443, .adv_w = 216, .box_w = 14, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5506, .adv_w = 192, .box_w = 14, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 5597, .adv_w = 144, .box_w = 9, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5656, .adv_w = 240, .box_w = 15, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5746, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5814, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5882, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5950, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6018, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6086, .adv_w = 240, .box_w = 16, .box_h = 11, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6174, .adv_w = 168, .box_w = 10, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6239, .adv_w = 168, .box_w = 11, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6311, .adv_w = 192, .box_w = 13, .box_h = 13, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 6396, .adv_w = 240, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6464, .adv_w = 144, .box_w = 9, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6523, .adv_w = 193, .box_w = 13, .box_h = 9, .ofs_x = 0, .ofs_y = 0}
};
/*---------------------
@ -1415,15 +1439,15 @@ static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
*--------------------*/
static const uint16_t unicode_list_2[] = {
0x0, 0xf74, 0x108e, 0x1286, 0x2106, 0x2266, 0x32ce, 0x386b,
0xa020, 0xa027, 0xa02a, 0xa02b, 0xa02c, 0xa030, 0xa032, 0xa034,
0xa038, 0xa03b, 0xa040, 0xa045, 0xa046, 0xa047, 0xa05d, 0xa062,
0xa067, 0xa06a, 0xa06b, 0xa06c, 0xa070, 0xa071, 0xa072, 0xa073,
0xa086, 0xa087, 0xa08d, 0xa08f, 0xa090, 0xa093, 0xa096, 0xa097,
0xa098, 0xa09a, 0xa0b2, 0xa0b4, 0xa0e3, 0xa0e4, 0xa0e6, 0xa0e8,
0xa0ff, 0xa106, 0xa109, 0xa112, 0xa13b, 0xa143, 0xa17a, 0xa20a,
0xa25f, 0xa260, 0xa261, 0xa262, 0xa263, 0xa2a6, 0xa2b2, 0xa30c,
0xa323, 0xa579, 0xa7e1, 0xa8c1
0x0, 0xbab, 0xf74, 0x108e, 0x122f, 0x1286, 0x2106, 0x2266,
0x32ce, 0x386b, 0xa020, 0xa027, 0xa02a, 0xa02b, 0xa02c, 0xa030,
0xa032, 0xa034, 0xa038, 0xa03b, 0xa040, 0xa045, 0xa046, 0xa047,
0xa05d, 0xa062, 0xa067, 0xa06a, 0xa06b, 0xa06c, 0xa070, 0xa071,
0xa072, 0xa073, 0xa086, 0xa087, 0xa08d, 0xa08f, 0xa090, 0xa093,
0xa096, 0xa097, 0xa098, 0xa09a, 0xa0b2, 0xa0b4, 0xa0e3, 0xa0e4,
0xa0e6, 0xa0e8, 0xa0ff, 0xa106, 0xa109, 0xa112, 0xa13b, 0xa143,
0xa17a, 0xa20a, 0xa25f, 0xa260, 0xa261, 0xa262, 0xa263, 0xa2a6,
0xa2b2, 0xa30c, 0xa323, 0xa579, 0xa7e1, 0xa8c1
};
/*Collect the unicode lists and glyph_id offsets*/
@ -1439,7 +1463,7 @@ static const lv_font_fmt_txt_cmap_t cmaps[] =
},
{
.range_start = 20449, .range_length = 43202, .glyph_id_start = 95,
.unicode_list = unicode_list_2, .glyph_id_ofs_list = NULL, .list_length = 68, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
.unicode_list = unicode_list_2, .glyph_id_ofs_list = NULL, .list_length = 70, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
}
};

File diff suppressed because it is too large Load Diff

View File

@ -644,6 +644,23 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+007E "~" */
0x1a, 0xfc, 0x64, 0xb2, 0x28, 0x35, 0x9a, 0x70,
/* U+4F59 "余" */
0x0, 0x0, 0x0, 0x1, 0x80, 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_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 3134, .adv_w = 128, .box_w = 2, .box_h = 16, .ofs_x = 3, .ofs_y = -2},
{.bitmap_index = 3150, .adv_w = 128, .box_w = 4, .box_h = 15, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 3180, .adv_w = 128, .box_w = 8, .box_h = 2, .ofs_x = 0, .ofs_y = 11},
{.bitmap_index = 3188, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3316, .adv_w = 256, .box_w = 16, .box_h = 17, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 3452, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3564, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 3676, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3804, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3932, .adv_w = 256, .box_w = 14, .box_h = 15, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 4037, .adv_w = 256, .box_w = 16, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4141, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4253, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4373, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4493, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4621, .adv_w = 256, .box_w = 16, .box_h = 17, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4757, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 4853, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4965, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5061, .adv_w = 176, .box_w = 11, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5127, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5255, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5383, .adv_w = 288, .box_w = 18, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5509, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5637, .adv_w = 288, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 5745, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5873, .adv_w = 128, .box_w = 8, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5929, .adv_w = 192, .box_w = 12, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6013, .adv_w = 288, .box_w = 18, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6157, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6253, .adv_w = 176, .box_w = 11, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6341, .adv_w = 224, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = -2},
{.bitmap_index = 6421, .adv_w = 224, .box_w = 14, .box_h = 18, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 6547, .adv_w = 224, .box_w = 14, .box_h = 15, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6652, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6750, .adv_w = 224, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = -2},
{.bitmap_index = 6830, .adv_w = 224, .box_w = 16, .box_h = 14, .ofs_x = -1, .ofs_y = -1},
{.bitmap_index = 6942, .adv_w = 160, .box_w = 10, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 7012, .adv_w = 160, .box_w = 10, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 7082, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 7180, .adv_w = 224, .box_w = 14, .box_h = 4, .ofs_x = 0, .ofs_y = 4},
{.bitmap_index = 7208, .adv_w = 288, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7316, .adv_w = 320, .box_w = 20, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 7476, .adv_w = 288, .box_w = 20, .box_h = 16, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 7636, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 7764, .adv_w = 224, .box_w = 14, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 7834, .adv_w = 224, .box_w = 14, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 7904, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8044, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 8140, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 8268, .adv_w = 256, .box_w = 17, .box_h = 17, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 8413, .adv_w = 224, .box_w = 15, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8518, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 8630, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8728, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8826, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 8922, .adv_w = 160, .box_w = 12, .box_h = 16, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 9018, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 9130, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 9242, .adv_w = 288, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 9350, .adv_w = 256, .box_w = 18, .box_h = 18, .ofs_x = -1, .ofs_y = -3},
{.bitmap_index = 9512, .adv_w = 192, .box_w = 12, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 9608, .adv_w = 320, .box_w = 20, .box_h = 15, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 9758, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 9858, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 9958, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 10058, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 10158, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 10258, .adv_w = 320, .box_w = 21, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 10405, .adv_w = 224, .box_w = 12, .box_h = 16, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 10501, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 10613, .adv_w = 256, .box_w = 17, .box_h = 17, .ofs_x = -1, .ofs_y = -3},
{.bitmap_index = 10758, .adv_w = 320, .box_w = 20, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 10878, .adv_w = 192, .box_w = 12, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 10974, .adv_w = 258, .box_w = 17, .box_h = 11, .ofs_x = 0, .ofs_y = 1}
{.bitmap_index = 3188, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3308, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 3436, .adv_w = 256, .box_w = 16, .box_h = 17, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 3572, .adv_w = 256, .box_w = 15, .box_h = 15, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 3685, .adv_w = 256, .box_w = 15, .box_h = 16, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 3805, .adv_w = 256, .box_w = 15, .box_h = 14, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 3910, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 4008, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4136, .adv_w = 256, .box_w = 15, .box_h = 13, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 4234, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4346, .adv_w = 256, .box_w = 15, .box_h = 14, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 4451, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 4563, .adv_w = 256, .box_w = 15, .box_h = 16, .ofs_x = 1, .ofs_y = -3},
{.bitmap_index = 4683, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 4811, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 4939, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5059, .adv_w = 256, .box_w = 15, .box_h = 15, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 5172, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5300, .adv_w = 256, .box_w = 14, .box_h = 15, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 5405, .adv_w = 256, .box_w = 16, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5509, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 5621, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5741, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5861, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 5981, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6109, .adv_w = 256, .box_w = 16, .box_h = 17, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6245, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6341, .adv_w = 256, .box_w = 16, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6453, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6549, .adv_w = 176, .box_w = 11, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6615, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6743, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 6871, .adv_w = 288, .box_w = 18, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 6997, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 7125, .adv_w = 288, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7233, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 7361, .adv_w = 128, .box_w = 8, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 7417, .adv_w = 192, .box_w = 12, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 7501, .adv_w = 288, .box_w = 18, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 7645, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7741, .adv_w = 176, .box_w = 11, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 7829, .adv_w = 224, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = -2},
{.bitmap_index = 7909, .adv_w = 224, .box_w = 14, .box_h = 18, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 8035, .adv_w = 224, .box_w = 14, .box_h = 15, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8140, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8238, .adv_w = 224, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = -2},
{.bitmap_index = 8318, .adv_w = 224, .box_w = 16, .box_h = 14, .ofs_x = -1, .ofs_y = -1},
{.bitmap_index = 8430, .adv_w = 160, .box_w = 10, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8500, .adv_w = 160, .box_w = 10, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8570, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 8668, .adv_w = 224, .box_w = 14, .box_h = 4, .ofs_x = 0, .ofs_y = 4},
{.bitmap_index = 8696, .adv_w = 288, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 8804, .adv_w = 320, .box_w = 20, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 8964, .adv_w = 288, .box_w = 20, .box_h = 16, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 9124, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 9252, .adv_w = 224, .box_w = 14, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 9322, .adv_w = 224, .box_w = 14, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 9392, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 9532, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 9628, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 9756, .adv_w = 256, .box_w = 17, .box_h = 17, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 9901, .adv_w = 224, .box_w = 15, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 10006, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 10118, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 10216, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 10314, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 10410, .adv_w = 160, .box_w = 12, .box_h = 16, .ofs_x = -1, .ofs_y = -2},
{.bitmap_index = 10506, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 10618, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 10730, .adv_w = 288, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 10838, .adv_w = 256, .box_w = 18, .box_h = 18, .ofs_x = -1, .ofs_y = -3},
{.bitmap_index = 11000, .adv_w = 192, .box_w = 12, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 11096, .adv_w = 320, .box_w = 20, .box_h = 15, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 11246, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 11346, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 11446, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 11546, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 11646, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 1},
{.bitmap_index = 11746, .adv_w = 320, .box_w = 21, .box_h = 14, .ofs_x = 0, .ofs_y = -1},
{.bitmap_index = 11893, .adv_w = 224, .box_w = 12, .box_h = 16, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 11989, .adv_w = 224, .box_w = 14, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 12101, .adv_w = 256, .box_w = 17, .box_h = 17, .ofs_x = -1, .ofs_y = -3},
{.bitmap_index = 12246, .adv_w = 320, .box_w = 20, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 12366, .adv_w = 192, .box_w = 12, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
{.bitmap_index = 12462, .adv_w = 258, .box_w = 17, .box_h = 11, .ofs_x = 0, .ofs_y = 1}
};
/*---------------------
@ -1971,15 +2201,17 @@ static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
*--------------------*/
static const uint16_t unicode_list_2[] = {
0x0, 0xee, 0xf74, 0x108e, 0x1286, 0x2106, 0x2266, 0x2f8d,
0x32ce, 0x386b, 0x3bdd, 0x457b, 0xa020, 0xa027, 0xa02a, 0xa02b,
0xa02c, 0xa030, 0xa032, 0xa034, 0xa038, 0xa03b, 0xa040, 0xa045,
0xa046, 0xa047, 0xa05d, 0xa062, 0xa067, 0xa06a, 0xa06b, 0xa06c,
0xa070, 0xa071, 0xa072, 0xa073, 0xa086, 0xa087, 0xa08d, 0xa08f,
0xa090, 0xa093, 0xa096, 0xa097, 0xa098, 0xa09a, 0xa0b2, 0xa0b4,
0xa0e3, 0xa0e4, 0xa0e6, 0xa0e8, 0xa0ff, 0xa106, 0xa109, 0xa112,
0xa13b, 0xa143, 0xa17a, 0xa20a, 0xa25f, 0xa260, 0xa261, 0xa262,
0xa263, 0xa2a6, 0xa2b2, 0xa30c, 0xa323, 0xa579, 0xa7e1, 0xa8c1
0x0, 0x88, 0x176, 0x218, 0x310, 0x49e, 0x832, 0xc33,
0xe99, 0xffc, 0x10e2, 0x1116, 0x12b7, 0x130e, 0x144c, 0x1617,
0x1bc8, 0x218e, 0x22ee, 0x3015, 0x3356, 0x38f3, 0x3c65, 0x4085,
0x4603, 0xa0a8, 0xa0af, 0xa0b2, 0xa0b3, 0xa0b4, 0xa0b8, 0xa0ba,
0xa0bc, 0xa0c0, 0xa0c3, 0xa0c8, 0xa0cd, 0xa0ce, 0xa0cf, 0xa0e5,
0xa0ea, 0xa0ef, 0xa0f2, 0xa0f3, 0xa0f4, 0xa0f8, 0xa0f9, 0xa0fa,
0xa0fb, 0xa10e, 0xa10f, 0xa115, 0xa117, 0xa118, 0xa11b, 0xa11e,
0xa11f, 0xa120, 0xa122, 0xa13a, 0xa13c, 0xa16b, 0xa16c, 0xa16e,
0xa170, 0xa187, 0xa18e, 0xa191, 0xa19a, 0xa1c3, 0xa1cb, 0xa202,
0xa292, 0xa2e7, 0xa2e8, 0xa2e9, 0xa2ea, 0xa2eb, 0xa32e, 0xa33a,
0xa394, 0xa3ab, 0xa601, 0xa869, 0xa949
};
/*Collect the unicode lists and glyph_id offsets*/
@ -1994,8 +2226,8 @@ static const lv_font_fmt_txt_cmap_t cmaps[] =
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
},
{
.range_start = 20449, .range_length = 43202, .glyph_id_start = 95,
.unicode_list = unicode_list_2, .glyph_id_ofs_list = NULL, .list_length = 72, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
.range_start = 20313, .range_length = 43338, .glyph_id_start = 95,
.unicode_list = unicode_list_2, .glyph_id_ofs_list = NULL, .list_length = 85, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
}
};

View File

@ -0,0 +1,157 @@
/*
* 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_burning(lv_ui *ui)
{
//Write codes screen_burning
ui->screen_burning = lv_obj_create(NULL);
lv_obj_set_size(ui->screen_burning, 128, 160);
lv_obj_set_scrollbar_mode(ui->screen_burning, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_burning, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_burning, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_burning_cont_1
ui->screen_burning_cont_1 = lv_obj_create(ui->screen_burning);
lv_obj_set_pos(ui->screen_burning_cont_1, 0, 0);
lv_obj_set_size(ui->screen_burning_cont_1, 128, 160);
lv_obj_set_scrollbar_mode(ui->screen_burning_cont_1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_burning_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_burning_cont_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_burning_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_burning_cont_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_burning_cont_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_burning_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_burning_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_burning_cont_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_burning_cont_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_burning_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_burning_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_burning_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_burning_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_burning_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_burning_bar_1
ui->screen_burning_bar_1 = lv_bar_create(ui->screen_burning_cont_1);
lv_obj_set_style_anim_time(ui->screen_burning_bar_1, 1000, 0);
lv_bar_set_mode(ui->screen_burning_bar_1, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->screen_burning_bar_1, 0, 100);
lv_bar_set_value(ui->screen_burning_bar_1, 50, LV_ANIM_OFF);
lv_obj_set_pos(ui->screen_burning_bar_1, 7, 151);
lv_obj_set_size(ui->screen_burning_bar_1, 113, 4);
//Write style for screen_burning_bar_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_burning_bar_1, 60, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_burning_bar_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_burning_bar_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_burning_bar_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_burning_bar_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_burning_bar_1, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_burning_bar_1, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_burning_bar_1, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_burning_bar_1, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_burning_bar_1, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes screen_burning_label_1
ui->screen_burning_label_1 = lv_label_create(ui->screen_burning);
lv_label_set_text(ui->screen_burning_label_1, "已连接");
lv_label_set_long_mode(ui->screen_burning_label_1, LV_LABEL_LONG_SCROLL);
lv_obj_set_pos(ui->screen_burning_label_1, 2, 0);
lv_obj_set_size(ui->screen_burning_label_1, 124, 18);
//Write style for screen_burning_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_burning_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_burning_label_1, &lv_font_GB2312_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_burning_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_burning_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_burning_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_burning_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_burning_label_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_burning_label_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_burning_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_burning_btn_1
ui->screen_burning_btn_1 = lv_btn_create(ui->screen_burning);
ui->screen_burning_btn_1_label = lv_label_create(ui->screen_burning_btn_1);
lv_label_set_text(ui->screen_burning_btn_1_label, "烧录完成");
lv_label_set_long_mode(ui->screen_burning_btn_1_label, LV_LABEL_LONG_WRAP);
lv_obj_align(ui->screen_burning_btn_1_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_burning_btn_1, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_burning_btn_1_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_burning_btn_1, 24, 122);
lv_obj_set_size(ui->screen_burning_btn_1, 80, 22);
//Write style for screen_burning_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_burning_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_burning_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_burning_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_burning_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_burning_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_burning_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_burning_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_burning_btn_1, &lv_font_GB2312_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_burning_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_burning_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_burning_spangroup_1
ui->screen_burning_spangroup_1 = lv_spangroup_create(ui->screen_burning);
lv_spangroup_set_align(ui->screen_burning_spangroup_1, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->screen_burning_spangroup_1, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->screen_burning_spangroup_1, LV_SPAN_MODE_BREAK);
//create span
ui->screen_burning_spangroup_1_span = lv_spangroup_new_span(ui->screen_burning_spangroup_1);
lv_span_set_text(ui->screen_burning_spangroup_1_span, "hello");
lv_style_set_text_color(&ui->screen_burning_spangroup_1_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->screen_burning_spangroup_1_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->screen_burning_spangroup_1_span->style, &lv_font_montserratMedium_12);
lv_obj_set_pos(ui->screen_burning_spangroup_1, 17, 30);
lv_obj_set_size(ui->screen_burning_spangroup_1, 100, 82);
//Write style state: LV_STATE_DEFAULT for &style_screen_burning_spangroup_1_main_main_default
static lv_style_t style_screen_burning_spangroup_1_main_main_default;
ui_init_style(&style_screen_burning_spangroup_1_main_main_default);
lv_style_set_border_width(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_radius(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_pad_top(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_pad_right(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_pad_left(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_style_set_shadow_width(&style_screen_burning_spangroup_1_main_main_default, 0);
lv_obj_add_style(ui->screen_burning_spangroup_1, &style_screen_burning_spangroup_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->screen_burning_spangroup_1);
//The custom code of screen_burning.
//Update current screen layout.
lv_obj_update_layout(ui->screen_burning);
//Init events for screen.
events_init_screen_burning(ui);
}

View File

@ -49,8 +49,8 @@ void setup_scr_sscreen_burn(lv_ui *ui)
//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, "OfflineBurn.bin");
lv_label_set_long_mode(ui->sscreen_burn_label_1, LV_LABEL_LONG_WRAP);
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);
@ -72,6 +72,75 @@ void setup_scr_sscreen_burn(lv_ui *ui)
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);
@ -102,15 +171,15 @@ void setup_scr_sscreen_burn(lv_ui *ui)
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, 71, 126);
lv_obj_set_size(ui->sscreen_burn_btn_1, 50, 16);
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_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_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);
@ -126,48 +195,134 @@ void setup_scr_sscreen_burn(lv_ui *ui)
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, 50, 16);
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_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_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_shadow_width(ui->sscreen_burn_btn_2, 0, 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_spangroup_1
ui->sscreen_burn_spangroup_1 = lv_spangroup_create(ui->sscreen_burn);
lv_spangroup_set_align(ui->sscreen_burn_spangroup_1, LV_TEXT_ALIGN_LEFT);
lv_spangroup_set_overflow(ui->sscreen_burn_spangroup_1, LV_SPAN_OVERFLOW_CLIP);
lv_spangroup_set_mode(ui->sscreen_burn_spangroup_1, LV_SPAN_MODE_BREAK);
//create span
ui->sscreen_burn_spangroup_1_span = lv_spangroup_new_span(ui->sscreen_burn_spangroup_1);
lv_span_set_text(ui->sscreen_burn_spangroup_1_span, "1:\n2:\n3:\n4:\n5:\n6:\n7:\n8:");
lv_style_set_text_color(&ui->sscreen_burn_spangroup_1_span->style, lv_color_hex(0x000000));
lv_style_set_text_decor(&ui->sscreen_burn_spangroup_1_span->style, LV_TEXT_DECOR_NONE);
lv_style_set_text_font(&ui->sscreen_burn_spangroup_1_span->style, &lv_font_montserratMedium_12);
lv_obj_set_pos(ui->sscreen_burn_spangroup_1, 4, 25);
lv_obj_set_size(ui->sscreen_burn_spangroup_1, 120, 96);
//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 state: LV_STATE_DEFAULT for &style_sscreen_burn_spangroup_1_main_main_default
static lv_style_t style_sscreen_burn_spangroup_1_main_main_default;
ui_init_style(&style_sscreen_burn_spangroup_1_main_main_default);
//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);
lv_style_set_border_width(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_radius(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_bg_opa(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_pad_top(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_pad_right(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_pad_bottom(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_pad_left(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_style_set_shadow_width(&style_sscreen_burn_spangroup_1_main_main_default, 0);
lv_obj_add_style(ui->sscreen_burn_spangroup_1, &style_sscreen_burn_spangroup_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_spangroup_refr_mode(ui->sscreen_burn_spangroup_1);
//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.
@ -175,4 +330,6 @@ void setup_scr_sscreen_burn(lv_ui *ui)
//Update current screen layout.
lv_obj_update_layout(ui->sscreen_burn);
//Init events for screen.
events_init_sscreen_burn(ui);
}

View File

@ -188,10 +188,10 @@ static void app_main_display(void)
custom_init(&guider_ui);
setup_ui(&guider_ui);
// events_init(&guider_ui);
lv_indev_set_group(lvgl_button_indev, guider_ui.home_btn_group); //将组绑定到输入设备
lv_group_add_obj(guider_ui.home_btn_group,guider_ui.screen_btn_1);
lv_group_add_obj(guider_ui.home_btn_group,guider_ui.screen_btn_2);
lv_group_add_obj(guider_ui.home_btn_group,guider_ui.screen_btn_3);
lv_indev_set_group(lvgl_button_indev, guider_ui.user_obj.home_btn_group); //将组绑定到输入设备
lv_group_add_obj(guider_ui.user_obj.home_btn_group,guider_ui.screen_btn_1);
lv_group_add_obj(guider_ui.user_obj.home_btn_group,guider_ui.screen_btn_2);
lv_group_add_obj(guider_ui.user_obj.home_btn_group,guider_ui.screen_btn_3);
/* Task unlock */
lvgl_port_unlock();
}

View File

@ -1,30 +1,48 @@
#include "public.h"
#include "esp_log.h"
#include "spiffs.h"
#include "flasher_tool.h"
#include "lvgl.h"
static const char *TAG = "main";
#define WRITE_BLOCK 64
EventGroupHandle_t Flasher_eventGroup;
void Flasher_tool_task(void *pvParameter)
{
EventBits_t bits;
Flasher_eventGroup = xEventGroupCreate();
#if 1
FILE* f;
uint8_t* load_buff = NULL;
const loader_esp32_config_t esp32c3_config = {
const loader_esp32_config_t esp32s2_config = {
.baud_rate = 1152000,
.uart_port = UART_NUM_1,
.uart_rx_pin = GPIO_NUM_20,
.uart_tx_pin = GPIO_NUM_21,
.reset_trigger_pin = GPIO_NUM_9,
.uart_rx_pin = GPIO_NUM_5,
.uart_tx_pin = GPIO_NUM_4,
.reset_trigger_pin = GPIO_NUM_1,
.gpio0_trigger_pin = GPIO_NUM_2,
};
if (loader_port_esp32_init(&esp32c3_config) != ESP_LOADER_SUCCESS) {
if (loader_port_esp32_init(&esp32s2_config) != ESP_LOADER_SUCCESS) {
ESP_LOGE(TAG, "serial initialization failed.");
return;
}
while (1)
{
bits = xEventGroupWaitBits(Flasher_eventGroup, EVENT_CONNECT,pdFALSE,pdFALSE,portMAX_DELAY);
if (bits&EVENT_CONNECT) {
ESP_LOGI(TAG, "connect_to_target initialization ing.");
lv_obj_t *focused_obj = lv_group_get_focused(lv_group_get_default()); // 获取当前焦点对象
if (!focused_obj) return;
printf("发送用户数据\n");
lv_event_send(focused_obj, LV_EVENT_CUSTOM_UPDATE, (void *)LV_KEY_ESC);
xEventGroupClearBits(Flasher_eventGroup,EVENT_CONNECT);
} else if (bits&EVENT_BURN_BEGIN) {
if (connect_to_target(1152000) == ESP_LOADER_SUCCESS) {
ESP_LOGI(TAG, "connect_to_target initialization success.");
@ -36,37 +54,11 @@ void Flasher_tool_task(void *pvParameter)
return;
}
}
if(esp_loader_get_target() == ESP32S3_CHIP)
{
ESP_LOGI(TAG,"Find ESP32S3");
ESP_LOGI(TAG, "Loading bin...");
// flash_binary()
#if 0
uint32_t bin_size = 749504;
uint32_t write_addr = 0;
while (bin_size)
{
if(bin_size > WRITE_BLOCK*1024)
{
if(Read_ESPFlash(0x45,write_addr,&load_buff[0],WRITE_BLOCK*1024) == WRITE_BLOCK*1024)
{
flash_binary(&load_buff[0],WRITE_BLOCK*1024,write_addr);
write_addr+=WRITE_BLOCK*1024;
bin_size -= WRITE_BLOCK*1024;
ESP_LOGI(TAG,"Load : %ld --- %ld",write_addr,bin_size);
}
}else{
Read_ESPFlash(0x45,write_addr,&load_buff[0],bin_size);
flash_binary(&load_buff[0],bin_size,write_addr);
write_addr += bin_size;
bin_size = 0;
ESP_LOGI(TAG,"Load : %ld --- %ld",write_addr,bin_size);
break;
}
}
#else
f = fopen("/spiffs/target_esp32s3.bin", "rb");
if (f == NULL) {
ESP_LOGE(FILE_TAG, "Failed to open file for writing");
@ -100,7 +92,6 @@ void Flasher_tool_task(void *pvParameter)
}
}
fclose(f);
#endif
ESP_LOGI(TAG, "Loading bin success");
ESP_LOGI(TAG, "Done!");
@ -119,6 +110,13 @@ void Flasher_tool_task(void *pvParameter)
}
free(load_buff);
loader_port_esp32_deinit();
xEventGroupClearBits(Flasher_eventGroup,EVENT_BURN_BEGIN);
}
}
vTaskDelete(NULL);
#endif
}

13
main/flasher_tool.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef FLASHER_TOOL_H
#define FLASHER_TOOL_H
#include "public.h"
#define LV_EVENT_CUSTOM_UPDATE _LV_EVENT_LAST + 1
#define EVENT_CONNECT BIT10
#define EVENT_BURN_BEGIN BIT11
extern EventGroupHandle_t Flasher_eventGroup;
#endif

View File

@ -84,7 +84,7 @@ void app_main(void)
ESP_ERROR_CHECK(err);
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
xTaskCreate(&Gui_Task, "Gui_Task", 1024*20, NULL, 12, NULL);
xTaskCreate(&Gui_Task, "Gui_Task", 1024*30, NULL, 12, NULL);
init_spiffs();
list_files_in_spiffs("/spiffs",off_line_tool.directory, 10);
ESP_LOGI(TAG, "Found file: %s, size: %ld bytes", off_line_tool.directory[0].name, off_line_tool.directory[0].size);
@ -124,7 +124,7 @@ void app_main(void)
#endif
xTaskCreate(&Read_CMD_task, "Read_CMD_task", 1024*20, NULL, 14, NULL);
xTaskCreate(&usb_serial_task,"usb_serial_task",1024*10,NULL,22,NULL);
// xTaskCreate(&Flasher_tool_task, "Flasher_tool_task", 1024*20, NULL, 10, NULL);
xTaskCreate(&Flasher_tool_task, "Flasher_tool_task", 1024*20, NULL, 10, NULL);
#if 0
home_html.html_data = load_html2Ram(home_html);
wifi_config_html.html_data = load_html2Ram(wifi_config_html);