1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(demo/stress): remove the unused assets (#3139)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-02 02:38:32 +08:00 committed by GitHub
parent 5a3ca098f7
commit 4078a571dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 1184 deletions

View File

@ -5,7 +5,7 @@
A stress test for LVGL.
It contains a lot of object creation, deletion, animations, styles usage, and so on. It can be used if there is any memory corruption during heavy usage or any memory leaks.
![Printer demo with LVGL embedded GUI library](https://github.com/lvgl/lvgl/tree/master/demos/stress/screenshot1.gif?raw=true)
![Stress demo with LVGL embedded GUI library](https://github.com/lvgl/lvgl/tree/master/demos/stress/screenshot1.gif?raw=true)
## Run the demo
- In `lv_conf.h` or equivalent places set `LV_USE_DEMO_STRESS 1`

View File

@ -1,318 +0,0 @@
#include "../../../lvgl.h"
#if LV_USE_DEMO_STRESS
/*******************************************************************************
* Size: 12 px
* Bpp: 4
* Opts:
******************************************************************************/
#ifndef LV_FONT_MONTSERRAT_12_COMPR_AZ
#define LV_FONT_MONTSERRAT_12_COMPR_AZ 1
#endif
#if LV_FONT_MONTSERRAT_12_COMPR_AZ
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = {
/* U+20 " " */
/* U+61 "a" */
0x8, 0xdf, 0xc3, 0x0, 0x14, 0xea, 0xf0, 0x2,
0x90, 0xa0, 0x84, 0x23, 0x7b, 0xc0, 0xd1, 0xb3,
0xb8, 0x1, 0x84, 0x1c, 0x0, 0x8f, 0xdb, 0xe0,
0x0,
/* U+62 "b" */
0xe4, 0x0, 0xff, 0xe4, 0x1e, 0x7e, 0x20, 0x2,
0x27, 0x52, 0xc8, 0x25, 0x4a, 0x12, 0x80, 0x80,
0x23, 0x20, 0x20, 0x8, 0xc8, 0x25, 0x4a, 0x12,
0x82, 0x63, 0x52, 0xc8,
/* U+63 "c" */
0x2, 0xbf, 0xe8, 0x0, 0x78, 0xed, 0x21, 0xa8,
0x51, 0x26, 0x19, 0x30, 0x7, 0x13, 0x0, 0x72,
0x85, 0x12, 0x69, 0x87, 0x8e, 0xd2, 0x98,
/* U+64 "d" */
0x0, 0xe1, 0xf1, 0x0, 0xff, 0xe2, 0x95, 0xfe,
0xb8, 0x5, 0x85, 0xbd, 0x60, 0x5, 0x39, 0x23,
0x90, 0x1, 0x30, 0x4, 0xa0, 0x2, 0x60, 0x8,
0x80, 0xa, 0x72, 0x25, 0xc0, 0x16, 0x17, 0x65,
0x80, 0x0,
/* U+65 "e" */
0x2, 0xbf, 0xd5, 0x0, 0x61, 0xf4, 0xda, 0x29,
0x40, 0xa4, 0x79, 0x1f, 0x75, 0xe, 0x44, 0xee,
0xd8, 0xa7, 0x24, 0x74, 0x41, 0x85, 0xba, 0x32,
/* U+66 "f" */
0x1, 0xcf, 0x60, 0x86, 0xe7, 0x2, 0xc1, 0x16,
0xa4, 0xf9, 0xea, 0x4f, 0x98, 0x7, 0xff, 0x34,
/* U+67 "g" */
0x2, 0xbf, 0xe6, 0xe2, 0xc, 0x1d, 0xd5, 0x8,
0x29, 0xd1, 0x1f, 0x0, 0x9, 0x80, 0x22, 0x0,
0x13, 0x0, 0x44, 0x0, 0x53, 0xa2, 0x3f, 0x0,
0xb0, 0x77, 0x50, 0x1, 0x15, 0xff, 0x38, 0x10,
0x63, 0x11, 0xca, 0x80, 0x2a, 0xf7, 0x43, 0x60,
/* U+68 "h" */
0xe4, 0x0, 0xff, 0xe4, 0x1e, 0xfe, 0x10, 0x2,
0x65, 0xad, 0xc0, 0x8, 0x42, 0x83, 0x0, 0x10,
0x0, 0x80, 0x40, 0x3c, 0x60, 0x1f, 0xfc, 0x20,
/* U+69 "i" */
0xd, 0x40, 0x56, 0x8, 0x20, 0xe4, 0x0, 0xff,
0xe3, 0x0,
/* U+6A "j"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x60, 0x2b, 0x80, 0x27, 0xa0,
0x64, 0x20, 0x52, 0x20, 0xa, 0xa8, 0x3a, 0x40,
0x2e, 0xa1, 0x55, 0x0, 0x48, 0x74, 0xe0, 0x1c,
0xc9, 0x40, 0x1d, 0xa4, 0x60, 0x12, 0x94, 0xd8,
0x4, 0x33, 0xaa, 0xc0, 0x10,
/* U+7A "z" */
0x7f, 0xfd, 0x6f, 0xfe, 0xd0, 0x80, 0xb, 0xa0,
0xc0, 0x12, 0xee, 0x0, 0x23, 0xd0, 0x0, 0x6a,
0xc4, 0x1, 0x23, 0x5f, 0xed
};
/*---------------------
* GLYPH DESCRIPTION
*--------------------*/
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
{.bitmap_index = 0, .adv_w = 52, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 115, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 25, .adv_w = 131, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 53, .adv_w = 110, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 76, .adv_w = 131, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 110, .adv_w = 118, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 134, .adv_w = 68, .box_w = 5, .box_h = 10, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 150, .adv_w = 132, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 190, .adv_w = 131, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 214, .adv_w = 54, .box_w = 3, .box_h = 10, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 224, .adv_w = 55, .box_w = 5, .box_h = 13, .ofs_x = -2, .ofs_y = -3},
{.bitmap_index = 241, .adv_w = 118, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 265, .adv_w = 54, .box_w = 2, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 270, .adv_w = 203, .box_w = 11, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 296, .adv_w = 131, .box_w = 7, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 316, .adv_w = 122, .box_w = 8, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 344, .adv_w = 131, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = -3},
{.bitmap_index = 375, .adv_w = 131, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 409, .adv_w = 79, .box_w = 4, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 420, .adv_w = 96, .box_w = 6, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 442, .adv_w = 79, .box_w = 5, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 460, .adv_w = 130, .box_w = 7, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 478, .adv_w = 107, .box_w = 8, .box_h = 7, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 505, .adv_w = 173, .box_w = 11, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 545, .adv_w = 106, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 570, .adv_w = 107, .box_w = 8, .box_h = 10, .ofs_x = -1, .ofs_y = -3},
{.bitmap_index = 607, .adv_w = 100, .box_w = 6, .box_h = 7, .ofs_x = 0, .ofs_y = 0}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 1, .glyph_id_start = 1,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
},
{
.range_start = 97, .range_length = 26, .glyph_id_start = 2,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*-----------------
* KERNING
*----------------*/
/*Map glyph_ids to kern left classes*/
static const uint8_t kern_left_class_mapping[] =
{
0, 0, 1, 2, 3, 4, 5, 6,
0, 1, 0, 0, 7, 4, 1, 1,
2, 2, 8, 9, 10, 11, 0, 12,
12, 13, 12, 14
};
/*Map glyph_ids to kern right classes*/
static const uint8_t kern_right_class_mapping[] =
{
0, 0, 1, 2, 3, 3, 3, 0,
3, 2, 4, 5, 2, 2, 4, 4,
3, 4, 3, 4, 6, 7, 8, 9,
9, 10, 9, 11
};
/*Kern values between classes*/
static const int8_t kern_class_values[] =
{
0, 0, 1, 0, 0, 0, 0, 0,
-2, 0, 0, -1, 0, 0, 0, 0,
0, 0, 0, -3, -3, -2, 0, -1,
-2, 0, 0, 0, 1, 0, -1, -3,
-1, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, -3, 0, 0, 0,
0, 0, 0, 0, -2, -3, -1, -2,
0, -2, 15, 8, 0, 0, 0, 2,
0, 0, -2, 0, -4, -1, 0, -3,
0, -2, -5, -4, -2, 0, 0, 0,
0, 10, 0, 0, 0, 0, 0, 0,
-2, -1, -2, -1, 0, -1, 3, 0,
3, -1, 0, 0, 0, 0, 0, 0,
0, 0, 0, -2, -2, 0, 0, 0,
-3, 0, 0, 0, -2, 0, -2, 0,
0, -3, 0, -3, 0, -3, -1, 3,
0, -2, -6, -2, -2, 0, -3, 0,
1, -2, 0, -2, -6, 0, -2, 0,
0, -2, 0, 0, 0, 0, 0, -2,
-2, 0
};
/*Collect the kern class' data in one place*/
static const lv_font_fmt_txt_kern_classes_t kern_classes =
{
.class_pair_values = kern_class_values,
.left_class_mapping = kern_left_class_mapping,
.right_class_mapping = kern_right_class_mapping,
.left_class_cnt = 14,
.right_class_cnt = 11,
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
/*Store all the custom data of the font*/
static lv_font_fmt_txt_dsc_t font_dsc = {
.glyph_bitmap = gylph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = &kern_classes,
.kern_scale = 16,
.cmap_num = 2,
.bpp = 4,
.kern_classes = 1,
.bitmap_format = 1
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
lv_font_t lv_font_montserrat_12_compr_az = {
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 13, /*The maximum line height required by the font*/
.base_line = 3, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if LV_FONT_MONTSERRAT_12_COMPR_AZ*/
#endif

View File

@ -1,357 +0,0 @@
#include "../../../lvgl.h"
#if LV_USE_DEMO_STRESS
/*******************************************************************************
* Size: 16 px
* Bpp: 4
* Opts:
******************************************************************************/
#ifndef LV_FONT_MONTSERRAT_16_COMPR_AZ
#define LV_FONT_MONTSERRAT_16_COMPR_AZ 1
#endif
#if LV_FONT_MONTSERRAT_16_COMPR_AZ
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = {
/* U+20 " " */
/* U+61 "a" */
0x1, 0x9e, 0xfd, 0x80, 0xb, 0x5d, 0x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, 0x4a, 0xd5, 0x64, 0xd, 0x15, 0x58,
0x51, 0xd0, 0x2, 0x1a, 0x38, 0x0, 0xd4, 0x1a,
0x1, 0xa1, 0x28, 0x40, 0x24, 0x78, 0x40, 0x8,
0x68, 0x49, 0x56, 0x34, 0x11, 0x55, 0x6f
};
/*---------------------
* GLYPH DESCRIPTION
*--------------------*/
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
{.bitmap_index = 0, .adv_w = 69, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 153, .box_w = 9, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 40, .adv_w = 175, .box_w = 10, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 86, .adv_w = 146, .box_w = 9, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 123, .adv_w = 175, .box_w = 10, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 171, .adv_w = 157, .box_w = 10, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 214, .adv_w = 90, .box_w = 7, .box_h = 12, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 238, .adv_w = 177, .box_w = 10, .box_h = 12, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 298, .adv_w = 174, .box_w = 9, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 327, .adv_w = 71, .box_w = 3, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 336, .adv_w = 73, .box_w = 6, .box_h = 15, .ofs_x = -2, .ofs_y = -3},
{.bitmap_index = 358, .adv_w = 158, .box_w = 9, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 395, .adv_w = 71, .box_w = 2, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 400, .adv_w = 271, .box_w = 15, .box_h = 9, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 440, .adv_w = 174, .box_w = 9, .box_h = 9, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 466, .adv_w = 163, .box_w = 10, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 509, .adv_w = 175, .box_w = 10, .box_h = 12, .ofs_x = 1, .ofs_y = -3},
{.bitmap_index = 559, .adv_w = 175, .box_w = 10, .box_h = 12, .ofs_x = 0, .ofs_y = -3},
{.bitmap_index = 609, .adv_w = 105, .box_w = 6, .box_h = 9, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 625, .adv_w = 128, .box_w = 8, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 662, .adv_w = 106, .box_w = 7, .box_h = 11, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 689, .adv_w = 173, .box_w = 9, .box_h = 9, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 714, .adv_w = 143, .box_w = 10, .box_h = 9, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 754, .adv_w = 230, .box_w = 15, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 819, .adv_w = 141, .box_w = 9, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 857, .adv_w = 143, .box_w = 10, .box_h = 12, .ofs_x = -1, .ofs_y = -3},
{.bitmap_index = 909, .adv_w = 133, .box_w = 8, .box_h = 9, .ofs_x = 0, .ofs_y = 0}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 1, .glyph_id_start = 1,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
},
{
.range_start = 97, .range_length = 26, .glyph_id_start = 2,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*-----------------
* KERNING
*----------------*/
/*Map glyph_ids to kern left classes*/
static const uint8_t kern_left_class_mapping[] =
{
0, 0, 1, 2, 3, 4, 5, 6,
0, 1, 0, 0, 7, 4, 1, 1,
2, 2, 8, 9, 10, 11, 0, 12,
12, 13, 12, 14
};
/*Map glyph_ids to kern right classes*/
static const uint8_t kern_right_class_mapping[] =
{
0, 0, 1, 2, 3, 3, 3, 0,
3, 2, 4, 5, 2, 2, 4, 4,
3, 4, 3, 4, 6, 7, 8, 9,
9, 10, 9, 11
};
/*Kern values between classes*/
static const int8_t kern_class_values[] =
{
0, 0, 1, 0, 0, 0, 0, 0,
-3, 0, 0, -1, 0, 0, 0, 0,
0, 0, 0, -4, -5, -2, 0, -2,
-2, 0, 0, 0, 2, 0, -2, -4,
-2, 0, 0, 0, 0, 0, 0, 3,
0, 0, 0, 0, -4, 0, 0, 0,
0, 0, 0, 0, -3, -4, -1, -3,
0, -2, 20, 11, 0, 0, 0, 3,
0, 0, -3, 0, -6, -2, 0, -4,
0, -3, -7, -5, -3, 0, 0, 0,
0, 13, 0, 0, 0, 0, 0, 0,
-2, -2, -3, -2, 0, -1, 4, 0,
4, -2, 0, 0, 0, 0, 0, 0,
0, 0, 0, -3, -3, 0, 0, 0,
-5, 0, 0, 0, -3, 0, -3, 0,
0, -4, 0, -4, 0, -4, -2, 4,
0, -2, -8, -3, -3, 0, -5, 0,
2, -3, 0, -3, -8, 0, -3, 0,
0, -2, 0, 0, 0, 1, 0, -3,
-3, 0
};
/*Collect the kern class' data in one place*/
static const lv_font_fmt_txt_kern_classes_t kern_classes =
{
.class_pair_values = kern_class_values,
.left_class_mapping = kern_left_class_mapping,
.right_class_mapping = kern_right_class_mapping,
.left_class_cnt = 14,
.right_class_cnt = 11,
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
/*Store all the custom data of the font*/
static lv_font_fmt_txt_dsc_t font_dsc = {
.glyph_bitmap = gylph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = &kern_classes,
.kern_scale = 16,
.cmap_num = 2,
.bpp = 4,
.kern_classes = 1,
.bitmap_format = 1
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
lv_font_t lv_font_montserrat_16_compr_az = {
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 15, /*The maximum line height required by the font*/
.base_line = 3, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if LV_FONT_MONTSERRAT_16_COMPR_AZ*/
#endif

View File

@ -1,507 +0,0 @@
#include "../../../lvgl.h"
#if LV_USE_DEMO_STRESS
/*******************************************************************************
* Size: 28 px
* Bpp: 4
* Opts:
******************************************************************************/
#ifndef LV_FONT_MONTSERRAT_28_COMPR_AZ
#define LV_FONT_MONTSERRAT_28_COMPR_AZ 1
#endif
#if LV_FONT_MONTSERRAT_28_COMPR_AZ
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = {
/* U+20 " " */
/* U+61 "a" */
0x0, 0xb, 0xdf, 0x7f, 0xb6, 0x90, 0x3, 0x47,
0x42, 0x8, 0x0, 0x96, 0xe4, 0x2, 0x50, 0x15,
0x9a, 0x95, 0x0, 0x33, 0x0, 0x1d, 0x1d, 0x4c,
0xad, 0x5a, 0x0, 0x80, 0x1, 0xb8, 0x7, 0x89,
0xc0, 0x48, 0x3, 0xfd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0x2,
0xa0, 0xf, 0x87, 0xc0, 0x1c, 0x20, 0x1f, 0x51,
0x5, 0x18, 0x7, 0xd0, 0x80, 0xea, 0x1, 0xf2,
0x38, 0x24, 0x0, 0x7c, 0x56, 0x3, 0x40, 0x1f,
0xbc, 0x1, 0xa2, 0x1, 0xf5, 0x10, 0x49, 0x80,
0x7c, 0xea, 0xc, 0xc0, 0xf, 0x92, 0x0, 0x68,
0xcf, 0xe1, 0x90, 0x0, 0xe6, 0x7e, 0x93, 0x0,
0xff, 0xe0, 0x0
};
/*---------------------
* GLYPH DESCRIPTION
*--------------------*/
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
{.bitmap_index = 0, .adv_w = 121, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 268, .box_w = 14, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 93, .adv_w = 306, .box_w = 16, .box_h = 21, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 197, .adv_w = 256, .box_w = 15, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 292, .adv_w = 306, .box_w = 16, .box_h = 21, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 399, .adv_w = 274, .box_w = 15, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 493, .adv_w = 158, .box_w = 11, .box_h = 21, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 545, .adv_w = 309, .box_w = 16, .box_h = 20, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 685, .adv_w = 305, .box_w = 15, .box_h = 21, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 747, .adv_w = 125, .box_w = 4, .box_h = 21, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 764, .adv_w = 127, .box_w = 9, .box_h = 26, .ofs_x = -3, .ofs_y = -5},
{.bitmap_index = 810, .adv_w = 276, .box_w = 16, .box_h = 21, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 898, .adv_w = 125, .box_w = 4, .box_h = 21, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 905, .adv_w = 474, .box_w = 26, .box_h = 15, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1000, .adv_w = 305, .box_w = 15, .box_h = 15, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1056, .adv_w = 284, .box_w = 16, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1160, .adv_w = 306, .box_w = 16, .box_h = 20, .ofs_x = 2, .ofs_y = -5},
{.bitmap_index = 1266, .adv_w = 306, .box_w = 16, .box_h = 20, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 1374, .adv_w = 184, .box_w = 9, .box_h = 15, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1404, .adv_w = 224, .box_w = 14, .box_h = 15, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1499, .adv_w = 185, .box_w = 11, .box_h = 19, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1551, .adv_w = 303, .box_w = 15, .box_h = 15, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1602, .adv_w = 250, .box_w = 17, .box_h = 15, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 1700, .adv_w = 403, .box_w = 25, .box_h = 15, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1855, .adv_w = 247, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1953, .adv_w = 250, .box_w = 17, .box_h = 20, .ofs_x = -1, .ofs_y = -5},
{.bitmap_index = 2081, .adv_w = 233, .box_w = 13, .box_h = 15, .ofs_x = 1, .ofs_y = 0}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 1, .glyph_id_start = 1,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
},
{
.range_start = 97, .range_length = 26, .glyph_id_start = 2,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*-----------------
* KERNING
*----------------*/
/*Map glyph_ids to kern left classes*/
static const uint8_t kern_left_class_mapping[] =
{
0, 0, 1, 2, 3, 4, 5, 6,
0, 1, 0, 0, 7, 4, 1, 1,
2, 2, 8, 9, 10, 11, 0, 12,
12, 13, 12, 14
};
/*Map glyph_ids to kern right classes*/
static const uint8_t kern_right_class_mapping[] =
{
0, 0, 1, 2, 3, 3, 3, 0,
3, 2, 4, 5, 2, 2, 4, 4,
3, 4, 3, 4, 6, 7, 8, 9,
9, 10, 9, 11
};
/*Kern values between classes*/
static const int8_t kern_class_values[] =
{
0, 0, 1, 0, 0, 0, 0, 0,
-4, 0, 0, -2, 0, 0, 0, 0,
0, 0, 0, -7, -8, -4, 0, -3,
-4, 0, 0, 0, 3, 0, -3, -8,
-3, 0, 0, 0, 0, 0, 0, 6,
0, 0, 0, 0, -7, 0, 0, 0,
0, 0, 0, 0, -4, -7, -2, -4,
0, -4, 36, 19, 0, 0, 0, 4,
0, 0, -4, 0, -10, -3, 0, -8,
0, -4, -13, -9, -5, 0, 0, 0,
0, 22, 0, 0, 0, 0, 0, 0,
-4, -3, -5, -3, 0, -1, 7, 0,
7, -3, 0, 0, 0, 0, 0, 0,
0, 0, 0, -4, -4, 0, 0, 0,
-8, 0, 0, 0, -6, 0, -4, 0,
0, -8, 0, -7, 0, -7, -3, 7,
0, -4, -13, -4, -4, 0, -8, 0,
3, -4, 0, -4, -13, 0, -4, 0,
0, -4, 0, 0, 0, 1, 0, -4,
-4, 0
};
/*Collect the kern class' data in one place*/
static const lv_font_fmt_txt_kern_classes_t kern_classes =
{
.class_pair_values = kern_class_values,
.left_class_mapping = kern_left_class_mapping,
.right_class_mapping = kern_right_class_mapping,
.left_class_cnt = 14,
.right_class_cnt = 11,
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
/*Store all the custom data of the font*/
static lv_font_fmt_txt_dsc_t font_dsc = {
.glyph_bitmap = gylph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = &kern_classes,
.kern_scale = 16,
.cmap_num = 2,
.bpp = 4,
.kern_classes = 1,
.bitmap_format = 1
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
lv_font_t lv_font_montserrat_28_compr_az = {
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 26, /*The maximum line height required by the font*/
.base_line = 5, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if LV_FONT_MONTSERRAT_28_COMPR_AZ*/
#endif

View File

@ -422,7 +422,7 @@ static void obj_test_task_cb(lv_timer_t * tmr)
}
// printf("step end: %d\n", state);
state ++;
state++;
}
static void auto_del(lv_obj_t * obj, uint32_t delay)