LVGL add Led 7 seg font (#11916)

* LVGL add Led 7 seg font

* Moved fonts to a new LVGL_assets lib

* Forgot include

Co-authored-by: Stephan Hadinger <stephan.hadinger@gmail.com>
This commit is contained in:
s-hadinger 2021-04-27 19:05:23 +02:00 committed by GitHub
parent 994c3a0f32
commit e31998620f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 7160 additions and 4431 deletions

View File

@ -14,6 +14,8 @@
extern int lv0_start(bvm *vm);
extern int lv0_load_montserrat_font(bvm *vm);
extern int lv0_load_seg7_font(bvm *vm);
extern int lv0_load_font(bvm *vm);
extern int lv0_scr_act(bvm *vm);
extern int lv0_layer_top(bvm *vm);
@ -611,6 +613,9 @@ be_native_module_attr_table(lvgl) {
be_native_module_function("start", lv0_start),
be_native_module_function("montserrat_font", lv0_load_montserrat_font),
be_native_module_function("seg7_font", lv0_load_seg7_font),
be_native_module_function("load_font", lv0_load_font),
// screen and layers
be_native_module_function("scr_act", lv0_scr_act),
@ -1148,6 +1153,8 @@ module lvgl (scope: global) {
start, func(lv0_start)
montserrat_font, func(lv0_load_montserrat_font)
seg7_font, func(lv0_load_seg7_font)
load_font, func(lv0_load_font)
scr_act, func(lv0_scr_act)
layer_top, func(lv0_layer_top)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,468 +1,470 @@
#include "be_constobj.h"
static be_define_const_map_slots(m_liblvgl_map) {
{ be_const_key(DISP_SIZE_MEDIUM, -1), be_const_int(1) },
{ be_const_key(BORDER_SIDE_INTERNAL, -1), be_const_int(16) },
{ be_const_key(SYMBOL_PAUSE, -1), be_const_str(&be_local_const_str_SYMBOL_PAUSE) },
{ be_const_key(FS_RES_FS_ERR, 193), be_const_int(2) },
{ be_const_key(ANIM_ON, -1), be_const_int(1) },
{ be_const_key(OPA_40, -1), be_const_int(102) },
{ be_const_key(SCROLLBAR_MODE_OFF, 400), be_const_int(0) },
{ be_const_key(STYLE_VALUE_FONT, 280), be_const_int(126) },
{ be_const_key(STYLE_TRANSFORM_HEIGHT, -1), be_const_int(5) },
{ be_const_key(ARC_PART_INDIC, -1), be_const_int(1) },
{ be_const_key(DISP_ROT_NONE, 395), be_const_int(0) },
{ be_const_key(scr_act, 433), be_const_func(lv0_scr_act) },
{ be_const_key(STYLE_PAD_BOTTOM, -1), be_const_int(17) },
{ be_const_key(SYMBOL_BATTERY_FULL, 278), be_const_str(&be_local_const_str_SYMBOL_BATTERY_FULL) },
{ be_const_key(RED, -1), be_const_int(16711680) },
{ be_const_key(TXT_CMD_STATE_IN, 130), be_const_int(2) },
{ be_const_key(GRAD_DIR_NONE, -1), be_const_int(0) },
{ be_const_key(OPA_100, -1), be_const_int(255) },
{ be_const_key(SLIDER_TYPE_RANGE, 370), be_const_int(2) },
{ be_const_key(SYMBOL_BATTERY_2, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_2) },
{ be_const_key(STYLE_VALUE_OFS_X, 434), be_const_int(115) },
{ be_const_key(STYLE_SCALE_WIDTH, -1), be_const_int(192) },
{ be_const_key(STYLE_SCALE_END_BORDER_WIDTH, -1), be_const_int(194) },
{ be_const_key(ALIGN_OUT_TOP_RIGHT, -1), be_const_int(11) },
{ be_const_key(ALIGN_OUT_LEFT_TOP, -1), be_const_int(15) },
{ be_const_key(SYMBOL_SD_CARD, -1), be_const_str(&be_local_const_str_SYMBOL_SD_CARD) },
{ be_const_key(EVENT_INSERT, -1), be_const_int(17) },
{ be_const_key(SYMBOL_PLAY, -1), be_const_str(&be_local_const_str_SYMBOL_PLAY) },
{ be_const_key(VSPI, -1), be_const_int(1) },
{ be_const_key(STYLE_SHADOW_WIDTH, 376), be_const_int(80) },
{ be_const_key(LABEL_LONG_CROP, -1), be_const_int(5) },
{ be_const_key(ALIGN_IN_TOP_RIGHT, -1), be_const_int(3) },
{ be_const_key(LAYOUT_ROW_MID, -1), be_const_int(6) },
{ be_const_key(OPA_70, -1), be_const_int(178) },
{ be_const_key(SYMBOL_SHUFFLE, -1), be_const_str(&be_local_const_str_SYMBOL_SHUFFLE) },
{ be_const_key(EVENT_APPLY, 66), be_const_int(19) },
{ be_const_key(layer_top, -1), be_const_func(lv0_layer_top) },
{ be_const_key(OBJ_PART_ALL, -1), be_const_int(255) },
{ be_const_key(STYLE_BG_GRAD_STOP, 8), be_const_int(34) },
{ be_const_key(STYLE_VALUE_STR, -1), be_const_int(127) },
{ be_const_key(LABEL_ALIGN_LEFT, -1), be_const_int(0) },
{ be_const_key(CHART_CURSOR_DOWN, -1), be_const_int(8) },
{ be_const_key(OBJ_PART_VIRTUAL_FIRST, 41), be_const_int(1) },
{ be_const_key(GRAD_DIR_HOR, 44), be_const_int(2) },
{ be_const_key(LAYOUT_PRETTY_MID, 183), be_const_int(9) },
{ be_const_key(STYLE_VALUE_BLEND_MODE, -1), be_const_int(114) },
{ be_const_key(CHART_PART_CURSOR, 243), be_const_int(3) },
{ be_const_key(BAR_TYPE_SYMMETRICAL, 308), be_const_int(1) },
{ be_const_key(EVENT_FOCUSED, 122), be_const_int(13) },
{ be_const_key(ROLLER_MODE_NORMAL, 177), be_const_int(0) },
{ be_const_key(WHITE, 281), be_const_int(16777215) },
{ be_const_key(KEY_PREV, -1), be_const_int(11) },
{ be_const_key(SYMBOL_BATTERY_1, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_1) },
{ be_const_key(STYLE_PAD_RIGHT, -1), be_const_int(19) },
{ be_const_key(LABEL_LONG_SROLL, -1), be_const_int(3) },
{ be_const_key(FS_RES_NOT_IMP, -1), be_const_int(9) },
{ be_const_key(STYLE_TRANSITION_DELAY, -1), be_const_int(177) },
{ be_const_key(STYLE_VALUE_ALIGN, 276), be_const_int(117) },
{ be_const_key(SYMBOL_FILE, -1), be_const_str(&be_local_const_str_SYMBOL_FILE) },
{ be_const_key(STYLE_BORDER_BLEND_MODE, -1), be_const_int(50) },
{ be_const_key(OPA_80, 59), be_const_int(204) },
{ be_const_key(LAYOUT_CENTER, -1), be_const_int(1) },
{ be_const_key(KEY_END, -1), be_const_int(3) },
{ be_const_key(KEY_NEXT, -1), be_const_int(9) },
{ be_const_key(STYLE_LINE_ROUNDED, 420), be_const_int(148) },
{ be_const_key(CHART_AXIS_PRIMARY_Y, 427), be_const_int(0) },
{ be_const_key(SYMBOL_BULLET, -1), be_const_str(&be_local_const_str_SYMBOL_BULLET) },
{ be_const_key(BORDER_SIDE_TOP, -1), be_const_int(2) },
{ be_const_key(SCROLLBAR_MODE_HIDE, -1), be_const_int(4) },
{ be_const_key(TXT_FLAG_RIGHT, 238), be_const_int(8) },
{ be_const_key(FIT_TIGHT, 20), be_const_int(1) },
{ be_const_key(KEY_BACKSPACE, -1), be_const_int(8) },
{ be_const_key(GAUGE_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(SPI, 178), be_const_int(0) },
{ be_const_key(STYLE_TEXT_BLEND_MODE, 430), be_const_int(32899) },
{ be_const_key(EVENT_DRAG_THROW_BEGIN, 121), be_const_int(10) },
{ be_const_key(KEYBOARD_MODE_SPECIAL, -1), be_const_int(2) },
{ be_const_key(SYMBOL_BACKSPACE, 187), be_const_str(&be_local_const_str_SYMBOL_BACKSPACE) },
{ be_const_key(TABVIEW_TAB_POS_RIGHT, 0), be_const_int(4) },
{ be_const_key(STYLE_PATTERN_BLEND_MODE, 233), be_const_int(96) },
{ be_const_key(BTN_STATE_CHECKED_RELEASED, -1), be_const_int(3) },
{ be_const_key(EVENT_LONG_PRESSED, -1), be_const_int(4) },
{ be_const_key(STYLE_VALUE_OFS_X, 424), be_const_int(115) },
{ be_const_key(DISP_ROT_180, -1), be_const_int(2) },
{ be_const_key(SYMBOL_PLUS, 152), be_const_str(&be_local_const_str_SYMBOL_PLUS) },
{ be_const_key(TABVIEW_TAB_POS_BOTTOM, 143), be_const_int(2) },
{ be_const_key(KEYBOARD_MODE_NUM, 228), be_const_int(3) },
{ be_const_key(PROTECT_CLICK_FOCUS, -1), be_const_int(32) },
{ be_const_key(CHART_CURSOR_LEFT, 300), be_const_int(4) },
{ be_const_key(PROTECT_FOLLOW, 53), be_const_int(8) },
{ be_const_key(FS_RES_OUT_OF_MEM, -1), be_const_int(10) },
{ be_const_key(FS_RES_INV_PARAM, -1), be_const_int(11) },
{ be_const_key(STYLE_BORDER_COLOR, -1), be_const_int(57) },
{ be_const_key(FS_MODE_RD, -1), be_const_int(2) },
{ be_const_key(LAYOUT_OFF, 263), be_const_int(0) },
{ be_const_key(CHART_PART_SERIES, -1), be_const_int(2) },
{ be_const_key(STYLE_TRANSITION_PROP_1, 388), be_const_int(178) },
{ be_const_key(STYLE_VALUE_STR, -1), be_const_int(127) },
{ be_const_key(SYMBOL_SETTINGS, -1), be_const_str(&be_local_const_str_SYMBOL_SETTINGS) },
{ be_const_key(FS_RES_BUSY, -1), be_const_int(7) },
{ be_const_key(BLACK, 303), be_const_int(0) },
{ be_const_key(CHART_TYPE_LINE, -1), be_const_int(1) },
{ be_const_key(LAYOUT_GRID, 267), be_const_int(11) },
{ be_const_key(STYLE_VALUE_FONT, -1), be_const_int(126) },
{ be_const_key(OPA_40, -1), be_const_int(102) },
{ be_const_key(STYLE_TRANSITION_PROP_6, -1), be_const_int(183) },
{ be_const_key(STYLE_BORDER_BLEND_MODE, 370), be_const_int(50) },
{ be_const_key(CALENDAR_PART_DAY_NAMES, 158), be_const_int(2) },
{ be_const_key(FS_RES_TOUT, -1), be_const_int(8) },
{ be_const_key(LABEL_ALIGN_LEFT, 198), be_const_int(0) },
{ be_const_key(BORDER_SIDE_RIGHT, -1), be_const_int(8) },
{ be_const_key(DISP_SIZE_MEDIUM, -1), be_const_int(1) },
{ be_const_key(SYMBOL_HOME, 350), be_const_str(&be_local_const_str_SYMBOL_HOME) },
{ be_const_key(CALENDAR_PART_BG, -1), be_const_int(0) },
{ be_const_key(SILVER, 274), be_const_int(12632256) },
{ be_const_key(STYLE_TEXT_LINE_SPACE, -1), be_const_int(32897) },
{ be_const_key(STYLE_BG_COLOR, -1), be_const_int(41) },
{ be_const_key(RED, -1), be_const_int(16711680) },
{ be_const_key(STYLE_BG_OPA, 442), be_const_int(44) },
{ be_const_key(OPA_10, -1), be_const_int(25) },
{ be_const_key(STYLE_VALUE_OFS_Y, 56), be_const_int(116) },
{ be_const_key(LAYOUT_OFF, 164), be_const_int(0) },
{ be_const_key(ARC_TYPE_REVERSE, -1), be_const_int(2) },
{ be_const_key(ALIGN_OUT_TOP_MID, 297), be_const_int(10) },
{ be_const_key(KEYBOARD_MODE_SPECIAL, 367), be_const_int(2) },
{ be_const_key(BORDER_SIDE_BOTTOM, 394), be_const_int(1) },
{ be_const_key(CHART_CURSOR_RIGHT, 412), be_const_int(1) },
{ be_const_key(STATE_FOCUSED, -1), be_const_int(2) },
{ be_const_key(OBJ_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(STYLE_TRANSFORM_ZOOM, 290), be_const_int(7) },
{ be_const_key(STYLE_BG_MAIN_STOP, -1), be_const_int(33) },
{ be_const_key(SYMBOL_AUDIO, -1), be_const_str(&be_local_const_str_SYMBOL_AUDIO) },
{ be_const_key(EVENT_APPLY, 183), be_const_int(19) },
{ be_const_key(CHART_CURSOR_DOWN, -1), be_const_int(8) },
{ be_const_key(KEYBOARD_PART_BG, -1), be_const_int(0) },
{ be_const_key(DROPDOWN_PART_MAIN, 157), be_const_int(0) },
{ be_const_key(TXT_FLAG_RECOLOR, 178), be_const_int(1) },
{ be_const_key(SYMBOL_TRASH, 37), be_const_str(&be_local_const_str_SYMBOL_TRASH) },
{ be_const_key(scr_act, 364), be_const_func(lv0_scr_act) },
{ be_const_key(I2C, 382), be_const_int(1) },
{ be_const_key(CALENDAR_PART_DATE, 141), be_const_int(3) },
{ be_const_key(STYLE_SHADOW_OFS_X, -1), be_const_int(81) },
{ be_const_key(OBJ_PART_ALL, 295), be_const_int(255) },
{ be_const_key(screenshot, 201), be_const_func(lv0_screenshot) },
{ be_const_key(SYMBOL_LOOP, 94), be_const_str(&be_local_const_str_SYMBOL_LOOP) },
{ be_const_key(EVENT_DEFOCUSED, -1), be_const_int(14) },
{ be_const_key(GESTURE_DIR_BOTTOM, 284), be_const_int(1) },
{ be_const_key(ALIGN_OUT_LEFT_BOTTOM, -1), be_const_int(17) },
{ be_const_key(DISP_SIZE_LARGE, 348), be_const_int(2) },
{ be_const_key(STATE_DEFAULT, -1), be_const_int(0) },
{ be_const_key(EVENT_RELEASED, -1), be_const_int(7) },
{ be_const_key(STYLE_TRANSITION_PROP_2, -1), be_const_int(179) },
{ be_const_key(BLEND_MODE_NORMAL, -1), be_const_int(0) },
{ be_const_key(STYLE_LINE_OPA, 402), be_const_int(156) },
{ be_const_key(ARC_PART_KNOB, -1), be_const_int(2) },
{ be_const_key(ARC_TYPE_NORMAL, 70), be_const_int(0) },
{ be_const_key(EVENT_CLICKED, -1), be_const_int(6) },
{ be_const_key(LAYOUT_COLUMN_LEFT, 229), be_const_int(2) },
{ be_const_key(BLACK, 258), be_const_int(0) },
{ be_const_key(SYMBOL_IMAGE, 68), be_const_str(&be_local_const_str_SYMBOL_IMAGE) },
{ be_const_key(ALIGN_OUT_RIGHT_TOP, 180), be_const_int(18) },
{ be_const_key(STYLE_VALUE_COLOR, -1), be_const_int(121) },
{ be_const_key(SYMBOL_CLOSE, 378), be_const_str(&be_local_const_str_SYMBOL_CLOSE) },
{ be_const_key(DISP_ROT_270, -1), be_const_int(3) },
{ be_const_key(STYLE_TRANSITION_PROP_4, -1), be_const_int(181) },
{ be_const_key(STATE_HOVERED, -1), be_const_int(8) },
{ be_const_key(CPICKER_COLOR_MODE_VALUE, 410), be_const_int(2) },
{ be_const_key(TEXT_DECOR_NONE, -1), be_const_int(0) },
{ be_const_key(PAGE_EDGE_BOTTOM, 105), be_const_int(8) },
{ be_const_key(ALIGN_OUT_TOP_RIGHT, -1), be_const_int(11) },
{ be_const_key(SYMBOL_COPY, 250), be_const_str(&be_local_const_str_SYMBOL_COPY) },
{ be_const_key(KEY_PREV, -1), be_const_int(11) },
{ be_const_key(STYLE_LINE_COLOR, -1), be_const_int(153) },
{ be_const_key(STYLE_MARGIN_LEFT, -1), be_const_int(23) },
{ be_const_key(STYLE_TRANSITION_PROP_2, 387), be_const_int(179) },
{ be_const_key(OPA_60, -1), be_const_int(153) },
{ be_const_key(KEYBOARD_MODE_TEXT_UPPER, -1), be_const_int(1) },
{ be_const_key(LABEL_LONG_SROLL, 249), be_const_int(3) },
{ be_const_key(FS_RES_NOT_IMP, 63), be_const_int(9) },
{ be_const_key(STYLE_PAD_RIGHT, -1), be_const_int(19) },
{ be_const_key(CHART_CURSOR_NONE, 293), be_const_int(0) },
{ be_const_key(FS_MODE_RD, -1), be_const_int(2) },
{ be_const_key(LIST_PART_EDGE_FLASH, 438), be_const_int(2) },
{ be_const_key(SYMBOL_BELL, 78), be_const_str(&be_local_const_str_SYMBOL_BELL) },
{ be_const_key(LABEL_LONG_CROP, -1), be_const_int(5) },
{ be_const_key(SYMBOL_POWER, -1), be_const_str(&be_local_const_str_SYMBOL_POWER) },
{ be_const_key(SYMBOL_UP, 57), be_const_str(&be_local_const_str_SYMBOL_UP) },
{ be_const_key(SYMBOL_MINUS, -1), be_const_str(&be_local_const_str_SYMBOL_MINUS) },
{ be_const_key(BLEND_MODE_SUBTRACTIVE, 246), be_const_int(2) },
{ be_const_key(STYLE_MARGIN_BOTTOM, -1), be_const_int(22) },
{ be_const_key(SCROLLBAR_MODE_AUTO, 439), be_const_int(3) },
{ be_const_key(STYLE_IMAGE_OPA, -1), be_const_int(32940) },
{ be_const_key(CHART_AXIS_PRIMARY_Y, 292), be_const_int(0) },
{ be_const_key(SCROLLBAR_MODE_HIDE, 209), be_const_int(4) },
{ be_const_key(EVENT_DRAG_BEGIN, 211), be_const_int(8) },
{ be_const_key(FS_RES_OUT_OF_MEM, 434), be_const_int(10) },
{ be_const_key(SYMBOL_VOLUME_MAX, -1), be_const_str(&be_local_const_str_SYMBOL_VOLUME_MAX) },
{ be_const_key(SLIDER_TYPE_NORMAL, -1), be_const_int(0) },
{ be_const_key(BTN_STATE_RELEASED, -1), be_const_int(0) },
{ be_const_key(CPICKER_COLOR_MODE_VALUE, -1), be_const_int(2) },
{ be_const_key(PAGE_EDGE_RIGHT, -1), be_const_int(4) },
{ be_const_key(FS_RES_HW_ERR, -1), be_const_int(1) },
{ be_const_key(DISP_SIZE_EXTRA_LARGE, -1), be_const_int(3) },
{ be_const_key(SYMBOL_SAVE, 191), be_const_str(&be_local_const_str_SYMBOL_SAVE) },
{ be_const_key(STYLE_TEXT_BLEND_MODE, -1), be_const_int(32899) },
{ be_const_key(OBJMASK_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(SYMBOL_USB, 389), be_const_str(&be_local_const_str_SYMBOL_USB) },
{ be_const_key(STYLE_BORDER_POST, -1), be_const_int(51) },
{ be_const_key(FS_RES_INV_PARAM, -1), be_const_int(11) },
{ be_const_key(TEAL, 264), be_const_int(32896) },
{ be_const_key(LAYOUT_COLUMN_MID, -1), be_const_int(3) },
{ be_const_key(LAYOUT_COLUMN_LEFT, -1), be_const_int(2) },
{ be_const_key(ALIGN_IN_BOTTOM_RIGHT, -1), be_const_int(6) },
{ be_const_key(STYLE_BORDER_COLOR, -1), be_const_int(57) },
{ be_const_key(SCROLLBAR_MODE_OFF, -1), be_const_int(0) },
{ be_const_key(ALIGN_OUT_RIGHT_MID, 188), be_const_int(19) },
{ be_const_key(TXT_CMD_STATE_WAIT, -1), be_const_int(0) },
{ be_const_key(STYLE_BG_GRAD_STOP, 377), be_const_int(34) },
{ be_const_key(STYLE_PAD_TOP, 163), be_const_int(16) },
{ be_const_key(GESTURE_DIR_BOTTOM, -1), be_const_int(1) },
{ be_const_key(CHART_CURSOR_LEFT, 423), be_const_int(4) },
{ be_const_key(DISP_SIZE_SMALL, -1), be_const_int(0) },
{ be_const_key(BTN_STATE_CHECKED_PRESSED, -1), be_const_int(4) },
{ be_const_key(EVENT_GESTURE, -1), be_const_int(11) },
{ be_const_key(BTN_STATE_DISABLED, 396), be_const_int(2) },
{ be_const_key(KEY_ENTER, 222), be_const_int(10) },
{ be_const_key(EVENT_RELEASED, -1), be_const_int(7) },
{ be_const_key(GRAD_DIR_HOR, -1), be_const_int(2) },
{ be_const_key(ALIGN_OUT_LEFT_BOTTOM, -1), be_const_int(17) },
{ be_const_key(SYMBOL_BLUETOOTH, -1), be_const_str(&be_local_const_str_SYMBOL_BLUETOOTH) },
{ be_const_key(CHECKBOX_PART_BULLET, 41), be_const_int(64) },
{ be_const_key(KEY_DEL, -1), be_const_int(127) },
{ be_const_key(LIST_PART_BG, -1), be_const_int(0) },
{ be_const_key(PROTECT_CHILD_CHG, -1), be_const_int(1) },
{ be_const_key(KEYBOARD_MODE_TEXT_LOWER, -1), be_const_int(0) },
{ be_const_key(CPICKER_COLOR_MODE_SATURATION, 190), be_const_int(1) },
{ be_const_key(LAYOUT_PRETTY_BOTTOM, -1), be_const_int(10) },
{ be_const_key(EVENT_CLICKED, -1), be_const_int(6) },
{ be_const_key(OPA_0, -1), be_const_int(0) },
{ be_const_key(OLIVE, 400), be_const_int(8421376) },
{ be_const_key(ALIGN_OUT_RIGHT_BOTTOM, -1), be_const_int(20) },
{ be_const_key(TEXT_DECOR_NONE, 360), be_const_int(0) },
{ be_const_key(SYMBOL_BATTERY_EMPTY, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_EMPTY) },
{ be_const_key(PROTECT_FOLLOW, 416), be_const_int(8) },
{ be_const_key(STYLE_SHADOW_BLEND_MODE, -1), be_const_int(84) },
{ be_const_key(STYLE_PATTERN_IMAGE, 234), be_const_int(110) },
{ be_const_key(STATE_EDITED, 75), be_const_int(4) },
{ be_const_key(DROPDOWN_PART_SCROLLBAR, 217), be_const_int(65) },
{ be_const_key(SPINNER_DIR_BACKWARD, -1), be_const_int(1) },
{ be_const_key(GRAD_DIR_VER, -1), be_const_int(1) },
{ be_const_key(TXT_FLAG_RIGHT, 330), be_const_int(8) },
{ be_const_key(BTNMATRIX_CTRL_CLICK_TRIG, 398), be_const_int(256) },
{ be_const_key(OPA_COVER, 345), be_const_int(255) },
{ be_const_key(KEY_END, 32), be_const_int(3) },
{ be_const_key(DISP_SIZE_LARGE, -1), be_const_int(2) },
{ be_const_key(layer_sys, -1), be_const_func(lv0_layer_sys) },
{ be_const_key(DISP_ROT_NONE, 13), be_const_int(0) },
{ be_const_key(CALENDAR_PART_HEADER, -1), be_const_int(1) },
{ be_const_key(ALIGN_OUT_BOTTOM_LEFT, -1), be_const_int(12) },
{ be_const_key(TXT_CMD_STATE_IN, 385), be_const_int(2) },
{ be_const_key(EVENT_FOCUSED, -1), be_const_int(13) },
{ be_const_key(EVENT_DELETE, 14), be_const_int(21) },
{ be_const_key(PAGE_EDGE_LEFT, -1), be_const_int(1) },
{ be_const_key(STYLE_CLIP_CORNER, -1), be_const_int(2) },
{ be_const_key(FIT_PARENT, -1), be_const_int(2) },
{ be_const_key(STYLE_LINE_ROUNDED, 64), be_const_int(148) },
{ be_const_key(GRAY, -1), be_const_int(8421504) },
{ be_const_key(BORDER_SIDE_FULL, -1), be_const_int(15) },
{ be_const_key(SYMBOL_CALL, -1), be_const_str(&be_local_const_str_SYMBOL_CALL) },
{ be_const_key(SYMBOL_MUTE, 131), be_const_str(&be_local_const_str_SYMBOL_MUTE) },
{ be_const_key(PAGE_EDGE_TOP, -1), be_const_int(2) },
{ be_const_key(BAR_TYPE_CUSTOM, 54), be_const_int(2) },
{ be_const_key(STYLE_SCALE_END_BORDER_WIDTH, -1), be_const_int(194) },
{ be_const_key(FS_MODE_WR, -1), be_const_int(1) },
{ be_const_key(CPICKER_PART_KNOB, 399), be_const_int(1) },
{ be_const_key(EVENT_SHORT_CLICKED, -1), be_const_int(3) },
{ be_const_key(LIST_PART_SCROLLBAR, -1), be_const_int(1) },
{ be_const_key(STYLE_LINE_BLEND_MODE, 427), be_const_int(145) },
{ be_const_key(CPICKER_TYPE_DISC, 440), be_const_int(1) },
{ be_const_key(OPA_90, -1), be_const_int(229) },
{ be_const_key(ALIGN_IN_LEFT_MID, -1), be_const_int(7) },
{ be_const_key(SYMBOL_OK, -1), be_const_str(&be_local_const_str_SYMBOL_OK) },
{ be_const_key(STYLE_TRANSITION_PATH, 159), be_const_int(190) },
{ be_const_key(TEMPL_STYLE_X, 35), be_const_int(0) },
{ be_const_key(KEY_HOME, -1), be_const_int(2) },
{ be_const_key(SYMBOL_LEFT, 58), be_const_str(&be_local_const_str_SYMBOL_LEFT) },
{ be_const_key(STYLE_SIZE, -1), be_const_int(3) },
{ be_const_key(STYLE_SCALE_GRAD_COLOR, -1), be_const_int(201) },
{ be_const_key(DROPDOWN_DIR_DOWN, -1), be_const_int(0) },
{ be_const_key(LABEL_ALIGN_RIGHT, -1), be_const_int(2) },
{ be_const_key(DROPDOWN_DIR_UP, -1), be_const_int(1) },
{ be_const_key(CHART_UPDATE_MODE_CIRCULAR, -1), be_const_int(1) },
{ be_const_key(BTNMATRIX_CTRL_DISABLED, -1), be_const_int(32) },
{ be_const_key(ARC_PART_INDIC, -1), be_const_int(1) },
{ be_const_key(LAYOUT_COLUMN_RIGHT, 112), be_const_int(4) },
{ be_const_key(EVENT_DRAG_THROW_BEGIN, -1), be_const_int(10) },
{ be_const_key(BTNMATRIX_CTRL_CHECKABLE, 296), be_const_int(64) },
{ be_const_key(SYMBOL_EYE_OPEN, -1), be_const_str(&be_local_const_str_SYMBOL_EYE_OPEN) },
{ be_const_key(STATE_CHECKED, -1), be_const_int(1) },
{ be_const_key(DRAG_DIR_BOTH, 392), be_const_int(3) },
{ be_const_key(SPINNER_TYPE_SPINNING_ARC, -1), be_const_int(0) },
{ be_const_key(CHART_AXIS_DRAW_LAST_TICK, -1), be_const_int(1) },
{ be_const_key(PROTECT_PARENT, 315), be_const_int(2) },
{ be_const_key(ALIGN_OUT_BOTTOM_MID, 235), be_const_int(13) },
{ be_const_key(CHART_PART_SERIES, 284), be_const_int(2) },
{ be_const_key(FS_RES_UNKNOWN, -1), be_const_int(12) },
{ be_const_key(MAROON, -1), be_const_int(8388608) },
{ be_const_key(STYLE_SHADOW_OPA, -1), be_const_int(92) },
{ be_const_key(GREEN, -1), be_const_int(32768) },
{ be_const_key(STYLE_OUTLINE_COLOR, -1), be_const_int(73) },
{ be_const_key(load_font, -1), be_const_func(lv0_load_font) },
{ be_const_key(STYLE_LINE_OPA, 132), be_const_int(156) },
{ be_const_key(STYLE_TEXT_FONT, -1), be_const_int(32910) },
{ be_const_key(TEXT_DECOR_STRIKETHROUGH, -1), be_const_int(2) },
{ be_const_key(EVENT_PRESSING, -1), be_const_int(1) },
{ be_const_key(DISP_ROT_90, -1), be_const_int(1) },
{ be_const_key(STYLE_LINE_DASH_GAP, -1), be_const_int(147) },
{ be_const_key(ARC_PART_KNOB, -1), be_const_int(2) },
{ be_const_key(STYLE_IMAGE_BLEND_MODE, 99), be_const_int(32928) },
{ be_const_key(STATE_HOVERED, -1), be_const_int(8) },
{ be_const_key(STYLE_LINE_DASH_WIDTH, -1), be_const_int(146) },
{ be_const_key(KEY_UP, -1), be_const_int(17) },
{ be_const_key(SLIDER_TYPE_RANGE, -1), be_const_int(2) },
{ be_const_key(ANIM_OFF, -1), be_const_int(0) },
{ be_const_key(CHART_PART_CURSOR, -1), be_const_int(3) },
{ be_const_key(LAYOUT_ROW_MID, 354), be_const_int(6) },
{ be_const_key(STYLE_VALUE_ALIGN, 448), be_const_int(117) },
{ be_const_key(ALIGN_OUT_LEFT_TOP, -1), be_const_int(15) },
{ be_const_key(SCROLLBAR_MODE_ON, 97), be_const_int(1) },
{ be_const_key(SYMBOL_PREV, -1), be_const_str(&be_local_const_str_SYMBOL_PREV) },
{ be_const_key(DROPDOWN_PART_SELECTED, 337), be_const_int(66) },
{ be_const_key(LIME, 39), be_const_int(65280) },
{ be_const_key(STYLE_BORDER_OPA, -1), be_const_int(60) },
{ be_const_key(SYMBOL_DRIVE, 127), be_const_str(&be_local_const_str_SYMBOL_DRIVE) },
{ be_const_key(montserrat_font, 280), be_const_func(lv0_load_montserrat_font) },
{ be_const_key(DROPDOWN_DIR_LEFT, -1), be_const_int(2) },
{ be_const_key(EVENT_CANCEL, 288), be_const_int(20) },
{ be_const_key(SYMBOL_BATTERY_2, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_2) },
{ be_const_key(DROPDOWN_DIR_RIGHT, 84), be_const_int(3) },
{ be_const_key(TXT_CMD_STATE_PAR, -1), be_const_int(1) },
{ be_const_key(STYLE_TRANSITION_PROP_1, 91), be_const_int(178) },
{ be_const_key(OPA_100, -1), be_const_int(255) },
{ be_const_key(ALIGN_OUT_TOP_LEFT, -1), be_const_int(9) },
{ be_const_key(SPINNER_DIR_FORWARD, -1), be_const_int(0) },
{ be_const_key(STYLE_BORDER_WIDTH, -1), be_const_int(48) },
{ be_const_key(SYMBOL_REFRESH, -1), be_const_str(&be_local_const_str_SYMBOL_REFRESH) },
{ be_const_key(FS_RES_NOT_EX, 363), be_const_int(3) },
{ be_const_key(TXT_FLAG_CENTER, 247), be_const_int(4) },
{ be_const_key(FS_RES_LOCKED, 130), be_const_int(5) },
{ be_const_key(STATE_DEFAULT, 338), be_const_int(0) },
{ be_const_key(DROPDOWN_PART_LIST, -1), be_const_int(64) },
{ be_const_key(SCROLLBAR_MODE_UNHIDE, 283), be_const_int(8) },
{ be_const_key(STYLE_BG_GRAD_DIR, -1), be_const_int(35) },
{ be_const_key(SSPI, -1), be_const_int(2) },
{ be_const_key(SYMBOL_RIGHT, -1), be_const_str(&be_local_const_str_SYMBOL_RIGHT) },
{ be_const_key(SYMBOL_PLAY, -1), be_const_str(&be_local_const_str_SYMBOL_PLAY) },
{ be_const_key(LAYOUT_PRETTY_MID, -1), be_const_int(9) },
{ be_const_key(STYLE_OUTLINE_OPA, -1), be_const_int(76) },
{ be_const_key(LAYOUT_CENTER, -1), be_const_int(1) },
{ be_const_key(KEYBOARD_PART_BTN, 286), be_const_int(1) },
{ be_const_key(LED_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(EVENT_VALUE_CHANGED, -1), be_const_int(16) },
{ be_const_key(OPA_20, 239), be_const_int(51) },
{ be_const_key(CHART_UPDATE_MODE_SHIFT, -1), be_const_int(0) },
{ be_const_key(STATE_PRESSED, -1), be_const_int(16) },
{ be_const_key(BTN_STATE_CHECKED_DISABLED, -1), be_const_int(5) },
{ be_const_key(OPA_TRANSP, 137), be_const_int(0) },
{ be_const_key(STYLE_TRANSFORM_HEIGHT, -1), be_const_int(5) },
{ be_const_key(STYLE_LINE_WIDTH, -1), be_const_int(144) },
{ be_const_key(STYLE_TEXT_OPA, -1), be_const_int(32908) },
{ be_const_key(STYLE_TEXT_LETTER_SPACE, -1), be_const_int(32896) },
{ be_const_key(OPA_70, -1), be_const_int(178) },
{ be_const_key(STYLE_SHADOW_OFS_Y, -1), be_const_int(82) },
{ be_const_key(STYLE_VALUE_COLOR, 413), be_const_int(121) },
{ be_const_key(TABVIEW_TAB_POS_TOP, -1), be_const_int(1) },
{ be_const_key(LAYOUT_ROW_BOTTOM, 318), be_const_int(7) },
{ be_const_key(ALIGN_CENTER, 144), be_const_int(0) },
{ be_const_key(OPA_50, 278), be_const_int(127) },
{ be_const_key(SYMBOL_CHARGE, -1), be_const_str(&be_local_const_str_SYMBOL_CHARGE) },
{ be_const_key(CHART_AXIS_SECONDARY_Y, -1), be_const_int(1) },
{ be_const_key(STYLE_IMAGE_RECOLOR, -1), be_const_int(32937) },
{ be_const_key(SYMBOL_BACKSPACE, -1), be_const_str(&be_local_const_str_SYMBOL_BACKSPACE) },
{ be_const_key(STYLE_TEXT_DECOR, 435), be_const_int(32898) },
{ be_const_key(STYLE_TRANSITION_PROP_3, 212), be_const_int(180) },
{ be_const_key(GAUGE_PART_MAIN, 428), be_const_int(0) },
{ be_const_key(SYMBOL_DOWNLOAD, -1), be_const_str(&be_local_const_str_SYMBOL_DOWNLOAD) },
{ be_const_key(ALIGN_OUT_BOTTOM_RIGHT, -1), be_const_int(14) },
{ be_const_key(SYMBOL_DOWN, -1), be_const_str(&be_local_const_str_SYMBOL_DOWN) },
{ be_const_key(EVENT_PRESSED, -1), be_const_int(0) },
{ be_const_key(STYLE_VALUE_LETTER_SPACE, 18), be_const_int(112) },
{ be_const_key(BTN_STATE_CHECKED_RELEASED, -1), be_const_int(3) },
{ be_const_key(STYLE_OUTLINE_WIDTH, 304), be_const_int(64) },
{ be_const_key(STYLE_PAD_INNER, -1), be_const_int(20) },
{ be_const_key(STYLE_PATTERN_BLEND_MODE, -1), be_const_int(96) },
{ be_const_key(LINEMETER_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(STYLE_SCALE_END_COLOR, -1), be_const_int(202) },
{ be_const_key(LABEL_LONG_DOT, -1), be_const_int(2) },
{ be_const_key(STYLE_TEXT_COLOR, 0), be_const_int(32905) },
{ be_const_key(STYLE_PATTERN_RECOLOR_OPA, -1), be_const_int(109) },
{ be_const_key(SYMBOL_FILE, -1), be_const_str(&be_local_const_str_SYMBOL_FILE) },
{ be_const_key(STYLE_SCALE_BORDER_WIDTH, -1), be_const_int(193) },
{ be_const_key(HSPI, -1), be_const_int(0) },
{ be_const_key(OBJ_PART_VIRTUAL_FIRST, 341), be_const_int(1) },
{ be_const_key(SYMBOL_WIFI, 179), be_const_str(&be_local_const_str_SYMBOL_WIFI) },
{ be_const_key(LABEL_ALIGN_CENTER, -1), be_const_int(1) },
{ be_const_key(ALIGN_OUT_LEFT_MID, -1), be_const_int(16) },
{ be_const_key(STYLE_SCALE_END_LINE_WIDTH, -1), be_const_int(195) },
{ be_const_key(ROLLER_MODE_NORMAL, 409), be_const_int(0) },
{ be_const_key(SYMBOL_EDIT, 271), be_const_str(&be_local_const_str_SYMBOL_EDIT) },
{ be_const_key(STYLE_SCALE_WIDTH, -1), be_const_int(192) },
{ be_const_key(BORDER_SIDE_INTERNAL, -1), be_const_int(16) },
{ be_const_key(CHECKBOX_PART_BG, -1), be_const_int(0) },
{ be_const_key(CHART_TYPE_NONE, 355), be_const_int(0) },
{ be_const_key(SYMBOL_UPLOAD, 401), be_const_str(&be_local_const_str_SYMBOL_UPLOAD) },
{ be_const_key(ALIGN_OUT_RIGHT_TOP, -1), be_const_int(18) },
{ be_const_key(DRAG_DIR_VER, -1), be_const_int(2) },
{ be_const_key(CHART_PART_BG, 160), be_const_int(0) },
{ be_const_key(EVENT_INSERT, -1), be_const_int(17) },
{ be_const_key(BORDER_SIDE_TOP, -1), be_const_int(2) },
{ be_const_key(STYLE_TEXT_SEL_COLOR, -1), be_const_int(32906) },
{ be_const_key(STYLE_IMAGE_RECOLOR_OPA, -1), be_const_int(32941) },
{ be_const_key(SYMBOL_DOWN, 114), be_const_str(&be_local_const_str_SYMBOL_DOWN) },
{ be_const_key(BTNMATRIX_CTRL_HIDDEN, 192), be_const_int(8) },
{ be_const_key(FIT_TIGHT, -1), be_const_int(1) },
{ be_const_key(STYLE_VALUE_BLEND_MODE, 347), be_const_int(114) },
{ be_const_key(FS_RES_FS_ERR, 74), be_const_int(2) },
{ be_const_key(SLIDER_TYPE_SYMMETRICAL, 373), be_const_int(1) },
{ be_const_key(STYLE_TRANSITION_PROP_5, -1), be_const_int(182) },
{ be_const_key(FS_RES_DENIED, 213), be_const_int(6) },
{ be_const_key(DRAG_DIR_HOR, 349), be_const_int(1) },
{ be_const_key(GAUGE_PART_MAJOR, 418), be_const_int(1) },
{ be_const_key(PROTECT_EVENT_TO_DISABLED, 73), be_const_int(64) },
{ be_const_key(STYLE_VALUE_OPA, -1), be_const_int(124) },
{ be_const_key(EVENT_LEAVE, 282), be_const_int(15) },
{ be_const_key(PROTECT_NONE, 81), be_const_int(0) },
{ be_const_key(PROTECT_PRESS_LOST, -1), be_const_int(16) },
{ be_const_key(YELLOW, 71), be_const_int(16776960) },
{ be_const_key(GESTURE_DIR_RIGHT, -1), be_const_int(3) },
{ be_const_key(VSPI, -1), be_const_int(1) },
{ be_const_key(STYLE_PATTERN_RECOLOR, -1), be_const_int(105) },
{ be_const_key(STYLE_SHADOW_COLOR, -1), be_const_int(89) },
{ be_const_key(KEY_BACKSPACE, -1), be_const_int(8) },
{ be_const_key(STYLE_OUTLINE_PAD, -1), be_const_int(65) },
{ be_const_key(AQUA, 322), be_const_int(65535) },
{ be_const_key(CHART_PART_SERIES_BG, 51), be_const_int(1) },
{ be_const_key(SPINNER_TYPE_CONSTANT_ARC, 452), be_const_int(2) },
{ be_const_key(ANIM_ON, 189), be_const_int(1) },
{ be_const_key(STYLE_TRANSFORM_ANGLE, -1), be_const_int(6) },
{ be_const_key(TEXTAREA_CURSOR_LAST, 23), be_const_int(32767) },
{ be_const_key(STYLE_VALUE_LINE_SPACE, -1), be_const_int(113) },
{ be_const_key(FIT_NONE, -1), be_const_int(0) },
{ be_const_key(STYLE_TEXT_SEL_BG_COLOR, 153), be_const_int(32907) },
{ be_const_key(STYLE_TRANSFORM_WIDTH, -1), be_const_int(4) },
{ be_const_key(CPICKER_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(get_hor_res, -1), be_const_func(lv0_get_hor_res) },
{ be_const_key(GRAD_DIR_NONE, -1), be_const_int(0) },
{ be_const_key(STYLE_TRANSITION_TIME, -1), be_const_int(176) },
{ be_const_key(STYLE_OUTLINE_BLEND_MODE, -1), be_const_int(66) },
{ be_const_key(BAR_TYPE_SYMMETRICAL, -1), be_const_int(1) },
{ be_const_key(ALIGN_IN_BOTTOM_LEFT, 277), be_const_int(4) },
{ be_const_key(PROTECT_POS, 165), be_const_int(4) },
{ be_const_key(DISP_ROT_270, -1), be_const_int(3) },
{ be_const_key(EVENT_LONG_PRESSED, -1), be_const_int(4) },
{ be_const_key(ALIGN_IN_TOP_LEFT, -1), be_const_int(1) },
{ be_const_key(CYAN, -1), be_const_int(65535) },
{ be_const_key(LABEL_LONG_EXPAND, -1), be_const_int(0) },
{ be_const_key(STYLE_RADIUS, 79), be_const_int(1) },
{ be_const_key(BLEND_MODE_ADDITIVE, -1), be_const_int(1) },
{ be_const_key(TXT_FLAG_EXPAND, 301), be_const_int(2) },
{ be_const_key(KEY_NEXT, -1), be_const_int(9) },
{ be_const_key(KEY_RIGHT, 391), be_const_int(19) },
{ be_const_key(OPA_80, -1), be_const_int(204) },
{ be_const_key(LAYOUT_ROW_TOP, -1), be_const_int(5) },
{ be_const_key(ROLLER_MODE_INFINITE, -1), be_const_int(1) },
{ be_const_key(FS_RES_FULL, 403), be_const_int(4) },
{ be_const_key(SPI, -1), be_const_int(0) },
{ be_const_key(SCROLLBAR_MODE_DRAG, -1), be_const_int(2) },
{ be_const_key(get_ver_res, 108), be_const_func(lv0_get_ver_res) },
{ be_const_key(EVENT_REFRESH, -1), be_const_int(18) },
{ be_const_key(BTNMATRIX_CTRL_NO_REPEAT, -1), be_const_int(16) },
{ be_const_key(SYMBOL_SHUFFLE, -1), be_const_str(&be_local_const_str_SYMBOL_SHUFFLE) },
{ be_const_key(STYLE_OPA_SCALE, -1), be_const_int(32780) },
{ be_const_key(CHART_CURSOR_UP, -1), be_const_int(2) },
{ be_const_key(STYLE_MARGIN_TOP, -1), be_const_int(21) },
{ be_const_key(ARC_TYPE_SYMMETRIC, 272), be_const_int(1) },
{ be_const_key(SYMBOL_BATTERY_3, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_3) },
{ be_const_key(start, 425), be_const_func(lv0_start) },
{ be_const_key(SYMBOL_WARNING, 62), be_const_str(&be_local_const_str_SYMBOL_WARNING) },
{ be_const_key(ALIGN_IN_BOTTOM_MID, -1), be_const_int(5) },
{ be_const_key(STATE_DISABLED, -1), be_const_int(32) },
{ be_const_key(KEY_ESC, -1), be_const_int(27) },
{ be_const_key(CPICKER_TYPE_RECT, -1), be_const_int(0) },
{ be_const_key(SYMBOL_KEYBOARD, -1), be_const_str(&be_local_const_str_SYMBOL_KEYBOARD) },
{ be_const_key(SYMBOL_EYE_CLOSE, 174), be_const_str(&be_local_const_str_SYMBOL_EYE_CLOSE) },
{ be_const_key(SYMBOL_IMAGE, 332), be_const_str(&be_local_const_str_SYMBOL_IMAGE) },
{ be_const_key(SYMBOL_PAUSE, 229), be_const_str(&be_local_const_str_SYMBOL_PAUSE) },
{ be_const_key(NAVY, 263), be_const_int(128) },
{ be_const_key(EVENT_KEY, -1), be_const_int(12) },
{ be_const_key(ALIGN_IN_TOP_MID, -1), be_const_int(2) },
{ be_const_key(STYLE_BG_BLEND_MODE, -1), be_const_int(32) },
{ be_const_key(SYMBOL_BULLET, -1), be_const_str(&be_local_const_str_SYMBOL_BULLET) },
{ be_const_key(EVENT_DRAG_END, 450), be_const_int(9) },
{ be_const_key(STYLE_SHADOW_WIDTH, -1), be_const_int(80) },
{ be_const_key(TABVIEW_TAB_POS_RIGHT, -1), be_const_int(4) },
{ be_const_key(STYLE_BORDER_SIDE, -1), be_const_int(49) },
{ be_const_key(BLEND_MODE_NORMAL, -1), be_const_int(0) },
{ be_const_key(SYMBOL_CLOSE, 455), be_const_str(&be_local_const_str_SYMBOL_CLOSE) },
{ be_const_key(SYMBOL_DIRECTORY, -1), be_const_str(&be_local_const_str_SYMBOL_DIRECTORY) },
{ be_const_key(GESTURE_DIR_LEFT, -1), be_const_int(2) },
{ be_const_key(EVENT_PRESS_LOST, -1), be_const_int(2) },
{ be_const_key(MAGENTA, 268), be_const_int(16711935) },
{ be_const_key(BAR_TYPE_NORMAL, -1), be_const_int(0) },
{ be_const_key(BLUE, 314), be_const_int(255) },
{ be_const_key(STYLE_PAD_LEFT, -1), be_const_int(18) },
{ be_const_key(FS_RES_OK, -1), be_const_int(0) },
{ be_const_key(SYMBOL_LIST, -1), be_const_str(&be_local_const_str_SYMBOL_LIST) },
{ be_const_key(LAYOUT_PRETTY_TOP, -1), be_const_int(8) },
{ be_const_key(BORDER_SIDE_BOTTOM, 358), be_const_int(1) },
{ be_const_key(DROPDOWN_DIR_UP, -1), be_const_int(1) },
{ be_const_key(STYLE_TRANSITION_PROP_6, -1), be_const_int(183) },
{ be_const_key(KEY_ESC, -1), be_const_int(27) },
{ be_const_key(LABEL_LONG_SROLL_CIRC, -1), be_const_int(4) },
{ be_const_key(SYMBOL_DOWNLOAD, -1), be_const_str(&be_local_const_str_SYMBOL_DOWNLOAD) },
{ be_const_key(ALIGN_OUT_BOTTOM_LEFT, 218), be_const_int(12) },
{ be_const_key(LINEMETER_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(GRAY, -1), be_const_int(8421504) },
{ be_const_key(SYMBOL_USB, 404), be_const_str(&be_local_const_str_SYMBOL_USB) },
{ be_const_key(ALIGN_OUT_RIGHT_BOTTOM, -1), be_const_int(20) },
{ be_const_key(BTN_STATE_DISABLED, 216), be_const_int(2) },
{ be_const_key(LIME, -1), be_const_int(65280) },
{ be_const_key(CPICKER_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(DISP_ROT_90, 166), be_const_int(1) },
{ be_const_key(SYMBOL_VOLUME_MID, -1), be_const_str(&be_local_const_str_SYMBOL_VOLUME_MID) },
{ be_const_key(LABEL_LONG_EXPAND, -1), be_const_int(0) },
{ be_const_key(FS_RES_FULL, -1), be_const_int(4) },
{ be_const_key(BLEND_MODE_ADDITIVE, -1), be_const_int(1) },
{ be_const_key(KEY_UP, -1), be_const_int(17) },
{ be_const_key(ALIGN_IN_BOTTOM_MID, -1), be_const_int(5) },
{ be_const_key(BAR_TYPE_CUSTOM, -1), be_const_int(2) },
{ be_const_key(STYLE_BG_BLEND_MODE, -1), be_const_int(32) },
{ be_const_key(SYMBOL_VOLUME_MID, 343), be_const_str(&be_local_const_str_SYMBOL_VOLUME_MID) },
{ be_const_key(CPICKER_COLOR_MODE_HUE, -1), be_const_int(0) },
{ be_const_key(LAYOUT_COLUMN_MID, -1), be_const_int(3) },
{ be_const_key(ALIGN_IN_BOTTOM_RIGHT, 207), be_const_int(6) },
{ be_const_key(LED_PART_MAIN, 425), be_const_int(0) },
{ be_const_key(ARC_PART_BG, -1), be_const_int(0) },
{ be_const_key(HSPI, -1), be_const_int(0) },
{ be_const_key(EVENT_VALUE_CHANGED, 51), be_const_int(16) },
{ be_const_key(CHART_AXIS_INVERSE_LABELS_ORDER, 305), be_const_int(2) },
{ be_const_key(STYLE_OUTLINE_COLOR, 103), be_const_int(73) },
{ be_const_key(FS_MODE_WR, -1), be_const_int(1) },
{ be_const_key(CPICKER_PART_KNOB, 221), be_const_int(1) },
{ be_const_key(LAYOUT_ROW_BOTTOM, -1), be_const_int(7) },
{ be_const_key(CHART_TYPE_LINE, 353), be_const_int(1) },
{ be_const_key(LABEL_ALIGN_RIGHT, -1), be_const_int(2) },
{ be_const_key(ALIGN_IN_RIGHT_MID, -1), be_const_int(8) },
{ be_const_key(CHECKBOX_PART_BG, -1), be_const_int(0) },
{ be_const_key(CPICKER_TYPE_RECT, -1), be_const_int(0) },
{ be_const_key(PURPLE, 127), be_const_int(8388736) },
{ be_const_key(STYLE_PATTERN_REPEAT, 182), be_const_int(97) },
{ be_const_key(SYMBOL_EYE_OPEN, 371), be_const_str(&be_local_const_str_SYMBOL_EYE_OPEN) },
{ be_const_key(FIT_MAX, -1), be_const_int(3) },
{ be_const_key(DROPDOWN_DIR_DOWN, -1), be_const_int(0) },
{ be_const_key(ANIM_OFF, 226), be_const_int(0) },
{ be_const_key(SYMBOL_DIRECTORY, -1), be_const_str(&be_local_const_str_SYMBOL_DIRECTORY) },
{ be_const_key(STYLE_BG_OPA, -1), be_const_int(44) },
{ be_const_key(PAGE_EDGE_LEFT, 14), be_const_int(1) },
{ be_const_key(STYLE_SCALE_BORDER_WIDTH, -1), be_const_int(193) },
{ be_const_key(STYLE_SHADOW_OPA, -1), be_const_int(92) },
{ be_const_key(screenshot, 128), be_const_func(lv0_screenshot) },
{ be_const_key(CPICKER_TYPE_DISC, -1), be_const_int(1) },
{ be_const_key(SYMBOL_PREV, 155), be_const_str(&be_local_const_str_SYMBOL_PREV) },
{ be_const_key(DRAG_DIR_BOTH, 184), be_const_int(3) },
{ be_const_key(PROTECT_PARENT, -1), be_const_int(2) },
{ be_const_key(ALIGN_OUT_BOTTOM_MID, -1), be_const_int(13) },
{ be_const_key(FS_RES_TOUT, -1), be_const_int(8) },
{ be_const_key(STATE_EDITED, 264), be_const_int(4) },
{ be_const_key(SYMBOL_BATTERY_3, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_3) },
{ be_const_key(GREEN, 16), be_const_int(32768) },
{ be_const_key(STYLE_SHADOW_COLOR, -1), be_const_int(89) },
{ be_const_key(STYLE_SHADOW_OFS_Y, 310), be_const_int(82) },
{ be_const_key(GAUGE_PART_MAJOR, -1), be_const_int(1) },
{ be_const_key(SYMBOL_MUTE, -1), be_const_str(&be_local_const_str_SYMBOL_MUTE) },
{ be_const_key(SLIDER_TYPE_NORMAL, 325), be_const_int(0) },
{ be_const_key(STYLE_BG_GRAD_DIR, 176), be_const_int(35) },
{ be_const_key(AQUA, -1), be_const_int(65535) },
{ be_const_key(SYMBOL_WARNING, 150), be_const_str(&be_local_const_str_SYMBOL_WARNING) },
{ be_const_key(STYLE_OUTLINE_BLEND_MODE, -1), be_const_int(66) },
{ be_const_key(STYLE_TEXT_LINE_SPACE, -1), be_const_int(32897) },
{ be_const_key(STYLE_OUTLINE_PAD, 451), be_const_int(65) },
{ be_const_key(STYLE_VALUE_LINE_SPACE, -1), be_const_int(113) },
{ be_const_key(STYLE_RADIUS, 222), be_const_int(1) },
{ be_const_key(EVENT_PRESSING, -1), be_const_int(1) },
{ be_const_key(STYLE_MARGIN_BOTTOM, -1), be_const_int(22) },
{ be_const_key(PURPLE, -1), be_const_int(8388736) },
{ be_const_key(BTN_STATE_PRESSED, 86), be_const_int(1) },
{ be_const_key(STYLE_SHADOW_SPREAD, -1), be_const_int(83) },
{ be_const_key(KEY_DEL, -1), be_const_int(127) },
{ be_const_key(SCROLLBAR_MODE_AUTO, -1), be_const_int(3) },
{ be_const_key(STYLE_VALUE_OPA, 54), be_const_int(124) },
{ be_const_key(ALIGN_OUT_RIGHT_MID, 60), be_const_int(19) },
{ be_const_key(BAR_TYPE_NORMAL, 61), be_const_int(0) },
{ be_const_key(OBJ_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(STYLE_IMAGE_RECOLOR, -1), be_const_int(32937) },
{ be_const_key(KEYBOARD_MODE_TEXT_UPPER, -1), be_const_int(1) },
{ be_const_key(EVENT_CANCEL, 298), be_const_int(20) },
{ be_const_key(STYLE_MARGIN_LEFT, -1), be_const_int(23) },
{ be_const_key(STYLE_PAD_LEFT, -1), be_const_int(18) },
{ be_const_key(SYMBOL_REFRESH, 453), be_const_str(&be_local_const_str_SYMBOL_REFRESH) },
{ be_const_key(SYMBOL_KEYBOARD, -1), be_const_str(&be_local_const_str_SYMBOL_KEYBOARD) },
{ be_const_key(DISP_SIZE_SMALL, 86), be_const_int(0) },
{ be_const_key(DROPDOWN_PART_SCROLLBAR, 296), be_const_int(65) },
{ be_const_key(CHART_AXIS_DRAW_LAST_TICK, -1), be_const_int(1) },
{ be_const_key(SYMBOL_UPLOAD, 356), be_const_str(&be_local_const_str_SYMBOL_UPLOAD) },
{ be_const_key(LABEL_LONG_DOT, 446), be_const_int(2) },
{ be_const_key(OPA_20, 364), be_const_int(51) },
{ be_const_key(SYMBOL_NEXT, -1), be_const_str(&be_local_const_str_SYMBOL_NEXT) },
{ be_const_key(KEY_RIGHT, -1), be_const_int(19) },
{ be_const_key(LABEL_ALIGN_AUTO, -1), be_const_int(3) },
{ be_const_key(ALIGN_OUT_TOP_LEFT, 242), be_const_int(9) },
{ be_const_key(STYLE_PAD_INNER, 279), be_const_int(20) },
{ be_const_key(SPINNER_TYPE_FILLSPIN_ARC, -1), be_const_int(1) },
{ be_const_key(montserrat_font, 259), be_const_func(lv0_load_montserrat_font) },
{ be_const_key(TEMPL_STYLE_Y, 257), be_const_int(1) },
{ be_const_key(SSPI, -1), be_const_int(2) },
{ be_const_key(STYLE_LINE_BLEND_MODE, -1), be_const_int(145) },
{ be_const_key(ALIGN_IN_RIGHT_MID, -1), be_const_int(8) },
{ be_const_key(ARC_PART_BG, 361), be_const_int(0) },
{ be_const_key(ARC_TYPE_NORMAL, -1), be_const_int(0) },
{ be_const_key(GAUGE_PART_NEEDLE, -1), be_const_int(2) },
{ be_const_key(MAGENTA, -1), be_const_int(16711935) },
{ be_const_key(LABEL_LONG_BREAK, -1), be_const_int(1) },
{ be_const_key(CHART_CURSOR_UP, -1), be_const_int(2) },
{ be_const_key(OPA_90, -1), be_const_int(229) },
{ be_const_key(STATE_FOCUSED, -1), be_const_int(2) },
{ be_const_key(LIST_PART_EDGE_FLASH, -1), be_const_int(2) },
{ be_const_key(ALIGN_OUT_LEFT_MID, -1), be_const_int(16) },
{ be_const_key(PROTECT_PRESS_LOST, -1), be_const_int(16) },
{ be_const_key(PROTECT_CHILD_CHG, 389), be_const_int(1) },
{ be_const_key(CHART_UPDATE_MODE_SHIFT, -1), be_const_int(0) },
{ be_const_key(STYLE_LINE_DASH_WIDTH, -1), be_const_int(146) },
{ be_const_key(FS_RES_UNKNOWN, -1), be_const_int(12) },
{ be_const_key(STYLE_BORDER_OPA, 52), be_const_int(60) },
{ be_const_key(layer_sys, 185), be_const_func(lv0_layer_sys) },
{ be_const_key(STYLE_BG_MAIN_STOP, 328), be_const_int(33) },
{ be_const_key(STYLE_LINE_DASH_GAP, -1), be_const_int(147) },
{ be_const_key(CHART_CURSOR_RIGHT, -1), be_const_int(1) },
{ be_const_key(CALENDAR_PART_BG, 26), be_const_int(0) },
{ be_const_key(OPA_30, 382), be_const_int(76) },
{ be_const_key(CHART_PART_BG, 32), be_const_int(0) },
{ be_const_key(BTNMATRIX_CTRL_CHECK_STATE, 208), be_const_int(128) },
{ be_const_key(FIT_PARENT, -1), be_const_int(2) },
{ be_const_key(STYLE_SIZE, -1), be_const_int(3) },
{ be_const_key(CHART_TYPE_NONE, -1), be_const_int(0) },
{ be_const_key(SYMBOL_WIFI, -1), be_const_str(&be_local_const_str_SYMBOL_WIFI) },
{ be_const_key(ALIGN_IN_BOTTOM_LEFT, 181), be_const_int(4) },
{ be_const_key(get_hor_res, 416), be_const_func(lv0_get_hor_res) },
{ be_const_key(ALIGN_IN_LEFT_MID, 304), be_const_int(7) },
{ be_const_key(SYMBOL_SETTINGS, -1), be_const_str(&be_local_const_str_SYMBOL_SETTINGS) },
{ be_const_key(FS_RES_LOCKED, -1), be_const_int(5) },
{ be_const_key(KEYBOARD_MODE_TEXT_LOWER, -1), be_const_int(0) },
{ be_const_key(STYLE_TEXT_DECOR, -1), be_const_int(32898) },
{ be_const_key(STYLE_TEXT_FONT, -1), be_const_int(32910) },
{ be_const_key(OPA_50, -1), be_const_int(127) },
{ be_const_key(STYLE_OPA_SCALE, -1), be_const_int(32780) },
{ be_const_key(ALIGN_OUT_BOTTOM_RIGHT, -1), be_const_int(14) },
{ be_const_key(BTN_STATE_CHECKED_PRESSED, -1), be_const_int(4) },
{ be_const_key(BORDER_SIDE_RIGHT, -1), be_const_int(8) },
{ be_const_key(STYLE_TEXT_LETTER_SPACE, 159), be_const_int(32896) },
{ be_const_key(STYLE_OUTLINE_WIDTH, -1), be_const_int(64) },
{ be_const_key(SPINNER_DIR_FORWARD, -1), be_const_int(0) },
{ be_const_key(STYLE_PATTERN_OPA, 343), be_const_int(108) },
{ be_const_key(KEY_HOME, 113), be_const_int(2) },
{ be_const_key(MAROON, -1), be_const_int(8388608) },
{ be_const_key(STYLE_PATTERN_RECOLOR_OPA, 169), be_const_int(109) },
{ be_const_key(LAYOUT_GRID, 260), be_const_int(11) },
{ be_const_key(TXT_CMD_STATE_PAR, -1), be_const_int(1) },
{ be_const_key(STYLE_SCALE_END_COLOR, -1), be_const_int(202) },
{ be_const_key(DISP_SIZE_EXTRA_LARGE, 198), be_const_int(3) },
{ be_const_key(LABEL_ALIGN_CENTER, -1), be_const_int(1) },
{ be_const_key(STYLE_SCALE_END_LINE_WIDTH, -1), be_const_int(195) },
{ be_const_key(FIT_NONE, -1), be_const_int(0) },
{ be_const_key(TEXT_DECOR_STRIKETHROUGH, 312), be_const_int(2) },
{ be_const_key(FS_RES_NOT_EX, 168), be_const_int(3) },
{ be_const_key(SYMBOL_DUMMY, 299), be_const_str(&be_local_const_str_SYMBOL_DUMMY) },
{ be_const_key(EVENT_LONG_PRESSED_REPEAT, 228), be_const_int(5) },
{ be_const_key(KEYBOARD_MODE_NUM, 27), be_const_int(3) },
{ be_const_key(LAYOUT_COLUMN_RIGHT, -1), be_const_int(4) },
{ be_const_key(DRAG_DIR_VER, -1), be_const_int(2) },
{ be_const_key(DROPDOWN_PART_LIST, -1), be_const_int(64) },
{ be_const_key(CHART_PART_SERIES_BG, -1), be_const_int(1) },
{ be_const_key(PROTECT_NONE, 266), be_const_int(0) },
{ be_const_key(DROPDOWN_DIR_RIGHT, -1), be_const_int(3) },
{ be_const_key(YELLOW, -1), be_const_int(16776960) },
{ be_const_key(SYMBOL_COPY, -1), be_const_str(&be_local_const_str_SYMBOL_COPY) },
{ be_const_key(SYMBOL_EDIT, 74), be_const_str(&be_local_const_str_SYMBOL_EDIT) },
{ be_const_key(STATE_CHECKED, -1), be_const_int(1) },
{ be_const_key(DRAG_DIR_HOR, -1), be_const_int(1) },
{ be_const_key(BTN_STATE_RELEASED, -1), be_const_int(0) },
{ be_const_key(EVENT_LEAVE, 322), be_const_int(15) },
{ be_const_key(ROLLER_MODE_INFINITE, -1), be_const_int(1) },
{ be_const_key(GESTURE_DIR_RIGHT, -1), be_const_int(3) },
{ be_const_key(BTNMATRIX_CTRL_NO_REPEAT, -1), be_const_int(16) },
{ be_const_key(KEYBOARD_PART_BTN, -1), be_const_int(1) },
{ be_const_key(FS_RES_DENIED, -1), be_const_int(6) },
{ be_const_key(DROPDOWN_DIR_LEFT, 117), be_const_int(2) },
{ be_const_key(STYLE_TEXT_COLOR, -1), be_const_int(32905) },
{ be_const_key(SYMBOL_GPS, -1), be_const_str(&be_local_const_str_SYMBOL_GPS) },
{ be_const_key(SYMBOL_EYE_CLOSE, 91), be_const_str(&be_local_const_str_SYMBOL_EYE_CLOSE) },
{ be_const_key(STYLE_TEXT_SEL_BG_COLOR, -1), be_const_int(32907) },
{ be_const_key(FS_RES_OK, -1), be_const_int(0) },
{ be_const_key(TXT_FLAG_FIT, 313), be_const_int(16) },
{ be_const_key(SYMBOL_BATTERY_EMPTY, -1), be_const_str(&be_local_const_str_SYMBOL_BATTERY_EMPTY) },
{ be_const_key(SYMBOL_TRASH, -1), be_const_str(&be_local_const_str_SYMBOL_TRASH) },
{ be_const_key(TXT_FLAG_RECOLOR, -1), be_const_int(1) },
{ be_const_key(STYLE_BORDER_POST, 5), be_const_int(51) },
{ be_const_key(TABVIEW_TAB_POS_BOTTOM, -1), be_const_int(2) },
{ be_const_key(CHECKBOX_PART_BULLET, -1), be_const_int(64) },
{ be_const_key(OBJ_PART_REAL_FIRST, 335), be_const_int(64) },
{ be_const_key(KEY_DOWN, 450), be_const_int(18) },
{ be_const_key(DRAG_DIR_ONE, 82), be_const_int(4) },
{ be_const_key(STYLE_TRANSITION_PROP_3, -1), be_const_int(180) },
{ be_const_key(STYLE_OUTLINE_OPA, 275), be_const_int(76) },
{ be_const_key(STYLE_TRANSFORM_WIDTH, -1), be_const_int(4) },
{ be_const_key(BORDER_SIDE_LEFT, 143), be_const_int(4) },
{ be_const_key(KEY_LEFT, -1), be_const_int(20) },
{ be_const_key(SYMBOL_VOLUME_MAX, -1), be_const_str(&be_local_const_str_SYMBOL_VOLUME_MAX) },
{ be_const_key(STYLE_IMAGE_BLEND_MODE, -1), be_const_int(32928) },
{ be_const_key(CHART_AXIS_SECONDARY_Y, 17), be_const_int(1) },
{ be_const_key(CPICKER_COLOR_MODE_SATURATION, -1), be_const_int(1) },
{ be_const_key(BORDER_SIDE_FULL, -1), be_const_int(15) },
{ be_const_key(SPINNER_TYPE_SPINNING_ARC, -1), be_const_int(0) },
{ be_const_key(ARC_TYPE_SYMMETRIC, -1), be_const_int(1) },
{ be_const_key(BTN_STATE_PRESSED, 93), be_const_int(1) },
{ be_const_key(STYLE_TRANSITION_PROP_5, -1), be_const_int(182) },
{ be_const_key(SYMBOL_NEW_LINE, 33), be_const_str(&be_local_const_str_SYMBOL_NEW_LINE) },
{ be_const_key(CALENDAR_PART_DAY_NAMES, -1), be_const_int(2) },
{ be_const_key(STYLE_BG_GRAD_COLOR, -1), be_const_int(42) },
{ be_const_key(STYLE_VALUE_OFS_Y, 71), be_const_int(116) },
{ be_const_key(DROPDOWN_PART_SELECTED, 441), be_const_int(66) },
{ be_const_key(STYLE_PATTERN_IMAGE, 97), be_const_int(110) },
{ be_const_key(BLUE, -1), be_const_int(255) },
{ be_const_key(CALENDAR_PART_DATE, -1), be_const_int(3) },
{ be_const_key(SYMBOL_CHARGE, 154), be_const_str(&be_local_const_str_SYMBOL_CHARGE) },
{ be_const_key(PROTECT_POS, -1), be_const_int(4) },
{ be_const_key(SYMBOL_STOP, 436), be_const_str(&be_local_const_str_SYMBOL_STOP) },
{ be_const_key(LAYOUT_ROW_TOP, 101), be_const_int(5) },
{ be_const_key(CALENDAR_PART_HEADER, -1), be_const_int(1) },
{ be_const_key(CHART_CURSOR_NONE, -1), be_const_int(0) },
{ be_const_key(STYLE_VALUE_LETTER_SPACE, -1), be_const_int(112) },
{ be_const_key(SYMBOL_PLUS, -1), be_const_str(&be_local_const_str_SYMBOL_PLUS) },
{ be_const_key(STATE_PRESSED, -1), be_const_int(16) },
{ be_const_key(ALIGN_IN_TOP_MID, 255), be_const_int(2) },
{ be_const_key(STYLE_CLIP_CORNER, 311), be_const_int(2) },
{ be_const_key(SYMBOL_HOME, -1), be_const_str(&be_local_const_str_SYMBOL_HOME) },
{ be_const_key(OPA_60, -1), be_const_int(153) },
{ be_const_key(KEYBOARD_PART_BG, -1), be_const_int(0) },
{ be_const_key(CHART_AXIS_SKIP_LAST_TICK, -1), be_const_int(0) },
{ be_const_key(SYMBOL_RIGHT, -1), be_const_str(&be_local_const_str_SYMBOL_RIGHT) },
{ be_const_key(SYMBOL_LOOP, -1), be_const_str(&be_local_const_str_SYMBOL_LOOP) },
{ be_const_key(STYLE_MARGIN_TOP, -1), be_const_int(21) },
{ be_const_key(STYLE_SCALE_GRAD_COLOR, -1), be_const_int(201) },
{ be_const_key(EVENT_DRAG_END, 227), be_const_int(9) },
{ be_const_key(OPA_0, -1), be_const_int(0) },
{ be_const_key(EVENT_PRESSED, 123), be_const_int(0) },
{ be_const_key(GESTURE_DIR_LEFT, -1), be_const_int(2) },
{ be_const_key(ALIGN_CENTER, -1), be_const_int(0) },
{ be_const_key(ALIGN_OUT_TOP_MID, -1), be_const_int(10) },
{ be_const_key(STYLE_PATTERN_RECOLOR, 92), be_const_int(105) },
{ be_const_key(TXT_FLAG_EXPAND, -1), be_const_int(2) },
{ be_const_key(STYLE_BORDER_WIDTH, 306), be_const_int(48) },
{ be_const_key(SYMBOL_BELL, -1), be_const_str(&be_local_const_str_SYMBOL_BELL) },
{ be_const_key(EVENT_KEY, -1), be_const_int(12) },
{ be_const_key(SYMBOL_BLUETOOTH, 55), be_const_str(&be_local_const_str_SYMBOL_BLUETOOTH) },
{ be_const_key(BTNMATRIX_CTRL_HIDDEN, -1), be_const_int(8) },
{ be_const_key(OPA_10, -1), be_const_int(25) },
{ be_const_key(EVENT_GESTURE, -1), be_const_int(11) },
{ be_const_key(SYMBOL_CALL, -1), be_const_str(&be_local_const_str_SYMBOL_CALL) },
{ be_const_key(BTN_STATE_CHECKED_DISABLED, -1), be_const_int(5) },
{ be_const_key(STYLE_BORDER_SIDE, -1), be_const_int(49) },
{ be_const_key(STATE_DISABLED, 289), be_const_int(32) },
{ be_const_key(PAGE_EDGE_TOP, -1), be_const_int(2) },
{ be_const_key(BTNMATRIX_CTRL_CLICK_TRIG, 37), be_const_int(256) },
{ be_const_key(NAVY, -1), be_const_int(128) },
{ be_const_key(SYMBOL_SAVE, 414), be_const_str(&be_local_const_str_SYMBOL_SAVE) },
{ be_const_key(STYLE_TRANSITION_PATH, 407), be_const_int(190) },
{ be_const_key(TABVIEW_TAB_POS_LEFT, 35), be_const_int(3) },
{ be_const_key(CYAN, -1), be_const_int(65535) },
{ be_const_key(EVENT_DRAG_BEGIN, 94), be_const_int(8) },
{ be_const_key(EVENT_PRESS_LOST, -1), be_const_int(2) },
{ be_const_key(SYMBOL_DRIVE, -1), be_const_str(&be_local_const_str_SYMBOL_DRIVE) },
{ be_const_key(SYMBOL_EJECT, -1), be_const_str(&be_local_const_str_SYMBOL_EJECT) },
{ be_const_key(SYMBOL_UP, -1), be_const_str(&be_local_const_str_SYMBOL_UP) },
{ be_const_key(OPA_COVER, -1), be_const_int(255) },
{ be_const_key(ALIGN_IN_TOP_LEFT, -1), be_const_int(1) },
{ be_const_key(SYMBOL_AUDIO, -1), be_const_str(&be_local_const_str_SYMBOL_AUDIO) },
{ be_const_key(PROTECT_EVENT_TO_DISABLED, 438), be_const_int(64) },
{ be_const_key(STYLE_TEXT_OPA, -1), be_const_int(32908) },
{ be_const_key(TXT_CMD_STATE_WAIT, -1), be_const_int(0) },
{ be_const_key(TEXTAREA_CURSOR_LAST, -1), be_const_int(32767) },
{ be_const_key(SPINNER_DIR_BACKWARD, -1), be_const_int(1) },
{ be_const_key(SYMBOL_STOP, -1), be_const_str(&be_local_const_str_SYMBOL_STOP) },
{ be_const_key(STYLE_PATTERN_REPEAT, -1), be_const_int(97) },
{ be_const_key(ALIGN_IN_TOP_RIGHT, -1), be_const_int(3) },
{ be_const_key(CHART_AXIS_INVERSE_LABELS_ORDER, -1), be_const_int(2) },
{ be_const_key(STYLE_PATTERN_OPA, 123), be_const_int(108) },
{ be_const_key(BLEND_MODE_SUBTRACTIVE, -1), be_const_int(2) },
{ be_const_key(SYMBOL_PASTE, 185), be_const_str(&be_local_const_str_SYMBOL_PASTE) },
{ be_const_key(BORDER_SIDE_NONE, -1), be_const_int(0) },
{ be_const_key(TEAL, -1), be_const_int(32896) },
{ be_const_key(FS_RES_HW_ERR, -1), be_const_int(1) },
{ be_const_key(STYLE_LINE_WIDTH, -1), be_const_int(144) },
{ be_const_key(EVENT_SHORT_CLICKED, -1), be_const_int(3) },
{ be_const_key(LIST_PART_SCROLLBAR, 72), be_const_int(1) },
{ be_const_key(STYLE_TEXT_SEL_COLOR, -1), be_const_int(32906) },
{ be_const_key(SYMBOL_LEFT, -1), be_const_str(&be_local_const_str_SYMBOL_LEFT) },
{ be_const_key(GRAD_DIR_VER, -1), be_const_int(1) },
{ be_const_key(EVENT_REFRESH, -1), be_const_int(18) },
{ be_const_key(KEY_ENTER, -1), be_const_int(10) },
{ be_const_key(TABVIEW_TAB_POS_TOP, 390), be_const_int(1) },
{ be_const_key(STYLE_SHADOW_BLEND_MODE, -1), be_const_int(84) },
{ be_const_key(SILVER, -1), be_const_int(12632256) },
{ be_const_key(SYMBOL_OK, -1), be_const_str(&be_local_const_str_SYMBOL_OK) },
{ be_const_key(TABVIEW_TAB_POS_NONE, -1), be_const_int(0) },
{ be_const_key(SYMBOL_PASTE, -1), be_const_str(&be_local_const_str_SYMBOL_PASTE) },
{ be_const_key(get_ver_res, 270), be_const_func(lv0_get_ver_res) },
{ be_const_key(STYLE_TRANSITION_TIME, -1), be_const_int(176) },
{ be_const_key(STYLE_PAD_TOP, -1), be_const_int(16) },
{ be_const_key(STYLE_TRANSFORM_ZOOM, -1), be_const_int(7) },
{ be_const_key(PAGE_EDGE_BOTTOM, -1), be_const_int(8) },
{ be_const_key(STYLE_LINE_COLOR, -1), be_const_int(153) },
{ be_const_key(STYLE_SHADOW_OFS_X, -1), be_const_int(81) },
{ be_const_key(SLIDER_TYPE_SYMMETRICAL, -1), be_const_int(1) },
{ be_const_key(OLIVE, -1), be_const_int(8421376) },
{ be_const_key(LIST_PART_BG, 223), be_const_int(0) },
{ be_const_key(SYMBOL_CUT, -1), be_const_str(&be_local_const_str_SYMBOL_CUT) },
{ be_const_key(STYLE_BG_COLOR, 244), be_const_int(41) },
{ be_const_key(SCROLLBAR_MODE_ON, 273), be_const_int(1) },
{ be_const_key(SYMBOL_BATTERY_FULL, 90), be_const_str(&be_local_const_str_SYMBOL_BATTERY_FULL) },
{ be_const_key(TEMPL_STYLE_Y, 48), be_const_int(1) },
{ be_const_key(STYLE_PAD_BOTTOM, -1), be_const_int(17) },
{ be_const_key(SYMBOL_NEW_LINE, -1), be_const_str(&be_local_const_str_SYMBOL_NEW_LINE) },
{ be_const_key(SYMBOL_NEXT, -1), be_const_str(&be_local_const_str_SYMBOL_NEXT) },
{ be_const_key(KEY_LEFT, 436), be_const_int(20) },
{ be_const_key(FIT_MAX, -1), be_const_int(3) },
{ be_const_key(LABEL_LONG_BREAK, -1), be_const_int(1) },
{ be_const_key(STYLE_TRANSITION_PROP_4, -1), be_const_int(181) },
{ be_const_key(SYMBOL_SD_CARD, -1), be_const_str(&be_local_const_str_SYMBOL_SD_CARD) },
{ be_const_key(STYLE_MARGIN_RIGHT, -1), be_const_int(24) },
{ be_const_key(SYMBOL_VIDEO, -1), be_const_str(&be_local_const_str_SYMBOL_VIDEO) },
{ be_const_key(CHART_UPDATE_MODE_CIRCULAR, -1), be_const_int(1) },
{ be_const_key(STYLE_MARGIN_RIGHT, 287), be_const_int(24) },
{ be_const_key(DROPDOWN_PART_MAIN, 455), be_const_int(0) },
{ be_const_key(DISP_ROT_180, -1), be_const_int(2) },
{ be_const_key(SPINNER_TYPE_CONSTANT_ARC, -1), be_const_int(2) },
{ be_const_key(TEXT_DECOR_UNDERLINE, 444), be_const_int(1) },
{ be_const_key(TXT_FLAG_CENTER, 164), be_const_int(4) },
{ be_const_key(SYMBOL_POWER, -1), be_const_str(&be_local_const_str_SYMBOL_POWER) },
{ be_const_key(STYLE_TRANSFORM_ANGLE, -1), be_const_int(6) },
{ be_const_key(ARC_TYPE_REVERSE, -1), be_const_int(2) },
{ be_const_key(SYMBOL_BATTERY_1, 342), be_const_str(&be_local_const_str_SYMBOL_BATTERY_1) },
{ be_const_key(DRAG_DIR_ONE, -1), be_const_int(4) },
{ be_const_key(BTNMATRIX_CTRL_CHECK_STATE, -1), be_const_int(128) },
{ be_const_key(STYLE_TRANSITION_DELAY, -1), be_const_int(177) },
{ be_const_key(EVENT_LONG_PRESSED_REPEAT, -1), be_const_int(5) },
{ be_const_key(LABEL_LONG_SROLL_CIRC, -1), be_const_int(4) },
{ be_const_key(WHITE, 429), be_const_int(16777215) },
{ be_const_key(LABEL_ALIGN_AUTO, -1), be_const_int(3) },
{ be_const_key(TXT_FLAG_FIT, -1), be_const_int(16) },
{ be_const_key(OPA_30, -1), be_const_int(76) },
{ be_const_key(SYMBOL_DUMMY, -1), be_const_str(&be_local_const_str_SYMBOL_DUMMY) },
{ be_const_key(TEXT_DECOR_UNDERLINE, -1), be_const_int(1) },
{ be_const_key(TABVIEW_TAB_POS_LEFT, -1), be_const_int(3) },
{ be_const_key(SYMBOL_EJECT, -1), be_const_str(&be_local_const_str_SYMBOL_EJECT) },
{ be_const_key(SPINNER_TYPE_FILLSPIN_ARC, -1), be_const_int(1) },
{ be_const_key(BORDER_SIDE_LEFT, -1), be_const_int(4) },
{ be_const_key(TABVIEW_TAB_POS_NONE, -1), be_const_int(0) },
{ be_const_key(TXT_FLAG_NONE, -1), be_const_int(0) },
{ be_const_key(STYLE_IMAGE_OPA, -1), be_const_int(32940) },
{ be_const_key(EVENT_DELETE, -1), be_const_int(21) },
{ be_const_key(SCROLLBAR_MODE_UNHIDE, 36), be_const_int(8) },
{ be_const_key(OBJMASK_PART_MAIN, -1), be_const_int(0) },
{ be_const_key(GESTURE_DIR_TOP, -1), be_const_int(0) },
{ be_const_key(TEMPL_STYLE_X, -1), be_const_int(0) },
{ be_const_key(BTNMATRIX_CTRL_DISABLED, -1), be_const_int(32) },
{ be_const_key(I2C, -1), be_const_int(1) },
{ be_const_key(CHART_AXIS_SKIP_LAST_TICK, -1), be_const_int(0) },
{ be_const_key(STYLE_BG_GRAD_COLOR, -1), be_const_int(42) },
{ be_const_key(SYMBOL_CUT, 207), be_const_str(&be_local_const_str_SYMBOL_CUT) },
{ be_const_key(CHART_TYPE_COLUMN, -1), be_const_int(2) },
{ be_const_key(start, -1), be_const_func(lv0_start) },
{ be_const_key(SCROLLBAR_MODE_DRAG, -1), be_const_int(2) },
{ be_const_key(FS_RES_BUSY, -1), be_const_int(7) },
{ be_const_key(BTNMATRIX_CTRL_CHECKABLE, 65), be_const_int(64) },
{ be_const_key(OPA_TRANSP, -1), be_const_int(0) },
{ be_const_key(PAGE_EDGE_RIGHT, -1), be_const_int(4) },
{ be_const_key(GESTURE_DIR_TOP, -1), be_const_int(0) },
{ be_const_key(KEY_DOWN, -1), be_const_int(18) },
{ be_const_key(OBJ_PART_REAL_FIRST, -1), be_const_int(64) },
{ be_const_key(seg7_font, -1), be_const_func(lv0_load_seg7_font) },
{ be_const_key(layer_top, 194), be_const_func(lv0_layer_top) },
{ be_const_key(SYMBOL_GPS, 279), be_const_str(&be_local_const_str_SYMBOL_GPS) },
};
static be_define_const_map(
m_liblvgl_map,
457
459
);
static be_define_const_module(

View File

@ -0,0 +1,17 @@
{
"name":"LVGL_assets",
"description":"Assets for LVGL on ESP32",
"keywords":"lvgl, display",
"authors":
{
"name": "xx",
"maintainer": true
},
"version": "7.0",
"license": "MIT License",
"frameworks": "arduino",
"platforms": "espressif32",
"build": {
"flags": [ "-DLV_LVGL_H_INCLUDE_SIMPLE" ]
}
}

View File

@ -0,0 +1,171 @@
/*******************************************************************************
* Size: 10 px
* Bpp: 1
* Opts: --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 10 --format lvgl --bpp 1 -o c_files//seg7_10.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_10
#define SEG7_10 1
#endif
#if SEG7_10
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0x0,
/* U+002D "-" */
0xf0,
/* U+002E "." */
0xc0,
/* U+0030 "0" */
0x7a, 0x18, 0x61, 0x86, 0x18, 0x61, 0x85, 0xe0,
/* U+0031 "1" */
0xf7, 0x80,
/* U+0032 "2" */
0x78, 0x10, 0x41, 0x7a, 0x8, 0x20, 0x81, 0xe0,
/* U+0033 "3" */
0x78, 0x10, 0x41, 0x78, 0x10, 0x41, 0x5, 0xe0,
/* U+0034 "4" */
0x86, 0x18, 0x61, 0x78, 0x10, 0x41, 0x4,
/* U+0035 "5" */
0x7a, 0x8, 0x20, 0x78, 0x10, 0x41, 0x5, 0xe0,
/* U+0036 "6" */
0x7a, 0x8, 0x20, 0x7a, 0x18, 0x61, 0x85, 0xe0,
/* U+0037 "7" */
0x7a, 0x18, 0x61, 0x84, 0x10, 0x41, 0x4, 0x0,
/* U+0038 "8" */
0x7a, 0x18, 0x61, 0x7a, 0x18, 0x61, 0x85, 0xe0,
/* U+0039 "9" */
0x7a, 0x18, 0x61, 0x78, 0x10, 0x41, 0x5, 0xe0,
/* U+003A ":" */
0xc0, 0xc0
};
/*---------------------
* 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 = 32, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 131, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2, .adv_w = 131, .box_w = 4, .box_h = 1, .ofs_x = 2, .ofs_y = 5},
{.bitmap_index = 3, .adv_w = 0, .box_w = 2, .box_h = 1, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 4, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 12, .adv_w = 131, .box_w = 1, .box_h = 10, .ofs_x = 6, .ofs_y = 0},
{.bitmap_index = 14, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 22, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 30, .adv_w = 131, .box_w = 6, .box_h = 9, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 37, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 45, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 53, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 61, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 69, .adv_w = 131, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 77, .adv_w = 32, .box_w = 2, .box_h = 5, .ofs_x = 0, .ofs_y = 2}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_10 = {
#else
lv_font_t seg7_10 = {
#endif
.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 = 10, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -1,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_10*/

View File

@ -0,0 +1,180 @@
/*******************************************************************************
* Size: 12 px
* Bpp: 1
* Opts: --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 12 --format lvgl --bpp 1 -o c_files//seg7_12.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_12
#define SEG7_12 1
#endif
#if SEG7_12
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0x0,
/* U+002D "-" */
0xfc,
/* U+002E "." */
0xc0,
/* U+0030 "0" */
0x7d, 0x6, 0xc, 0x18, 0x30, 0x60, 0xc1, 0x83,
0x6, 0xb, 0xe0,
/* U+0031 "1" */
0xfb, 0xe0,
/* U+0032 "2" */
0x7c, 0x4, 0x8, 0x10, 0x2f, 0xa0, 0x40, 0x81,
0x2, 0x3, 0xe0,
/* U+0033 "3" */
0xf8, 0x10, 0x41, 0x7, 0xe0, 0x41, 0x4, 0x10,
0x7e,
/* U+0034 "4" */
0x83, 0x6, 0xc, 0x18, 0x2f, 0x80, 0x81, 0x2,
0x4, 0x8,
/* U+0035 "5" */
0x7d, 0x2, 0x4, 0x8, 0xf, 0x80, 0x81, 0x2,
0x4, 0xb, 0xe0,
/* U+0036 "6" */
0x7d, 0x2, 0x4, 0x8, 0xf, 0xa0, 0xc1, 0x83,
0x6, 0xb, 0xe0,
/* U+0037 "7" */
0x7d, 0x6, 0xc, 0x18, 0x30, 0x40, 0x81, 0x2,
0x4, 0x8, 0x0,
/* U+0038 "8" */
0x7d, 0x6, 0xc, 0x18, 0x2f, 0xa0, 0xc1, 0x83,
0x6, 0xb, 0xe0,
/* U+0039 "9" */
0x7d, 0x6, 0xc, 0x18, 0x2f, 0x80, 0x81, 0x2,
0x4, 0xb, 0xe0,
/* U+003A ":" */
0xc0, 0x30
};
/*---------------------
* 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 = 38, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 157, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2, .adv_w = 157, .box_w = 6, .box_h = 1, .ofs_x = 2, .ofs_y = 6},
{.bitmap_index = 3, .adv_w = 0, .box_w = 2, .box_h = 1, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 4, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 15, .adv_w = 157, .box_w = 1, .box_h = 12, .ofs_x = 7, .ofs_y = 0},
{.bitmap_index = 17, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 28, .adv_w = 157, .box_w = 6, .box_h = 12, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 37, .adv_w = 157, .box_w = 7, .box_h = 11, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 47, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 58, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 69, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 80, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 91, .adv_w = 157, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 102, .adv_w = 38, .box_w = 2, .box_h = 6, .ofs_x = 0, .ofs_y = 3}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_12 = {
#else
lv_font_t seg7_12 = {
#endif
.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 = 12, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -1,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_12*/

View File

@ -0,0 +1,186 @@
/*******************************************************************************
* Size: 14 px
* Bpp: 1
* Opts: --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 14 --format lvgl --bpp 1 -o c_files//seg7_14.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_14
#define SEG7_14 1
#endif
#if SEG7_14
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0x0,
/* U+002D "-" */
0x7e, 0xfc,
/* U+002E "." */
0xf0,
/* U+0030 "0" */
0x7f, 0x5f, 0x70, 0x78, 0x3c, 0x1e, 0xf, 0x6,
0x0, 0xc1, 0xe0, 0xf0, 0x78, 0x3c, 0x1d, 0xf5,
0xfc,
/* U+0031 "1" */
0x7f, 0xf7, 0xff, 0xc0,
/* U+0032 "2" */
0x7f, 0x1f, 0x40, 0x60, 0x30, 0x18, 0xc, 0x6,
0x7d, 0xbe, 0x60, 0x30, 0x18, 0xc, 0x5, 0xf1,
0xfc,
/* U+0033 "3" */
0xfe, 0x7d, 0x3, 0x3, 0x3, 0x3, 0x3, 0x7d,
0x7d, 0x3, 0x3, 0x3, 0x3, 0x7d, 0xfe,
/* U+0034 "4" */
0x80, 0xe0, 0xf0, 0x78, 0x3c, 0x1e, 0xe, 0xfa,
0x7d, 0x1, 0x80, 0xc0, 0x60, 0x30, 0x18, 0x4,
/* U+0035 "5" */
0x7f, 0x5f, 0x30, 0x18, 0xc, 0x6, 0x3, 0x1,
0x7c, 0x3e, 0x80, 0xc0, 0x60, 0x30, 0x19, 0xf5,
0xfc,
/* U+0036 "6" */
0x7f, 0x5f, 0x30, 0x18, 0xc, 0x6, 0x3, 0x1,
0x7c, 0xbe, 0xe0, 0xf0, 0x78, 0x3c, 0x1d, 0xf5,
0xfc,
/* U+0037 "7" */
0x7f, 0x5f, 0x70, 0x78, 0x3c, 0x1e, 0xf, 0x6,
0x1, 0x1, 0x80, 0xc0, 0x60, 0x30, 0x18, 0x4,
/* U+0038 "8" */
0x7f, 0x5f, 0x70, 0x78, 0x3c, 0x1e, 0xf, 0x7,
0x7d, 0xbe, 0xe0, 0xf0, 0x78, 0x3c, 0x1d, 0xf5,
0xfc,
/* U+0039 "9" */
0x7f, 0x5f, 0x70, 0x78, 0x3c, 0x1e, 0xf, 0x7,
0x7d, 0x3e, 0x80, 0xc0, 0x60, 0x30, 0x19, 0xf5,
0xfc,
/* U+003A ":" */
0xc3
};
/*---------------------
* 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 = 45, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 183, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2, .adv_w = 183, .box_w = 7, .box_h = 2, .ofs_x = 2, .ofs_y = 6},
{.bitmap_index = 4, .adv_w = 0, .box_w = 2, .box_h = 2, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 5, .adv_w = 183, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 22, .adv_w = 183, .box_w = 2, .box_h = 13, .ofs_x = 8, .ofs_y = 1},
{.bitmap_index = 26, .adv_w = 183, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 43, .adv_w = 183, .box_w = 8, .box_h = 15, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 58, .adv_w = 183, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 74, .adv_w = 183, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 91, .adv_w = 183, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 108, .adv_w = 183, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 124, .adv_w = 183, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 141, .adv_w = 183, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 158, .adv_w = 45, .box_w = 1, .box_h = 8, .ofs_x = 1, .ofs_y = 3}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_14 = {
#else
lv_font_t seg7_14 = {
#endif
.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 = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -2,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_14*/

View File

@ -0,0 +1,189 @@
/*******************************************************************************
* Size: 16 px
* Bpp: 1
* Opts: --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 16 --format lvgl --bpp 1 -o c_files//seg7_16.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_16
#define SEG7_16 1
#endif
#if SEG7_16
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0x0,
/* U+002D "-" */
0xff, 0xfc,
/* U+002E "." */
0xf0,
/* U+0030 "0" */
0x7f, 0xaf, 0xdc, 0xf, 0x3, 0xc0, 0xf0, 0x3c,
0xe, 0x1, 0x80, 0x70, 0x3c, 0xf, 0x3, 0xc0,
0xf0, 0x3b, 0xf5, 0xfe,
/* U+0031 "1" */
0xff, 0xf7, 0xff, 0xd0,
/* U+0032 "2" */
0x7f, 0x8f, 0xd0, 0xc, 0x3, 0x0, 0xc0, 0x30,
0xc, 0xfd, 0xbf, 0x30, 0xc, 0x3, 0x0, 0xc0,
0x30, 0xb, 0xf1, 0xfe,
/* U+0033 "3" */
0xff, 0x3f, 0x40, 0x60, 0x30, 0x18, 0xc, 0x6,
0xfd, 0x7e, 0x80, 0xc0, 0x60, 0x30, 0x18, 0xd,
0xfb, 0xfe,
/* U+0034 "4" */
0x80, 0x70, 0x3c, 0xf, 0x3, 0xc0, 0xf0, 0x3b,
0xf4, 0xfd, 0x0, 0xc0, 0x30, 0xc, 0x3, 0x0,
0xc0, 0x10,
/* U+0035 "5" */
0x7f, 0xaf, 0xcc, 0x3, 0x0, 0xc0, 0x30, 0xc,
0x2, 0xfc, 0x3f, 0x40, 0x30, 0xc, 0x3, 0x0,
0xc0, 0x33, 0xf5, 0xfe,
/* U+0036 "6" */
0x7f, 0xaf, 0xcc, 0x3, 0x0, 0xc0, 0x30, 0xc,
0x2, 0xfc, 0xbf, 0x70, 0x3c, 0xf, 0x3, 0xc0,
0xf0, 0x3b, 0xf5, 0xfe,
/* U+0037 "7" */
0x7f, 0xaf, 0xdc, 0xf, 0x3, 0xc0, 0xf0, 0x3c,
0xe, 0x1, 0x0, 0xc0, 0x30, 0xc, 0x3, 0x0,
0xc0, 0x30, 0x4,
/* U+0038 "8" */
0x7f, 0xaf, 0xdc, 0xf, 0x3, 0xc0, 0xf0, 0x3c,
0xe, 0xfd, 0xbf, 0x70, 0x3c, 0xf, 0x3, 0xc0,
0xf0, 0x3b, 0xf5, 0xfe,
/* U+0039 "9" */
0x7f, 0xaf, 0xdc, 0xf, 0x3, 0xc0, 0xf0, 0x3c,
0xe, 0xfd, 0x3f, 0x40, 0x30, 0xc, 0x3, 0x0,
0xc0, 0x33, 0xf5, 0xfe,
/* U+003A ":" */
0xa0, 0xa
};
/*---------------------
* 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 = 51, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 209, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2, .adv_w = 209, .box_w = 7, .box_h = 2, .ofs_x = 3, .ofs_y = 7},
{.bitmap_index = 4, .adv_w = 0, .box_w = 2, .box_h = 2, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 5, .adv_w = 209, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 25, .adv_w = 209, .box_w = 2, .box_h = 14, .ofs_x = 9, .ofs_y = 1},
{.bitmap_index = 29, .adv_w = 209, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 49, .adv_w = 209, .box_w = 9, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 67, .adv_w = 209, .box_w = 10, .box_h = 14, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 85, .adv_w = 209, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 105, .adv_w = 209, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 125, .adv_w = 209, .box_w = 10, .box_h = 15, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 144, .adv_w = 209, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 164, .adv_w = 209, .box_w = 10, .box_h = 16, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 184, .adv_w = 51, .box_w = 2, .box_h = 8, .ofs_x = 1, .ofs_y = 3}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_16 = {
#else
lv_font_t seg7_16 = {
#endif
.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 = 16, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -2,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_16*/

View File

@ -0,0 +1,195 @@
/*******************************************************************************
* Size: 18 px
* Bpp: 1
* Opts: --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 18 --format lvgl --bpp 1 -o c_files//seg7_18.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_18
#define SEG7_18 1
#endif
#if SEG7_18
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0x0,
/* U+002D "-" */
0x7f, 0x3f, 0x80,
/* U+002E "." */
0xf0,
/* U+0030 "0" */
0x7f, 0xd7, 0xf7, 0x1, 0xe0, 0x3c, 0x7, 0x80,
0xf0, 0x1e, 0x3, 0x80, 0x30, 0x7, 0x1, 0xe0,
0x3c, 0x7, 0x80, 0xf0, 0x1e, 0x3, 0xbf, 0xaf,
0xf8,
/* U+0031 "1" */
0x7f, 0xfd, 0x7f, 0xfd,
/* U+0032 "2" */
0x7f, 0xc7, 0xf4, 0x1, 0x80, 0x30, 0x6, 0x0,
0xc0, 0x18, 0x3, 0x3f, 0xb7, 0xf3, 0x0, 0x60,
0xc, 0x1, 0x80, 0x30, 0x6, 0x0, 0xbf, 0x8f,
0xf8,
/* U+0033 "3" */
0xff, 0x9f, 0xd0, 0xc, 0x3, 0x0, 0xc0, 0x30,
0xc, 0x3, 0x7f, 0x5f, 0xd0, 0xc, 0x3, 0x0,
0xc0, 0x30, 0xc, 0x3, 0x7f, 0x7f, 0xe0,
/* U+0034 "4" */
0x80, 0x38, 0xf, 0x1, 0xe0, 0x3c, 0x7, 0x80,
0xf0, 0x1d, 0xfd, 0x3f, 0xa0, 0xc, 0x1, 0x80,
0x30, 0x6, 0x0, 0xc0, 0x18, 0x1,
/* U+0035 "5" */
0x7f, 0xd7, 0xf3, 0x0, 0x60, 0xc, 0x1, 0x80,
0x30, 0x6, 0x0, 0xbf, 0x87, 0xf4, 0x1, 0x80,
0x30, 0x6, 0x0, 0xc0, 0x18, 0x3, 0x3f, 0xaf,
0xf8,
/* U+0036 "6" */
0x7f, 0xd7, 0xf3, 0x0, 0x60, 0xc, 0x1, 0x80,
0x30, 0x6, 0x0, 0xbf, 0x97, 0xf7, 0x1, 0xe0,
0x3c, 0x7, 0x80, 0xf0, 0x1e, 0x3, 0xbf, 0xaf,
0xf8,
/* U+0037 "7" */
0x7f, 0xd7, 0xf7, 0x1, 0xe0, 0x3c, 0x7, 0x80,
0xf0, 0x1e, 0x3, 0x80, 0x20, 0x4, 0x1, 0x80,
0x30, 0x6, 0x0, 0xc0, 0x18, 0x3, 0x0, 0x20,
/* U+0038 "8" */
0x7f, 0xd7, 0xf7, 0x1, 0xe0, 0x3c, 0x7, 0x80,
0xf0, 0x1e, 0x3, 0xbf, 0xb7, 0xf7, 0x1, 0xe0,
0x3c, 0x7, 0x80, 0xf0, 0x1e, 0x3, 0xbf, 0xaf,
0xf8,
/* U+0039 "9" */
0x7f, 0xd7, 0xf7, 0x1, 0xe0, 0x3c, 0x7, 0x80,
0xf0, 0x1e, 0x3, 0xbf, 0xa7, 0xf4, 0x1, 0x80,
0x30, 0x6, 0x0, 0xc0, 0x18, 0x3, 0x3f, 0xaf,
0xf8,
/* U+003A ":" */
0xf0, 0x3, 0xc0
};
/*---------------------
* 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 = 58, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 235, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2, .adv_w = 235, .box_w = 9, .box_h = 2, .ofs_x = 3, .ofs_y = 8},
{.bitmap_index = 5, .adv_w = 0, .box_w = 2, .box_h = 2, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 6, .adv_w = 235, .box_w = 11, .box_h = 18, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 31, .adv_w = 235, .box_w = 2, .box_h = 16, .ofs_x = 11, .ofs_y = 1},
{.bitmap_index = 35, .adv_w = 235, .box_w = 11, .box_h = 18, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 60, .adv_w = 235, .box_w = 10, .box_h = 18, .ofs_x = 3, .ofs_y = 0},
{.bitmap_index = 83, .adv_w = 235, .box_w = 11, .box_h = 16, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 105, .adv_w = 235, .box_w = 11, .box_h = 18, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 130, .adv_w = 235, .box_w = 11, .box_h = 18, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 155, .adv_w = 235, .box_w = 11, .box_h = 17, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 179, .adv_w = 235, .box_w = 11, .box_h = 18, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 204, .adv_w = 235, .box_w = 11, .box_h = 18, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 229, .adv_w = 58, .box_w = 2, .box_h = 9, .ofs_x = 1, .ofs_y = 4}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_18 = {
#else
lv_font_t seg7_18 = {
#endif
.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 = 18, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -2,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_18*/

View File

@ -0,0 +1,219 @@
/*******************************************************************************
* Size: 20 px
* Bpp: 2
* Opts: --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 20 --format lvgl --bpp 2 -o c_files//seg7_20.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_20
#define SEG7_20 1
#endif
#if SEG7_20
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
/* U+0021 "!" */
/* U+002D "-" */
0x2, 0xfc, 0xe, 0xbe, 0x43, 0xf9,
/* U+002E "." */
0x2, 0xe, 0x42, 0x40,
/* U+0030 "0" */
0xb, 0xff, 0xc1, 0xb4, 0x3f, 0x38, 0x11, 0xaf,
0xc8, 0x79, 0x7e, 0xc3, 0x61, 0xff, 0xce, 0x43,
0x21, 0xf2, 0x19, 0xf, 0xfe, 0x26, 0x1f, 0xd8,
0x52, 0x1f, 0x61, 0xff, 0xc4, 0x42, 0x83, 0xf6,
0x12, 0x1f, 0xc8, 0x7f, 0xf4, 0x70, 0xd8, 0x7f,
0xf4, 0xd7, 0xf0, 0x10, 0x95, 0x5f, 0x2b, 0x4,
0x1f, 0xed, 0x0,
/* U+0031 "1" */
0xf, 0x9c, 0xc, 0x16, 0x1f, 0xc8, 0x87, 0xff,
0x1, 0x30, 0x51, 0x3, 0x20, 0x84, 0x43, 0xfb,
0xf, 0xf9, 0x6, 0x19, 0xb0, 0x0,
/* U+0032 "2" */
0xb, 0xff, 0xc1, 0xd0, 0x7e, 0xa0, 0x66, 0xbf,
0x90, 0xe5, 0xfb, 0xf, 0xff, 0x2, 0x21, 0xff,
0xd1, 0xc3, 0x5f, 0xf4, 0x1a, 0x50, 0x7e, 0xd0,
0x35, 0xfc, 0x87, 0x97, 0xf0, 0x64, 0x3f, 0xfc,
0x18, 0x7f, 0xf1, 0x17, 0xf0, 0x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x2b, 0x24, 0x3f, 0xb4,
/* U+0037 "7" */
0x2, 0xff, 0x82, 0x6b, 0xfe, 0x19, 0xf, 0xe4,
0x27, 0xfe, 0x42, 0xc3, 0xff, 0xb2, 0x88, 0x88,
0x7f, 0xf2, 0xf0, 0x30, 0x7d, 0x5, 0xc1, 0xf9,
0x60, 0xff, 0xb4, 0x3f, 0xe4, 0x3f, 0xf9, 0xf8,
0x7f, 0xf7, 0xd0, 0xff, 0xa0, 0xff, 0xe1, 0x70,
0x0,
/* U+0038 "8" */
0xb, 0xff, 0xc1, 0xb4, 0x3f, 0x50, 0x8, 0xd7,
0xf2, 0x1c, 0xbf, 0x61, 0xb0, 0xff, 0xed, 0xa2,
0x4, 0x43, 0xff, 0x99, 0x84, 0x9f, 0xf4, 0x19,
0xd0, 0xfb, 0x50, 0x1a, 0xfe, 0x50, 0x72, 0xfc,
0x1c, 0x87, 0xff, 0x33, 0xf, 0xfe, 0x3e, 0x1f,
0xfc, 0x45, 0xfc, 0x4, 0x33, 0x5f, 0x2b, 0x4,
0x87, 0xf6, 0x80,
/* U+0039 "9" */
0x7, 0xff, 0x82, 0xd0, 0xfd, 0x41, 0x1a, 0xfe,
0x43, 0x2f, 0xd8, 0x58, 0x7f, 0xf6, 0x51, 0x11,
0xf, 0xfe, 0x5e, 0x4, 0xff, 0xa0, 0xb9, 0xf,
0xb5, 0x5, 0x5f, 0x94, 0x19, 0x7e, 0xf, 0xfe,
0x86, 0x1f, 0xfd, 0x65, 0xf8, 0x8, 0x5d, 0x7c,
0xac, 0x10, 0x7f, 0x68, 0x0,
/* U+003A ":" */
0x2, 0xe, 0x82, 0x65, 0xa1, 0xff, 0xc5, 0x41,
0x4c, 0xc4
};
/*---------------------
* 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 = 64, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 261, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 261, .box_w = 10, .box_h = 3, .ofs_x = 3, .ofs_y = 9},
{.bitmap_index = 6, .adv_w = 0, .box_w = 4, .box_h = 3, .ofs_x = -3, .ofs_y = 0},
{.bitmap_index = 10, .adv_w = 261, .box_w = 15, .box_h = 20, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 61, .adv_w = 261, .box_w = 5, .box_h = 19, .ofs_x = 11, .ofs_y = 1},
{.bitmap_index = 83, .adv_w = 261, .box_w = 15, .box_h = 20, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 127, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 169, .adv_w = 261, .box_w = 14, .box_h = 19, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 214, .adv_w = 261, .box_w = 13, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 255, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 301, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 342, .adv_w = 261, .box_w = 15, .box_h = 20, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 393, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 438, .adv_w = 64, .box_w = 4, .box_h = 11, .ofs_x = 0, .ofs_y = 4}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 1,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_20 = {
#else
lv_font_t seg7_20 = {
#endif
.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 = 20, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -2,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_20*/

View File

@ -0,0 +1,235 @@
/*******************************************************************************
* Size: 24 px
* Bpp: 2
* Opts: --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 24 --format lvgl --bpp 2 -o c_files//seg7_24.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_24
#define SEG7_24 1
#endif
#if SEG7_24
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
/* U+0021 "!" */
/* U+002D "-" */
0x2f, 0xfc, 0x92, 0x1f, 0xa2, 0xf, 0xe8,
/* U+002E "." */
0x3c, 0x20, 0x50, 0x10,
/* U+0030 "0" */
0x9, 0xff, 0xfe, 0x0, 0x67, 0xf, 0xf9, 0x82,
0x98, 0x3f, 0xa5, 0x7, 0x5f, 0xfd, 0x7, 0xff,
0xa1, 0x2, 0x1c, 0x87, 0xff, 0x9, 0xf, 0xfe,
0x8e, 0xc, 0x3a, 0xf, 0xd8, 0x79, 0xc3, 0xf9,
0x84, 0x18, 0x7f, 0xf1, 0x55, 0x87, 0xf5, 0x3,
0xff, 0x88, 0x87, 0xff, 0xad, 0xf, 0xfe, 0x12,
0x1c, 0x81, 0xf, 0xfe, 0x8e, 0x19, 0x3f, 0xf8,
0x39, 0x42, 0x1f, 0x97, 0x5, 0xa1, 0xfe, 0x60,
0x80,
/* U+0031 "1" */
0xf, 0xe7, 0x9, 0x83, 0x41, 0xff, 0xc4, 0x40,
0x87, 0xfd, 0x83, 0xe, 0x83, 0xda, 0x82, 0x90,
0xa4, 0x32, 0x1f, 0xfc, 0x44, 0x8, 0x7f, 0xf1,
0x70, 0x28, 0x3a, 0x88, 0x0,
/* U+0032 "2" */
0x9, 0xff, 0xfe, 0x0, 0x72, 0x1f, 0xfc, 0xc,
0x3b, 0xf, 0xfe, 0x37, 0xff, 0x7, 0xff, 0x69,
0xf, 0xfe, 0x12, 0x1f, 0xfd, 0xac, 0x3f, 0xf8,
0x58, 0x7e, 0xbf, 0xf8, 0x3e, 0x90, 0xfd, 0x72,
0xb, 0xc1, 0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xc2, 0x43, 0xff, 0x91, 0x87, 0xfd, 0x86,
0xbf, 0xfc, 0x86, 0x7c, 0x87, 0xe4, 0x50, 0x4a,
0xf, 0xf3, 0x4,
/* U+0039 "9" */
0x3, 0xff, 0xfc, 0x0, 0x9c, 0x3f, 0xf8, 0x18,
0x26, 0xf, 0xfe, 0x25, 0xff, 0xc1, 0xff, 0xd8,
0x43, 0xff, 0x82, 0x86, 0x40, 0x87, 0xff, 0x43,
0xd, 0x87, 0xec, 0x36, 0x3f, 0xfe, 0xd, 0x62,
0x1f, 0xa8, 0xa0, 0xa0, 0xfe, 0xa2, 0x1d, 0xff,
0xd0, 0x7f, 0xfd, 0x90, 0x21, 0xff, 0xe6, 0xc3,
0x5f, 0xfc, 0x87, 0x48, 0x7e, 0x45, 0x1, 0x41,
0xfe, 0x60, 0x80,
/* U+003A ":" */
0x7, 0x2, 0x14, 0x60, 0x47, 0xc1, 0xff, 0xd4,
0xf0, 0x10, 0x22, 0x4
};
/*---------------------
* 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 = 77, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 313, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 313, .box_w = 12, .box_h = 3, .ofs_x = 4, .ofs_y = 11},
{.bitmap_index = 7, .adv_w = 0, .box_w = 4, .box_h = 3, .ofs_x = -3, .ofs_y = 0},
{.bitmap_index = 11, .adv_w = 313, .box_w = 18, .box_h = 24, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 76, .adv_w = 313, .box_w = 6, .box_h = 23, .ofs_x = 13, .ofs_y = 1},
{.bitmap_index = 105, .adv_w = 313, .box_w = 18, .box_h = 24, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 167, .adv_w = 313, .box_w = 17, .box_h = 24, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 223, .adv_w = 313, .box_w = 17, .box_h = 23, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 276, .adv_w = 313, .box_w = 16, .box_h = 24, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 328, .adv_w = 313, .box_w = 17, .box_h = 24, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 388, .adv_w = 313, .box_w = 17, .box_h = 24, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 449, .adv_w = 313, .box_w = 18, .box_h = 24, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 516, .adv_w = 313, .box_w = 17, .box_h = 24, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 575, .adv_w = 77, .box_w = 5, .box_h = 13, .ofs_x = 0, .ofs_y = 5}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 1,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_24 = {
#else
lv_font_t seg7_24 = {
#endif
.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 = 24, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -3,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_24*/

View File

@ -0,0 +1,262 @@
/*******************************************************************************
* Size: 28 px
* Bpp: 2
* Opts: --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 28 --format lvgl --bpp 2 -o c_files//seg7_28.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_28
#define SEG7_28 1
#endif
#if SEG7_28
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
/* U+0021 "!" */
/* U+002D "-" */
0xa, 0xbf, 0x90, 0x3a, 0xff, 0x40, 0x83, 0xfe,
0x8c, 0x3f, 0xcc,
/* U+002E "." */
0x14, 0x54, 0xa0, 0xa0, 0x20,
/* U+0030 "0" */
0xe, 0xaf, 0xfe, 0x8, 0x7d, 0x2f, 0xff, 0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fd, 0x5c, 0x3f, 0xf9, 0xb8, 0x7f, 0xf1,
0xaf, 0xff, 0x50, 0x8, 0x2a, 0x43, 0xf9, 0xe8,
0x12, 0xa0, 0xff, 0xba, 0x7, 0x32, 0xff, 0x50,
0x3f, 0x35, 0xfd, 0x87, 0xff, 0x6d, 0x2, 0x1f,
0xfd, 0xbc, 0x3f, 0xfd, 0xe8, 0x73, 0x5f, 0xc8,
0x7e, 0x65, 0xfe, 0xa0, 0x79, 0x83, 0xfe, 0xa8,
0x36, 0x1f, 0xfc, 0x24, 0x20,
/* U+003A ":" */
0x5, 0xa0, 0x51, 0x1, 0xf, 0x76, 0x19, 0xf,
0xfe, 0xe2, 0x1b, 0xb0, 0x21, 0xc8, 0x20, 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 = 90, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 366, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 366, .box_w = 14, .box_h = 4, .ofs_x = 4, .ofs_y = 12},
{.bitmap_index = 11, .adv_w = 0, .box_w = 4, .box_h = 4, .ofs_x = -3, .ofs_y = 0},
{.bitmap_index = 16, .adv_w = 366, .box_w = 21, .box_h = 29, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 111, .adv_w = 366, .box_w = 7, .box_h = 27, .ofs_x = 15, .ofs_y = 1},
{.bitmap_index = 147, .adv_w = 366, .box_w = 21, .box_h = 29, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 227, .adv_w = 366, .box_w = 20, .box_h = 29, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 302, .adv_w = 366, .box_w = 20, .box_h = 27, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 382, .adv_w = 366, .box_w = 19, .box_h = 29, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 456, .adv_w = 366, .box_w = 20, .box_h = 29, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 540, .adv_w = 366, .box_w = 20, .box_h = 28, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 618, .adv_w = 366, .box_w = 21, .box_h = 29, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 714, .adv_w = 366, .box_w = 20, .box_h = 29, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 799, .adv_w = 90, .box_w = 6, .box_h = 15, .ofs_x = 0, .ofs_y = 6}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 1,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_28 = {
#else
lv_font_t seg7_28 = {
#endif
.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 = 29, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -3,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_28*/

View File

@ -0,0 +1,309 @@
/*******************************************************************************
* Size: 36 px
* Bpp: 2
* Opts: --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 36 --format lvgl --bpp 2 -o c_files//seg7_36.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_36
#define SEG7_36 1
#endif
#if SEG7_36
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
/* U+0021 "!" */
/* U+002D "-" */
0x3, 0x5f, 0xfc, 0x0, 0xcc, 0xbf, 0xfc, 0xc,
0xc, 0x1f, 0xfc, 0x2c, 0x43, 0xff, 0x87, 0x3,
0xf, 0xfe, 0xe, 0x80,
/* U+002E "." */
0x14, 0x6, 0x99, 0x5, 0x21, 0x72, 0x28,
/* U+0030 "0" */
0xf, 0x57, 0xff, 0x11, 0xf, 0xda, 0xff, 0xf1,
0x24, 0x39, 0x60, 0xff, 0xe2, 0x24, 0x1a, 0x9a,
0x1f, 0xfc, 0x27, 0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,
0x97, 0xff, 0x81, 0x86, 0x69, 0xc1, 0xff, 0xc2,
0xc3, 0x2c, 0x1f, 0xfc, 0x3a, 0x70, 0x6c, 0x3f,
0xf8, 0x34, 0x43, 0xef, 0xff, 0xe0, 0xc1, 0xff,
0xce, 0xc3, 0xff, 0xf0, 0x87, 0xff, 0x15, 0xf,
0xff, 0xc6, 0x1f, 0xfe, 0x54, 0x39, 0xaf, 0xf9,
0xc3, 0xf5, 0x17, 0xfe, 0xb8, 0x3d, 0xa1, 0xff,
0xc1, 0x48, 0x81, 0x87, 0xff, 0x12, 0x30, 0x90,
0xff, 0xe2, 0xa1, 0x0,
/* U+0036 "6" */
0xf, 0x57, 0xff, 0x11, 0xf, 0x6b, 0xff, 0xc4,
0x90, 0x96, 0xf, 0xfe, 0x22, 0x82, 0xa6, 0x87,
0xff, 0x9, 0x83, 0xd6, 0x87, 0xff, 0x1, 0x83,
0x21, 0x53, 0xff, 0xf8, 0x10, 0x7f, 0xfa, 0x70,
0xff, 0xf3, 0xa1, 0xff, 0xc7, 0x43, 0xff, 0xcf,
0x87, 0xff, 0xd9, 0x9, 0x2b, 0xff, 0x80, 0x1f,
0xcf, 0x2f, 0xff, 0x3, 0xe, 0x69, 0xc1, 0xff,
0xc2, 0xc3, 0x34, 0x43, 0xff, 0x87, 0x4e, 0x30,
0x78, 0x3f, 0xf8, 0x34, 0x43, 0xeb, 0xff, 0xf8,
0x30, 0x72, 0x1f, 0xfc, 0x9c, 0x3f, 0xfd, 0x38,
0x7f, 0xf1, 0x50, 0xff, 0xe3, 0x21, 0xff, 0xd1,
0x43, 0x21, 0xff, 0xd8, 0xc3, 0xff, 0xa3, 0x87,
0xff, 0x25, 0xe, 0x9a, 0xff, 0x9c, 0x3f, 0x5c,
0xbf, 0xf5, 0xc1, 0xea, 0x21, 0xff, 0xc1, 0x48,
0x8b, 0x83, 0xff, 0x89, 0x18, 0x64, 0x3f, 0xf8,
0xa8, 0x40,
/* U+0037 "7" */
0xe, 0xaf, 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b0, 0xff, 0xe2,
0x46, 0x1c, 0x87, 0xff, 0x15, 0xe,
/* U+003A ":" */
0x9, 0x41, 0xaa, 0xc2, 0x42, 0x43, 0xfb, 0x2,
0x82, 0xf4, 0x1f, 0xff, 0x65, 0x6, 0xea, 0xf,
0x21, 0xfe, 0x81, 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 = 115, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 470, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 470, .box_w = 18, .box_h = 5, .ofs_x = 6, .ofs_y = 16},
{.bitmap_index = 20, .adv_w = 0, .box_w = 5, .box_h = 5, .ofs_x = -4, .ofs_y = 0},
{.bitmap_index = 27, .adv_w = 470, .box_w = 26, .box_h = 37, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 166, .adv_w = 470, .box_w = 8, .box_h = 35, .ofs_x = 20, .ofs_y = 1},
{.bitmap_index = 215, .adv_w = 470, .box_w = 26, .box_h = 37, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 330, .adv_w = 470, .box_w = 25, .box_h = 37, .ofs_x = 3, .ofs_y = 0},
{.bitmap_index = 441, .adv_w = 470, .box_w = 25, .box_h = 34, .ofs_x = 3, .ofs_y = 1},
{.bitmap_index = 547, .adv_w = 470, .box_w = 23, .box_h = 37, .ofs_x = 3, .ofs_y = 0},
{.bitmap_index = 655, .adv_w = 470, .box_w = 24, .box_h = 37, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 777, .adv_w = 470, .box_w = 25, .box_h = 36, .ofs_x = 3, .ofs_y = 1},
{.bitmap_index = 888, .adv_w = 470, .box_w = 26, .box_h = 37, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1029, .adv_w = 470, .box_w = 25, .box_h = 37, .ofs_x = 3, .ofs_y = 0},
{.bitmap_index = 1155, .adv_w = 115, .box_w = 7, .box_h = 20, .ofs_x = 0, .ofs_y = 8}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 1,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_36 = {
#else
lv_font_t seg7_36 = {
#endif
.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 = 37, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -4,
.underline_thickness = 2,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_36*/

View File

@ -0,0 +1,368 @@
/*******************************************************************************
* Size: 48 px
* Bpp: 2
* Opts: --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 48 --format lvgl --bpp 2 -o c_files//seg7_48.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_48
#define SEG7_48 1
#endif
#if SEG7_48
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
/* U+0021 "!" */
/* U+002D "-" */
0xb, 0xff, 0xf8, 0xa8, 0x6c, 0x3f, 0xf8, 0xb2,
0xc, 0x3f, 0xf8, 0xf0, 0x7f, 0xf2, 0xd2, 0xf,
0xfe, 0x3e, 0x8c, 0x1f, 0xfc, 0x5c, 0x0,
/* U+002E "." */
0x5, 0xe4, 0x12, 0x9, 0x10, 0xd0, 0x7e, 0x43,
0x44, 0x82, 0x40,
/* U+0030 "0" */
0xf, 0xdf, 0xff, 0xcb, 0x43, 0xfd, 0x87, 0xff,
0x2e, 0xf, 0xca, 0xc3, 0xff, 0x97, 0xc1, 0xe6,
0x8c, 0x1f, 0xfc, 0x9e, 0x70, 0xec, 0x11, 0x7,
0xff, 0x1f, 0x90, 0xff, 0xa6, 0xf, 0xfe, 0x2f,
0x90, 0xff, 0xe0, 0xef, 0xff, 0xf1, 0x83, 0xfc,
0x87, 0xff, 0xfc, 0x3f, 0xf8, 0xa8, 0x72, 0x1f,
0xff, 0xf0, 0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 0x3f, 0x3f, 0xff, 0xc5,
0x90, 0xff, 0xe9, 0xa1, 0xff, 0xff, 0xf, 0xff,
0x5a, 0x1c, 0x87, 0xff, 0xfc, 0x3f, 0xf8, 0xb8,
0x76, 0x1f, 0xff, 0x54, 0x3f, 0xf9, 0xc8, 0x7f,
0xff, 0xc3, 0xff, 0xb5, 0x7f, 0xff, 0x12, 0xc3,
0xff, 0x83, 0x21, 0xff, 0xc4, 0x6c, 0x24, 0x3e,
0xd0, 0xff, 0xe3, 0x2b, 0x6, 0x1e, 0xc3, 0xff,
0x93, 0x34, 0x43, 0xb0, 0xff, 0xe5, 0xca, 0xf,
0x61, 0xff, 0xcb, 0x83, 0xe0,
/* U+003A ":" */
0xd, 0x79, 0xd, 0xa0, 0x83, 0xfa, 0xf, 0xfe,
0x2c, 0x16, 0x82, 0xe, 0xbc, 0x87, 0xff, 0xfc,
0x3f, 0xfc, 0x37, 0x90, 0xd2, 0x9, 0x9, 0xd,
0x7, 0xff, 0x1, 0xd, 0x5, 0x20, 0x90, 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 = 154, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 627, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 0, .adv_w = 627, .box_w = 23, .box_h = 6, .ofs_x = 8, .ofs_y = 21},
{.bitmap_index = 23, .adv_w = 0, .box_w = 7, .box_h = 6, .ofs_x = -6, .ofs_y = 0},
{.bitmap_index = 34, .adv_w = 627, .box_w = 35, .box_h = 48, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 227, .adv_w = 627, .box_w = 11, .box_h = 45, .ofs_x = 26, .ofs_y = 2},
{.bitmap_index = 293, .adv_w = 627, .box_w = 35, .box_h = 48, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 467, .adv_w = 627, .box_w = 33, .box_h = 48, .ofs_x = 4, .ofs_y = 0},
{.bitmap_index = 627, .adv_w = 627, .box_w = 33, .box_h = 44, .ofs_x = 4, .ofs_y = 2},
{.bitmap_index = 769, .adv_w = 627, .box_w = 31, .box_h = 48, .ofs_x = 4, .ofs_y = 0},
{.bitmap_index = 924, .adv_w = 627, .box_w = 33, .box_h = 48, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1102, .adv_w = 627, .box_w = 33, .box_h = 46, .ofs_x = 4, .ofs_y = 2},
{.bitmap_index = 1247, .adv_w = 627, .box_w = 35, .box_h = 48, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 1442, .adv_w = 627, .box_w = 33, .box_h = 48, .ofs_x = 4, .ofs_y = 0},
{.bitmap_index = 1615, .adv_w = 154, .box_w = 9, .box_h = 26, .ofs_x = 0, .ofs_y = 11}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 1,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_48 = {
#else
lv_font_t seg7_48 = {
#endif
.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 = 48, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -6,
.underline_thickness = 2,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_48*/

View File

@ -0,0 +1,171 @@
/*******************************************************************************
* Size: 8 px
* Bpp: 1
* Opts: --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 8 --format lvgl --bpp 1 -o c_files//seg7_8.c
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef SEG7_8
#define SEG7_8 1
#endif
#if SEG7_8
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0x0,
/* U+002D "-" */
0xf0,
/* U+002E "." */
0xc0,
/* U+0030 "0" */
0x74, 0x63, 0x18, 0xc6, 0x2e,
/* U+0031 "1" */
0x7e,
/* U+0032 "2" */
0x70, 0x42, 0xe8, 0x42, 0xe,
/* U+0033 "3" */
0x70, 0x42, 0xe0, 0x84, 0x2e,
/* U+0034 "4" */
0x8c, 0x62, 0xe0, 0x84, 0x20,
/* U+0035 "5" */
0x74, 0x20, 0xe0, 0x84, 0x2e,
/* U+0036 "6" */
0x74, 0x20, 0xe8, 0xc6, 0x2e,
/* U+0037 "7" */
0x74, 0x63, 0x10, 0x84, 0x21,
/* U+0038 "8" */
0x74, 0x62, 0xe8, 0xc6, 0x2e,
/* U+0039 "9" */
0x74, 0x62, 0xe0, 0x84, 0x2e,
/* U+003A ":" */
0x90
};
/*---------------------
* 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 = 26, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 104, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 2, .adv_w = 104, .box_w = 4, .box_h = 1, .ofs_x = 1, .ofs_y = 4},
{.bitmap_index = 3, .adv_w = 0, .box_w = 2, .box_h = 1, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 4, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9, .adv_w = 104, .box_w = 1, .box_h = 8, .ofs_x = 5, .ofs_y = 0},
{.bitmap_index = 10, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 15, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 20, .adv_w = 104, .box_w = 5, .box_h = 7, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 25, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 30, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 35, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 40, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 45, .adv_w = 104, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 50, .adv_w = 26, .box_w = 1, .box_h = 4, .ofs_x = 0, .ofs_y = 2}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x1, 0xd, 0xe
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 15, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
},
{
.range_start = 48, .range_length = 11, .glyph_id_start = 5,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 2,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t seg7_8 = {
#else
lv_font_t seg7_8 = {
#endif
.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 = 8, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
.underline_position = -1,
.underline_thickness = 0,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if SEG7_8*/

View File

@ -0,0 +1 @@
/* empty file required to force compilation of this lib */

View File

@ -0,0 +1,95 @@
Copyright (c) 2017, keshikan (http://www.keshikan.net),
with Reserved Font Name "DSEG".
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

View File

@ -0,0 +1,42 @@
#!/bin/bash
#
# Convert fonts to files and C files
#
FONT_CONV="lv_font_conv"
FONT_DIR="font_files/"
C_DIR="c_files/"
# from size 8 to 18, pixel perfect non-italic
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 8 --format bin --bpp 1 -o ${FONT_DIR}/seg7_8.lvfont
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 10 --format bin --bpp 1 -o ${FONT_DIR}/seg7_10.lvfont
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 12 --format bin --bpp 1 -o ${FONT_DIR}/seg7_12.lvfont
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 14 --format bin --bpp 1 -o ${FONT_DIR}/seg7_14.lvfont
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 16 --format bin --bpp 1 -o ${FONT_DIR}/seg7_16.lvfont
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 18 --format bin --bpp 1 -o ${FONT_DIR}/seg7_18.lvfont
# above 18, 2 bits per pixel, italic
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 20 --format bin --bpp 2 -o ${FONT_DIR}/seg7_20.lvfont
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 24 --format bin --bpp 2 -o ${FONT_DIR}/seg7_24.lvfont
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 28 --format bin --bpp 2 -o ${FONT_DIR}/seg7_28.lvfont
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 36 --format bin --bpp 2 -o ${FONT_DIR}/seg7_36.lvfont
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 48 --format bin --bpp 2 -o ${FONT_DIR}/seg7_48.lvfont
# from size 8 to 18, pixel perfect non-italic
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 8 --format lvgl --bpp 1 -o ${C_DIR}/seg7_8.c
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 10 --format lvgl --bpp 1 -o ${C_DIR}/seg7_10.c
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 12 --format lvgl --bpp 1 -o ${C_DIR}/seg7_12.c
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 14 --format lvgl --bpp 1 -o ${C_DIR}/seg7_14.c
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 16 --format lvgl --bpp 1 -o ${C_DIR}/seg7_16.c
${FONT_CONV} --font DSEG7Classic-Bold.ttf -r 0x20-0x3F --size 18 --format lvgl --bpp 1 -o ${C_DIR}/seg7_18.c
# above 18, 2 bits per pixel, italic
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 20 --format lvgl --bpp 2 -o ${C_DIR}/seg7_20.c
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 24 --format lvgl --bpp 2 -o ${C_DIR}/seg7_24.c
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 28 --format lvgl --bpp 2 -o ${C_DIR}/seg7_28.c
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 36 --format lvgl --bpp 2 -o ${C_DIR}/seg7_36.c
${FONT_CONV} --font DSEG7Classic-BoldItalic.ttf -r 0x20-0x3F --size 48 --format lvgl --bpp 2 -o ${C_DIR}/seg7_48.c

View File

@ -425,8 +425,8 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
/*Pixel perfect monospace font
* http://pelulamu.net/unscii/ */
#define LV_FONT_UNSCII_8 0
#define LV_FONT_UNSCII_16 0
#define LV_FONT_UNSCII_8 1
#define LV_FONT_UNSCII_16 1
/* Optionally declare your custom fonts here.
* You can use these fonts as default font too
@ -434,7 +434,19 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
* #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \
* LV_FONT_DECLARE(my_font_2)
*/
#define LV_FONT_CUSTOM_DECLARE
// Tasmota specific
#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(seg7_8) \
LV_FONT_DECLARE(seg7_10) \
LV_FONT_DECLARE(seg7_12) \
LV_FONT_DECLARE(seg7_14) \
LV_FONT_DECLARE(seg7_16) \
LV_FONT_DECLARE(seg7_18) \
LV_FONT_DECLARE(seg7_20) \
LV_FONT_DECLARE(seg7_24) \
LV_FONT_DECLARE(seg7_28) \
LV_FONT_DECLARE(seg7_36) \
LV_FONT_DECLARE(seg7_48) \
/* Enable it if you have fonts with a lot of characters.
* The limit depends on the font size, font face and bpp

View File

@ -226,6 +226,23 @@ extern "C" {
be_return(vm);
}
int lv0_load_font(bvm *vm) {
int argc = be_top(vm);
if (argc == 1 && be_isstring(vm, 1)) {
lv_font_t * font = lv_font_load(be_tostring(vm, 1));
if (font != nullptr) {
be_getglobal(vm, "lv_font");
be_pushcomptr(vm, font);
be_call(vm, 1);
be_pop(vm, 1);
be_return(vm);
} else {
be_return_nil(vm);
}
}
be_raise(vm, kTypeError, nullptr);
}
int lv0_load_montserrat_font(bvm *vm) {
int argc = be_top(vm);
if (argc == 1 && be_isint(vm, 1)) {
@ -383,6 +400,40 @@ extern "C" {
be_raise(vm, kTypeError, nullptr);
}
int lv0_load_seg7_font(bvm *vm) {
int argc = be_top(vm);
if (argc == 1 && be_isint(vm, 1)) {
lv_font_t * font = nullptr;
int32_t font_size = be_toindex(vm, 1);
switch (font_size) {
case 8: font = &seg7_8; break;
case 10: font = &seg7_10; break;
case 12: font = &seg7_12; break;
case 14: font = &seg7_14; break;
case 16: font = &seg7_16; break;
case 18: font = &seg7_18; break;
case 20: font = &seg7_20; break;
case 24: font = &seg7_24; break;
case 28: font = &seg7_28; break;
case 36: font = &seg7_36; break;
case 48: font = &seg7_48; break;
default: break;
}
if (font != nullptr) {
be_getglobal(vm, "lv_font");
be_pushcomptr(vm, font);
be_call(vm, 1);
be_pop(vm, 1);
be_return(vm);
} else {
be_return_nil(vm);
}
}
be_raise(vm, kTypeError, nullptr);
}
#include "lvgl_berry/tasmota_logo_64_truecolor_alpha.h"
void lv_img_set_tasmota_logo(lv_obj_t * img) {

View File

@ -22,6 +22,7 @@
#include <renderer.h>
#include "lvgl.h"
#include "tasmota_lvgl_assets.h" // force compilation of assets
#define XDRV_54 54
@ -139,6 +140,10 @@ void lv_flush_callback(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *c
// save pixels to file
int32_t btw = (width * height * LV_COLOR_DEPTH + 7) / 8;
while (btw > 0) {
#if (LV_COLOR_DEPTH == 16) && (LV_COLOR_16_SWAP == 1)
uint16_t * pix = (uint16_t*) color_p;
for (uint32_t i = 0; i < btw / 2; i++) (pix[i] = pix[i] << 8 | pix[i] >> 8);
#endif
int32_t ret = glue->getScreenshotFile()->write((const uint8_t*) color_p, btw);
if (ret >= 0) {
btw -= ret;

View File

@ -400,6 +400,8 @@ print("""/********************************************************************
extern int lv0_start(bvm *vm);
extern int lv0_load_montserrat_font(bvm *vm);
extern int lv0_load_seg7_font(bvm *vm);
extern int lv0_load_font(bvm *vm);
extern int lv0_scr_act(bvm *vm);
extern int lv0_layer_top(bvm *vm);
@ -516,6 +518,9 @@ print("""
be_native_module_function("start", lv0_start),
be_native_module_function("montserrat_font", lv0_load_montserrat_font),
be_native_module_function("seg7_font", lv0_load_seg7_font),
be_native_module_function("load_font", lv0_load_font),
// screen and layers
be_native_module_function("scr_act", lv0_scr_act),
@ -684,6 +689,8 @@ for k_v in lv_module:
print("""
start, func(lv0_start)
montserrat_font, func(lv0_load_montserrat_font)
seg7_font, func(lv0_load_seg7_font)
load_font, func(lv0_load_font)
scr_act, func(lv0_scr_act)
layer_top, func(lv0_layer_top)