Skip to content

Commit 24cf9ca

Browse files
authored
config: disable some components in LVGL config (lvgl#327)
* Update LVGL config: disable some components to decrease firmware size * Update LVGL config: allow enabling some configs
1 parent edb7572 commit 24cf9ca

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

lv_conf.h

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ extern void mp_lv_init_gc();
389389
#define LV_FONT_MONTSERRAT_18 0
390390
#define LV_FONT_MONTSERRAT_20 0
391391
#define LV_FONT_MONTSERRAT_22 0
392-
#define LV_FONT_MONTSERRAT_24 1
392+
#define LV_FONT_MONTSERRAT_24 0
393393
#define LV_FONT_MONTSERRAT_26 0
394394
#define LV_FONT_MONTSERRAT_28 0
395395
#define LV_FONT_MONTSERRAT_30 0
@@ -587,10 +587,10 @@ extern void mp_lv_init_gc();
587587
#endif /*LV_USE_THEME_DEFAULT*/
588588

589589
/*A very simple theme that is a good starting point for a custom theme*/
590-
#define LV_USE_THEME_SIMPLE 1
590+
#define LV_USE_THEME_SIMPLE 0
591591

592592
/*A theme designed for monochrome displays*/
593-
#define LV_USE_THEME_MONO 1
593+
#define LV_USE_THEME_MONO 0
594594

595595
/*==================
596596
* LAYOUTS
@@ -811,7 +811,9 @@ extern void mp_lv_init_gc();
811811
#define LV_USE_MONKEY 0
812812

813813
/*1: Enable grid navigation*/
814-
#define LV_USE_GRIDNAV 1
814+
#ifndef LV_USE_GRIDNAV
815+
#define LV_USE_GRIDNAV 0
816+
#endif
815817

816818
/*1: Enable lv_obj fragment*/
817819
#define LV_USE_FRAGMENT 0
@@ -824,7 +826,9 @@ extern void mp_lv_init_gc();
824826

825827
/*1: Enable Pinyin input method*/
826828
/*Requires: lv_keyboard*/
827-
#define LV_USE_IME_PINYIN 1
829+
#ifndef LV_USE_IME_PINYIN
830+
#define LV_USE_IME_PINYIN 0
831+
#endif
828832
#if LV_USE_IME_PINYIN
829833
/*1: Use default thesaurus*/
830834
/*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/
@@ -842,13 +846,15 @@ extern void mp_lv_init_gc();
842846

843847
/*1: Enable file explorer*/
844848
/*Requires: lv_table*/
845-
#define LV_USE_FILE_EXPLORER 1
849+
#ifndef LV_USE_FILE_EXPLORER
850+
#define LV_USE_FILE_EXPLORER 0
851+
#endif
846852
#if LV_USE_FILE_EXPLORER
847853
/*Maximum length of path*/
848-
#define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
854+
#define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
849855
/*Quick access bar, 1:use, 0:not use*/
850856
/*Requires: lv_list*/
851-
#define LV_FILE_EXPLORER_QUICK_ACCESS 1
857+
#define LV_FILE_EXPLORER_QUICK_ACCESS 1
852858
#endif
853859

854860
/*==================
@@ -938,7 +944,9 @@ extern void mp_lv_init_gc();
938944
*==================*/
939945

940946
/*Enable the examples to be built with the library*/
941-
#define LV_BUILD_EXAMPLES 1
947+
#ifndef LV_BUILD_EXAMPLES
948+
#define LV_BUILD_EXAMPLES 0
949+
#endif
942950

943951
/*===================
944952
* DEMO USAGE

0 commit comments

Comments
 (0)