BSB Developer Docs
Loading...
Searching...
No Matches
lv_conf.h
Go to the documentation of this file.
1
6/*
7 * Copy this file as `lv_conf.h`
8 * 1. simply next to `lvgl` folder
9 * 2. or to any other place and
10 * - define `LV_CONF_INCLUDE_SIMPLE`;
11 * - add the path as an include path.
12 */
13
14/* clang-format off */
15#if 1 /* Set this to "1" to enable content */
16
17#ifndef LV_CONF_H
18#define LV_CONF_H
19
20/* If you need to include anything here, do it inside the `__ASSEMBLY__` guard */
21#if 0 && defined(__ASSEMBLY__)
22#include "my_include.h"
23#endif
24
25/*====================
26 COLOR SETTINGS
27 *====================*/
28
30#define LV_COLOR_DEPTH 24
31
32/*=========================
33 STDLIB WRAPPER SETTINGS
34 *=========================*/
35
43#define LV_USE_STDLIB_MALLOC LV_STDLIB_CLIB
44
52#define LV_USE_STDLIB_STRING LV_STDLIB_CLIB
53
61#define LV_USE_STDLIB_SPRINTF LV_STDLIB_CLIB
62
63#define LV_STDINT_INCLUDE <stdint.h>
64#define LV_STDDEF_INCLUDE <stddef.h>
65#define LV_STDBOOL_INCLUDE <stdbool.h>
66#define LV_INTTYPES_INCLUDE <inttypes.h>
67#define LV_LIMITS_INCLUDE <limits.h>
68#define LV_STDARG_INCLUDE <stdarg.h>
69
70#if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
72 #define LV_MEM_SIZE (64 * 1024U)
75 #define LV_MEM_POOL_EXPAND_SIZE 0
76
78 #define LV_MEM_ADR 0
79 /* Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc */
80 #if LV_MEM_ADR == 0
81 #undef LV_MEM_POOL_INCLUDE
82 #undef LV_MEM_POOL_ALLOC
83 #endif
84#endif /*LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN*/
85
86/*====================
87 HAL SETTINGS
88 *====================*/
89
91#define LV_DEF_REFR_PERIOD 16
95#define LV_DPI_DEF 2
97/*=================
98 * OPERATING SYSTEM
99 *=================*/
110#define LV_USE_OS LV_OS_CUSTOM
111
112#if LV_USE_OS == LV_OS_CUSTOM
113 #define LV_OS_CUSTOM_INCLUDE <lvgl_addons/osal/lv_furi.h>
114#endif
115#if LV_USE_OS == LV_OS_FREERTOS
116 /*
117 * Unblocking an RTOS task with a direct notification is 45% faster and uses less RAM
118 * than unblocking a task using an intermediary object such as a binary semaphore.
119 * RTOS task notifications can only be used when there is only one task that can be the recipient of the event.
120 */
121 #define LV_USE_FREERTOS_TASK_NOTIFY 1
122#endif
123
124/*========================
125 * RENDERING CONFIGURATION
126 *========================*/
127
129#define LV_DRAW_BUF_STRIDE_ALIGN 1
130
132#define LV_DRAW_BUF_ALIGN 4
133
138#define LV_DRAW_TRANSFORM_USE_MATRIX 0
139
140/* If a widget has `style_opa < 255` (not `bg_opa`, `text_opa` etc) or not NORMAL blend mode
141 * it is buffered into a "simple" layer before rendering. The widget can be buffered in smaller chunks.
142 * "Transformed layers" (if `transform_angle/zoom` are set) use larger buffers
143 * and can't be drawn in chunks. */
144
146#define LV_DRAW_LAYER_SIMPLE_BUF_SIZE (24 * 1024)
148/* Limit the max allocated memory for simple and transformed layers.
149 * It should be at least `LV_DRAW_LAYER_SIMPLE_BUF_SIZE` sized but if transformed layers are also used
150 * it should be enough to store the largest widget too (width x height x 4 area).
151 * Set it to 0 to have no limit. */
152#define LV_DRAW_LAYER_MAX_MEMORY 0
157#define LV_DRAW_THREAD_STACK_SIZE (4 * 1024)
159#define LV_USE_DRAW_SW 1
160#if LV_USE_DRAW_SW == 1
161 /*
162 * Selectively disable color format support in order to reduce code size.
163 * NOTE: some features use certain color formats internally, e.g.
164 * - gradients use RGB888
165 * - bitmaps with transparency may use ARGB8888
166 */
167 #define LV_DRAW_SW_SUPPORT_RGB565 1
168 #define LV_DRAW_SW_SUPPORT_RGB565A8 1
169 #define LV_DRAW_SW_SUPPORT_RGB888 1
170 #define LV_DRAW_SW_SUPPORT_XRGB8888 1
171 #define LV_DRAW_SW_SUPPORT_ARGB8888 1
172 #define LV_DRAW_SW_SUPPORT_L8 1
173 #define LV_DRAW_SW_SUPPORT_AL88 1
174 #define LV_DRAW_SW_SUPPORT_A8 1
175 #define LV_DRAW_SW_SUPPORT_I1 1
176
177 /* The threshold of the luminance to consider a pixel as
178 * active in indexed color format */
179 #define LV_DRAW_SW_I1_LUM_THRESHOLD 127
180
184 #define LV_DRAW_SW_DRAW_UNIT_CNT 1
185
187 #define LV_USE_DRAW_ARM2D_SYNC 0
188
190 #define LV_USE_NATIVE_HELIUM_ASM 0
191
195 #define LV_DRAW_SW_COMPLEX 1
196
197 #if LV_DRAW_SW_COMPLEX == 1
201 #define LV_DRAW_SW_SHADOW_CACHE_SIZE 0
202
207 #define LV_DRAW_SW_CIRCLE_CACHE_SIZE 4
208 #endif
209
210 #define LV_USE_DRAW_SW_ASM LV_DRAW_SW_ASM_NONE
211
212 #if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_CUSTOM
213 #define LV_DRAW_SW_ASM_CUSTOM_INCLUDE ""
214 #endif
215
217 #define LV_USE_DRAW_SW_COMPLEX_GRADIENTS 0
218#endif
219
220/*Use TSi's aka (Think Silicon) NemaGFX */
221#define LV_USE_NEMA_GFX 0
222
223#if LV_USE_NEMA_GFX
227 #define LV_USE_NEMA_HAL LV_NEMA_HAL_CUSTOM
228 #if LV_USE_NEMA_HAL == LV_NEMA_HAL_STM32
229 #define LV_NEMA_STM32_HAL_INCLUDE <stm32u5xx_hal.h>
230 #endif
231
232 /*Enable Vector Graphics Operations. Available only if NemaVG library is present*/
233 #define LV_USE_NEMA_VG 0
234 #if LV_USE_NEMA_VG
235 /*Define application's resolution used for VG related buffer allocation */
236 #define LV_NEMA_GFX_MAX_RESX 800
237 #define LV_NEMA_GFX_MAX_RESY 600
238 #endif
239#endif
240
242#define LV_USE_DRAW_VGLITE 0
243
244#if LV_USE_DRAW_VGLITE
246 #define LV_USE_VGLITE_BLIT_SPLIT 0
247
248 #if LV_USE_OS
250 #define LV_USE_VGLITE_DRAW_THREAD 1
251
252 #if LV_USE_VGLITE_DRAW_THREAD
254 #define LV_USE_VGLITE_DRAW_ASYNC 1
255 #endif
256 #endif
257
259 #define LV_USE_VGLITE_ASSERT 0
260#endif
261
263#define LV_USE_PXP 0
264
265#if LV_USE_PXP
267 #define LV_USE_DRAW_PXP 1
268
270 #define LV_USE_ROTATE_PXP 0
271
272 #if LV_USE_DRAW_PXP && LV_USE_OS
274 #define LV_USE_PXP_DRAW_THREAD 1
275 #endif
276
278 #define LV_USE_PXP_ASSERT 0
279#endif
280
282#define LV_USE_DRAW_DAVE2D 0
283
285#define LV_USE_DRAW_SDL 0
286
288#define LV_USE_DRAW_VG_LITE 0
289
290#if LV_USE_DRAW_VG_LITE
292 #define LV_VG_LITE_USE_GPU_INIT 0
293
295 #define LV_VG_LITE_USE_ASSERT 0
296
298 #define LV_VG_LITE_FLUSH_MAX_COUNT 8
299
303 #define LV_VG_LITE_USE_BOX_SHADOW 0
304
307 #define LV_VG_LITE_GRAD_CACHE_CNT 32
308
310 #define LV_VG_LITE_STROKE_CACHE_CNT 32
311#endif
312
314#define LV_USE_DRAW_DMA2D 0
315
316#if LV_USE_DRAW_DMA2D
317 #define LV_DRAW_DMA2D_HAL_INCLUDE "stm32u5xx.h"
318
319 /* if enabled, the user is required to call `lv_draw_dma2d_transfer_complete_interrupt_handler`
320 * upon receiving the DMA2D global interrupt
321 */
322 #define LV_USE_DRAW_DMA2D_INTERRUPT 0
323#endif
324
326#define LV_USE_DRAW_OPENGLES 0
327
328/*=======================
329 * FEATURE CONFIGURATION
330 *=======================*/
331
332/*-------------
333 * Logging
334 *-----------*/
335
337#define LV_USE_LOG 1
338#if LV_USE_LOG
346 #define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
347
350 #define LV_LOG_PRINTF 0
351
355 // #define LV_LOG_PRINT_CB
356
359 #define LV_LOG_USE_TIMESTAMP 0
360
363 #define LV_LOG_USE_FILE_LINE 0
364
365 /* Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs. */
366 #define LV_LOG_TRACE_MEM 1
367 #define LV_LOG_TRACE_TIMER 1
368 #define LV_LOG_TRACE_INDEV 1
369 #define LV_LOG_TRACE_DISP_REFR 1
370 #define LV_LOG_TRACE_EVENT 1
371 #define LV_LOG_TRACE_OBJ_CREATE 1
372 #define LV_LOG_TRACE_LAYOUT 1
373 #define LV_LOG_TRACE_ANIM 1
374 #define LV_LOG_TRACE_CACHE 1
375#endif /*LV_USE_LOG*/
376
377/*-------------
378 * Asserts
379 *-----------*/
380
381/* Enable assertion failures if an operation fails or invalid data is found.
382 * If LV_USE_LOG is enabled, an error message will be printed on failure. */
383#define LV_USE_ASSERT_NULL 1
384#define LV_USE_ASSERT_MALLOC 1
385#define LV_USE_ASSERT_STYLE 1
386#define LV_USE_ASSERT_MEM_INTEGRITY 0
387#define LV_USE_ASSERT_OBJ 0
390#define LV_ASSERT_HANDLER_INCLUDE <core/check.h>
391#define LV_ASSERT_HANDLER furi_crash("LVGL Assert");
392
393/*-------------
394 * Debug
395 *-----------*/
396
398#define LV_USE_REFR_DEBUG 0
399
401#define LV_USE_LAYER_DEBUG 0
402
407#define LV_USE_PARALLEL_DRAW_DEBUG 0
408
409/*-------------
410 * Others
411 *-----------*/
412
413#define LV_ENABLE_GLOBAL_CUSTOM 0
414#if LV_ENABLE_GLOBAL_CUSTOM
416 #define LV_GLOBAL_CUSTOM_INCLUDE <stdint.h>
417#endif
418
424#define LV_CACHE_DEF_SIZE (1024 * 1024)
428#define LV_IMAGE_HEADER_CACHE_DEF_CNT 100
429
432#define LV_GRADIENT_MAX_STOPS 2
433
440#define LV_COLOR_MIX_ROUND_OFS 0
441
443#define LV_OBJ_STYLE_CACHE 0
444
446#define LV_USE_OBJ_ID 0
447
449#define LV_OBJ_ID_AUTO_ASSIGN LV_USE_OBJ_ID
450
457#define LV_USE_OBJ_ID_BUILTIN 1
458
460#define LV_USE_OBJ_PROPERTY 0
461
463#define LV_USE_OBJ_PROPERTY_NAME 1
464
465/* Use VG-Lite Simulator.
466 * - Requires: LV_USE_THORVG_INTERNAL or LV_USE_THORVG_EXTERNAL */
467#define LV_USE_VG_LITE_THORVG 0
468
469#if LV_USE_VG_LITE_THORVG
471 #define LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT 0
472
474 #define LV_VG_LITE_THORVG_YUV_SUPPORT 0
475
477 #define LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT 0
478
480 #define LV_VG_LITE_THORVG_16PIXELS_ALIGN 1
481
483 #define LV_VG_LITE_THORVG_BUF_ADDR_ALIGN 64
484
486 #define LV_VG_LITE_THORVG_THREAD_RENDER 0
487#endif
488
489/* Enable the multi-touch gesture recognition feature */
490/* Gesture recognition requires the use of floats */
491#define LV_USE_GESTURE_RECOGNITION 0
492
493/*=====================
494 * COMPILER SETTINGS
495 *====================*/
496
498#define LV_BIG_ENDIAN_SYSTEM 0
499
501#define LV_ATTRIBUTE_TICK_INC
502
504#define LV_ATTRIBUTE_TIMER_HANDLER
505
507#define LV_ATTRIBUTE_FLUSH_READY
508
511#define LV_ATTRIBUTE_MEM_ALIGN_SIZE 1
512
515#define LV_ATTRIBUTE_MEM_ALIGN
516
518#define LV_ATTRIBUTE_LARGE_CONST
519
521#define LV_ATTRIBUTE_LARGE_RAM_ARRAY
522
524#define LV_ATTRIBUTE_FAST_MEM
525
528#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning
531#define LV_ATTRIBUTE_EXTERN_DATA
532
534#define LV_USE_FLOAT 0
535
538#define LV_USE_MATRIX 0
539
541#define LV_USE_PRIVATE_API 1
542
543/*==================
544 * FONT USAGE
545 *===================*/
546
547/* Montserrat fonts with ASCII range and some symbols using bpp = 4
548 * https://fonts.google.com/specimen/Montserrat */
549#define LV_FONT_MONTSERRAT_8 0
550#define LV_FONT_MONTSERRAT_10 0
551#define LV_FONT_MONTSERRAT_12 0
552#define LV_FONT_MONTSERRAT_14 0
553#define LV_FONT_MONTSERRAT_16 0
554#define LV_FONT_MONTSERRAT_18 0
555#define LV_FONT_MONTSERRAT_20 0
556#define LV_FONT_MONTSERRAT_22 0
557#define LV_FONT_MONTSERRAT_24 0
558#define LV_FONT_MONTSERRAT_26 0
559#define LV_FONT_MONTSERRAT_28 0
560#define LV_FONT_MONTSERRAT_30 0
561#define LV_FONT_MONTSERRAT_32 0
562#define LV_FONT_MONTSERRAT_34 0
563#define LV_FONT_MONTSERRAT_36 0
564#define LV_FONT_MONTSERRAT_38 0
565#define LV_FONT_MONTSERRAT_40 0
566#define LV_FONT_MONTSERRAT_42 0
567#define LV_FONT_MONTSERRAT_44 0
568#define LV_FONT_MONTSERRAT_46 0
569#define LV_FONT_MONTSERRAT_48 0
570
571/* Demonstrate special features */
572#define LV_FONT_MONTSERRAT_28_COMPRESSED 0
573#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0
574#define LV_FONT_SIMSUN_14_CJK 0
575#define LV_FONT_SIMSUN_16_CJK 0
578#define LV_FONT_UNSCII_8 0
579#define LV_FONT_UNSCII_16 0
580
590#define LV_FONT_CUSTOM_DECLARE \
591 LV_FONT_DECLARE(lv_font_busy_regular_5) \
592 LV_FONT_DECLARE(lv_font_busy_regular_9)
593
595#define LV_FONT_DEFAULT &lv_font_busy_regular_5
596
600#define LV_FONT_FMT_TXT_LARGE 0
601
603#define LV_USE_FONT_COMPRESSED 0
604
606#define LV_USE_FONT_PLACEHOLDER 1
607
608/*=================
609 * TEXT SETTINGS
610 *=================*/
611
618#define LV_TXT_ENC LV_TXT_ENC_UTF8
619
621#define LV_TXT_BREAK_CHARS " ,.;:-_)]}"
622
625#define LV_TXT_LINE_BREAK_LONG_LEN 0
626
629#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
630
633#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
634
638#define LV_USE_BIDI 0
639#if LV_USE_BIDI
640 /*Set the default direction. Supported values:
641 *`LV_BASE_DIR_LTR` Left-to-Right
642 *`LV_BASE_DIR_RTL` Right-to-Left
643 *`LV_BASE_DIR_AUTO` detect text base direction*/
644 #define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
645#endif
646
649#define LV_USE_ARABIC_PERSIAN_CHARS 0
650
651/*The control character to use for signaling text recoloring*/
652#define LV_TXT_COLOR_CMD "#"
653
654/*==================
655 * WIDGETS
656 *================*/
657/* Documentation for widgets can be found here: https://docs.lvgl.io/latest/en/html/widgets/index.html . */
658
666#define LV_WIDGETS_HAS_DEFAULT_VALUE 0
667
668#define LV_USE_ANIMIMG 0
669
670#define LV_USE_ARC 0
671
672#define LV_USE_BAR 1
673
674#define LV_USE_BUTTON 0
675
676#define LV_USE_BUTTONMATRIX 0
677
678#define LV_USE_CALENDAR 0
679#if LV_USE_CALENDAR
680 #define LV_CALENDAR_WEEK_STARTS_MONDAY 0
681 #if LV_CALENDAR_WEEK_STARTS_MONDAY
682 #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"}
683 #else
684 #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"}
685 #endif
686
687 #define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
688 #define LV_USE_CALENDAR_HEADER_ARROW 1
689 #define LV_USE_CALENDAR_HEADER_DROPDOWN 1
690 #define LV_USE_CALENDAR_CHINESE 0
691#endif /*LV_USE_CALENDAR*/
692
693#define LV_USE_CANVAS 1
694
695#define LV_USE_CHART 0
696
697#define LV_USE_CHECKBOX 0
698
699#define LV_USE_DROPDOWN 0
701#define LV_USE_IMAGE 1
703#define LV_USE_IMAGEBUTTON 0
704
705#define LV_USE_KEYBOARD 0
706
707#define LV_USE_LABEL 1
708#if LV_USE_LABEL
709 #define LV_LABEL_TEXT_SELECTION 0
710 #define LV_LABEL_LONG_TXT_HINT 1
711 #define LV_LABEL_WAIT_CHAR_COUNT 3
712#endif
713
714#define LV_USE_LED 0
715
716#define LV_USE_LINE 0
717
718#define LV_USE_LIST 0
719
720#define LV_USE_LOTTIE 0
722#define LV_USE_MENU 0
723
724#define LV_USE_MSGBOX 0
725
726#define LV_USE_ROLLER 0
728#define LV_USE_SCALE 0
729
730#define LV_USE_SLIDER 0
732#define LV_USE_SPAN 1
733#if LV_USE_SPAN
735 #define LV_SPAN_SNIPPET_STACK_SIZE 16
736#endif
737
738#define LV_USE_SPINBOX 0
739
740#define LV_USE_SPINNER 0
741
742#define LV_USE_SWITCH 0
743
744#define LV_USE_TABLE 0
745
746#define LV_USE_TABVIEW 0
747
748#define LV_USE_TEXTAREA 0
749#if LV_USE_TEXTAREA != 0
750 #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500
751#endif
752
753#define LV_USE_TILEVIEW 0
754
755#define LV_USE_WIN 0
756
757/*==================
758 * THEMES
759 *==================*/
760/* Documentation for themes can be found here: https://docs.lvgl.io/master/overview/style.html#themes . */
761
763#define LV_USE_THEME_DEFAULT 0
764#if LV_USE_THEME_DEFAULT
766 #define LV_THEME_DEFAULT_DARK 1
767
769 #define LV_THEME_DEFAULT_GROW 1
770
772 #define LV_THEME_DEFAULT_TRANSITION_TIME 80
773#endif /*LV_USE_THEME_DEFAULT*/
774
776#define LV_USE_THEME_SIMPLE 0
777
779#define LV_USE_THEME_MONO 0
780
781/*==================
782 * LAYOUTS
783 *==================*/
784/* Documentation for layouts can be found here: https://docs.lvgl.io/master/layouts/index.html . */
785
787#define LV_USE_FLEX 1
788
790#define LV_USE_GRID 1
791
792/*====================
793 * 3RD PARTS LIBRARIES
794 *====================*/
795/* Documentation for libraries can be found here: https://docs.lvgl.io/master/libs/index.html . */
796
797/* File system interfaces for common APIs */
798
800#define LV_FS_DEFAULT_DRIVER_LETTER 'C'
801
803#define LV_USE_FS_STDIO 0
804#if LV_USE_FS_STDIO
805 #define LV_FS_STDIO_LETTER '\0'
806 #define LV_FS_STDIO_PATH ""
807 #define LV_FS_STDIO_CACHE_SIZE 0
808#endif
809
811#define LV_USE_FS_POSIX 0
812#if LV_USE_FS_POSIX
813 #define LV_FS_POSIX_LETTER '\0'
814 #define LV_FS_POSIX_PATH ""
815 #define LV_FS_POSIX_CACHE_SIZE 0
816#endif
817
819#define LV_USE_FS_WIN32 0
820#if LV_USE_FS_WIN32
821 #define LV_FS_WIN32_LETTER '\0'
822 #define LV_FS_WIN32_PATH ""
823 #define LV_FS_WIN32_CACHE_SIZE 0
824#endif
825
827#define LV_USE_FS_FATFS 0
828#if LV_USE_FS_FATFS
829 #define LV_FS_FATFS_LETTER '\0'
830 #define LV_FS_FATFS_PATH ""
831 #define LV_FS_FATFS_CACHE_SIZE 0
832#endif
833
835#define LV_USE_FS_MEMFS 0
836#if LV_USE_FS_MEMFS
837 #define LV_FS_MEMFS_LETTER '\0'
838#endif
839
841#define LV_USE_FS_LITTLEFS 0
842#if LV_USE_FS_LITTLEFS
843 #define LV_FS_LITTLEFS_LETTER '\0'
844 #define LV_FS_LITTLEFS_PATH ""
845#endif
846
848#define LV_USE_FS_ARDUINO_ESP_LITTLEFS 0
849#if LV_USE_FS_ARDUINO_ESP_LITTLEFS
850 #define LV_FS_ARDUINO_ESP_LITTLEFS_LETTER '\0'
851 #define LV_FS_ARDUINO_ESP_LITTLEFS_PATH ""
852#endif
853
855#define LV_USE_FS_ARDUINO_SD 0
856#if LV_USE_FS_ARDUINO_SD
857 #define LV_FS_ARDUINO_SD_LETTER '\0'
858 #define LV_FS_ARDUINO_SD_PATH ""
859#endif
860
862#define LV_USE_FS_UEFI 0
863#if LV_USE_FS_UEFI
864 #define LV_FS_UEFI_LETTER '\0'
865#endif
866
868#define LV_USE_LODEPNG 1
869
871#define LV_USE_LIBPNG 0
872
874#define LV_USE_BMP 0
875
878#define LV_USE_TJPGD 0
879
882#define LV_USE_LIBJPEG_TURBO 0
883
885#define LV_USE_GIF 0
886#if LV_USE_GIF
888 #define LV_GIF_CACHE_DECODE_DATA 0
889#endif
890
891
893#define LV_BIN_DECODER_RAM_LOAD 1
894
896#define LV_USE_RLE 0
897
899#define LV_USE_QRCODE 1
900
902#define LV_USE_BARCODE 0
903
905#define LV_USE_FREETYPE 0
906#if LV_USE_FREETYPE
908 #define LV_FREETYPE_USE_LVGL_PORT 0
909
912 #define LV_FREETYPE_CACHE_FT_GLYPH_CNT 256
913#endif
914
916#define LV_USE_TINY_TTF 0
917#if LV_USE_TINY_TTF
918 /* Enable loading TTF data from files */
919 #define LV_TINY_TTF_FILE_SUPPORT 0
920 #define LV_TINY_TTF_CACHE_GLYPH_CNT 256
921#endif
922
924#define LV_USE_RLOTTIE 0
925
928#define LV_USE_VECTOR_GRAPHIC 0
929
931#define LV_USE_THORVG_INTERNAL 0
932
934#define LV_USE_THORVG_EXTERNAL 0
935
937#define LV_USE_LZ4_INTERNAL 0
938
940#define LV_USE_LZ4_EXTERNAL 0
941
942/*SVG library
943 * - Requires `LV_USE_VECTOR_GRAPHIC = 1` */
944#define LV_USE_SVG 0
945#define LV_USE_SVG_ANIMATION 0
946#define LV_USE_SVG_DEBUG 0
947
950#define LV_USE_FFMPEG 0
951#if LV_USE_FFMPEG
953 #define LV_FFMPEG_DUMP_FORMAT 0
957 #define LV_FFMPEG_PLAYER_USE_LV_FS 0
958#endif
959
960/*==================
961 * OTHERS
962 *==================*/
963/* Documentation for several of the below items can be found here: https://docs.lvgl.io/master/others/index.html . */
964
966#define LV_USE_SNAPSHOT 0
967
969#define LV_USE_SYSMON 0
970#if LV_USE_SYSMON
972 #define LV_SYSMON_GET_IDLE lv_timer_get_idle
973
976 #define LV_USE_PERF_MONITOR 1
977 #if LV_USE_PERF_MONITOR
978 #define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
979
981 #define LV_USE_PERF_MONITOR_LOG_MODE 1
982 #endif
983
987 #define LV_USE_MEM_MONITOR 0
988 #if LV_USE_MEM_MONITOR
989 #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
990 #endif
991#endif /*LV_USE_SYSMON*/
992
994#define LV_USE_PROFILER 0
995#if LV_USE_PROFILER
997 #define LV_USE_PROFILER_BUILTIN 1
998 #if LV_USE_PROFILER_BUILTIN
1000 #define LV_PROFILER_BUILTIN_BUF_SIZE (16 * 1024)
1001 #endif
1002
1004 #define LV_PROFILER_INCLUDE "lvgl/src/misc/lv_profiler_builtin.h"
1005
1007 #define LV_PROFILER_BEGIN LV_PROFILER_BUILTIN_BEGIN
1008
1010 #define LV_PROFILER_END LV_PROFILER_BUILTIN_END
1011
1013 #define LV_PROFILER_BEGIN_TAG LV_PROFILER_BUILTIN_BEGIN_TAG
1014
1016 #define LV_PROFILER_END_TAG LV_PROFILER_BUILTIN_END_TAG
1017
1018 /*Enable layout profiler*/
1019 #define LV_PROFILER_LAYOUT 1
1020
1021 /*Enable disp refr profiler*/
1022 #define LV_PROFILER_REFR 1
1023
1024 /*Enable draw profiler*/
1025 #define LV_PROFILER_DRAW 1
1026
1027 /*Enable indev profiler*/
1028 #define LV_PROFILER_INDEV 1
1029
1030 /*Enable decoder profiler*/
1031 #define LV_PROFILER_DECODER 1
1032
1033 /*Enable font profiler*/
1034 #define LV_PROFILER_FONT 1
1035
1036 /*Enable fs profiler*/
1037 #define LV_PROFILER_FS 1
1038
1039 /*Enable style profiler*/
1040 #define LV_PROFILER_STYLE 0
1041
1042 /*Enable timer profiler*/
1043 #define LV_PROFILER_TIMER 1
1044
1045 /*Enable cache profiler*/
1046 #define LV_PROFILER_CACHE 1
1047
1048 /*Enable event profiler*/
1049 #define LV_PROFILER_EVENT 1
1050#endif
1051
1053#define LV_USE_MONKEY 0
1054
1056#define LV_USE_GRIDNAV 0
1057
1059#define LV_USE_FRAGMENT 0
1060
1062#define LV_USE_IMGFONT 0
1063
1065#define LV_USE_OBSERVER 1
1066
1069#define LV_USE_IME_PINYIN 0
1070#if LV_USE_IME_PINYIN
1073 #define LV_IME_PINYIN_USE_DEFAULT_DICT 1
1076 #define LV_IME_PINYIN_CAND_TEXT_NUM 6
1077
1079 #define LV_IME_PINYIN_USE_K9_MODE 1
1080 #if LV_IME_PINYIN_USE_K9_MODE == 1
1081 #define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3
1082 #endif /*LV_IME_PINYIN_USE_K9_MODE*/
1083#endif
1084
1087#define LV_USE_FILE_EXPLORER 0
1088#if LV_USE_FILE_EXPLORER
1090 #define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
1093 #define LV_FILE_EXPLORER_QUICK_ACCESS 1
1094#endif
1095
1098#define LV_USE_FONT_MANAGER 0
1099#if LV_USE_FONT_MANAGER
1100
1102#define LV_FONT_MANAGER_NAME_MAX_LEN 32
1103
1104#endif
1105
1107#define LV_USE_XML 0
1108
1109/*==================
1110 * DEVICES
1111 *==================*/
1112
1114#define LV_USE_SDL 0
1115#if LV_USE_SDL
1116 #define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
1117 #define LV_SDL_RENDER_MODE LV_DISPLAY_RENDER_MODE_DIRECT
1118 #define LV_SDL_BUF_COUNT 1
1119 #define LV_SDL_ACCELERATED 1
1120 #define LV_SDL_FULLSCREEN 0
1121 #define LV_SDL_DIRECT_EXIT 1
1122 #define LV_SDL_MOUSEWHEEL_MODE LV_SDL_MOUSEWHEEL_MODE_ENCODER /*LV_SDL_MOUSEWHEEL_MODE_ENCODER/CROWN*/
1123#endif
1124
1126#define LV_USE_X11 0
1127#if LV_USE_X11
1128 #define LV_X11_DIRECT_EXIT 1
1129 #define LV_X11_DOUBLE_BUFFER 1
1130 /* Select only 1 of the following render modes (LV_X11_RENDER_MODE_PARTIAL preferred!). */
1131 #define LV_X11_RENDER_MODE_PARTIAL 1
1132 #define LV_X11_RENDER_MODE_DIRECT 0
1133 #define LV_X11_RENDER_MODE_FULL 0
1134#endif
1135
1137#define LV_USE_WAYLAND 0
1138#if LV_USE_WAYLAND
1139 #define LV_WAYLAND_WINDOW_DECORATIONS 0
1140 #define LV_WAYLAND_WL_SHELL 0
1141#endif
1142
1144#define LV_USE_LINUX_FBDEV 0
1145#if LV_USE_LINUX_FBDEV
1146 #define LV_LINUX_FBDEV_BSD 0
1147 #define LV_LINUX_FBDEV_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL
1148 #define LV_LINUX_FBDEV_BUFFER_COUNT 0
1149 #define LV_LINUX_FBDEV_BUFFER_SIZE 60
1150#endif
1151
1153#define LV_USE_NUTTX 0
1154
1155#if LV_USE_NUTTX
1156 #define LV_USE_NUTTX_INDEPENDENT_IMAGE_HEAP 0
1157
1158 #define LV_USE_NUTTX_LIBUV 0
1159
1161 #define LV_USE_NUTTX_CUSTOM_INIT 0
1162
1164 #define LV_USE_NUTTX_LCD 0
1165 #if LV_USE_NUTTX_LCD
1166 #define LV_NUTTX_LCD_BUFFER_COUNT 0
1167 #define LV_NUTTX_LCD_BUFFER_SIZE 60
1168 #endif
1169
1171 #define LV_USE_NUTTX_TOUCHSCREEN 0
1172
1173 /*Touchscreen cursor size in pixels(<=0: disable cursor)*/
1174 #define LV_NUTTX_TOUCHSCREEN_CURSOR_SIZE 0
1175#endif
1176
1178#define LV_USE_LINUX_DRM 0
1179
1180#if LV_USE_LINUX_DRM
1181
1182 /* Use the MESA GBM library to allocate DMA buffers that can be
1183 * shared across sub-systems and libraries using the Linux DMA-BUF API.
1184 * The GBM library aims to provide a platform independent memory management system
1185 * it supports the major GPU vendors - This option requires linking with libgbm */
1186 #define LV_LINUX_DRM_GBM_BUFFERS 0
1187#endif
1188
1190#define LV_USE_TFT_ESPI 0
1191
1193#define LV_USE_EVDEV 0
1194
1196#define LV_USE_LIBINPUT 0
1197
1198#if LV_USE_LIBINPUT
1199 #define LV_LIBINPUT_BSD 0
1200
1202 #define LV_LIBINPUT_XKB 0
1203 #if LV_LIBINPUT_XKB
1205 #define LV_LIBINPUT_XKB_KEY_MAP { .rules = NULL, .model = "pc101", .layout = "us", .variant = NULL, .options = NULL }
1206 #endif
1207#endif
1208
1209/* Drivers for LCD devices connected via SPI/parallel port */
1210#define LV_USE_ST7735 0
1211#define LV_USE_ST7789 0
1212#define LV_USE_ST7796 0
1213#define LV_USE_ILI9341 0
1214
1215#define LV_USE_GENERIC_MIPI (LV_USE_ST7735 | LV_USE_ST7789 | LV_USE_ST7796 | LV_USE_ILI9341)
1216
1218#define LV_USE_RENESAS_GLCDC 0
1219
1221#define LV_USE_ST_LTDC 0
1222#if LV_USE_ST_LTDC
1223 /* Only used for partial. */
1224 #define LV_ST_LTDC_USE_DMA2D_FLUSH 0
1225#endif
1226
1228#define LV_USE_WINDOWS 0
1229
1231#define LV_USE_UEFI 0
1232#if LV_USE_UEFI
1233 #define LV_USE_UEFI_INCLUDE "myefi.h"
1234 #define LV_UEFI_USE_MEMORY_SERVICES 0
1235#endif
1236
1238#define LV_USE_OPENGLES 0
1239#if LV_USE_OPENGLES
1240 #define LV_USE_OPENGLES_DEBUG 1
1241#endif
1242
1244#define LV_USE_QNX 0
1245#if LV_USE_QNX
1246 #define LV_QNX_BUF_COUNT 1
1247#endif
1248
1249/*==================
1250* EXAMPLES
1251*==================*/
1252
1254#define LV_BUILD_EXAMPLES 0
1255
1256/*===================
1257 * DEMO USAGE
1258 ====================*/
1259
1261#define LV_USE_DEMO_WIDGETS 0
1262
1264#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
1265
1267#define LV_USE_DEMO_BENCHMARK 0
1268
1271#define LV_USE_DEMO_RENDER 0
1272
1274#define LV_USE_DEMO_STRESS 0
1275
1277#define LV_USE_DEMO_MUSIC 0
1278#if LV_USE_DEMO_MUSIC
1279 #define LV_DEMO_MUSIC_SQUARE 0
1280 #define LV_DEMO_MUSIC_LANDSCAPE 0
1281 #define LV_DEMO_MUSIC_ROUND 0
1282 #define LV_DEMO_MUSIC_LARGE 0
1283 #define LV_DEMO_MUSIC_AUTO_PLAY 0
1284#endif
1285
1287#define LV_USE_DEMO_FLEX_LAYOUT 0
1288
1290#define LV_USE_DEMO_MULTILANG 0
1291
1293#define LV_USE_DEMO_TRANSFORM 0
1294
1296#define LV_USE_DEMO_SCROLL 0
1297
1299#define LV_USE_DEMO_VECTOR_GRAPHIC 0
1300
1301/*E-bike demo with Lottie animations (if LV_USE_LOTTIE is enabled)*/
1302#define LV_USE_DEMO_EBIKE 0
1303#if LV_USE_DEMO_EBIKE
1304 #define LV_DEMO_EBIKE_PORTRAIT 0 /*0: for 480x270..480x320, 1: for 480x800..720x1280*/
1305#endif
1306
1308#define LV_USE_DEMO_HIGH_RES 0
1309
1310/* Smart watch demo */
1311#define LV_USE_DEMO_SMARTWATCH 0
1312
1313/*--END OF LV_CONF_H--*/
1314
1315#endif /*LV_CONF_H*/
1316
1317#endif /*End of "Content enable"*/