mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 17:53:45 +08:00
fix(codespace): update lv_conf.h for GitHub codespace (#5342)
This commit is contained in:
parent
78a6b2f425
commit
ba92532bcb
@ -12,13 +12,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
#if 1 /*Set it to "1" to enable content*/
|
#if 0 /*Set it to "1" to enable content*/
|
||||||
|
|
||||||
#ifndef LV_CONF_H
|
#ifndef LV_CONF_H
|
||||||
#define LV_CONF_H
|
#define LV_CONF_H
|
||||||
|
|
||||||
#define LV_USE_DEV_VERSION 1
|
|
||||||
|
|
||||||
/*====================
|
/*====================
|
||||||
COLOR SETTINGS
|
COLOR SETTINGS
|
||||||
*====================*/
|
*====================*/
|
||||||
@ -34,6 +32,7 @@
|
|||||||
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
|
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
|
||||||
* - LV_STDLIB_CLIB: Standard C functions, like malloc, strlen, etc
|
* - LV_STDLIB_CLIB: Standard C functions, like malloc, strlen, etc
|
||||||
* - LV_STDLIB_MICROPYTHON: MicroPython implementation
|
* - LV_STDLIB_MICROPYTHON: MicroPython implementation
|
||||||
|
* - LV_STDLIB_RTTHREAD: RT-Thread implementation
|
||||||
* - LV_STDLIB_CUSTOM: Implement the functions externally
|
* - LV_STDLIB_CUSTOM: Implement the functions externally
|
||||||
*/
|
*/
|
||||||
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
|
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
|
||||||
@ -68,6 +67,23 @@
|
|||||||
*(Not so important, you can adjust it to modify default sizes and spaces)*/
|
*(Not so important, you can adjust it to modify default sizes and spaces)*/
|
||||||
#define LV_DPI_DEF 130 /*[px/inch]*/
|
#define LV_DPI_DEF 130 /*[px/inch]*/
|
||||||
|
|
||||||
|
/*=================
|
||||||
|
* OPERATING SYSTEM
|
||||||
|
*=================*/
|
||||||
|
/*Select an operating system to use. Possible options:
|
||||||
|
* - LV_OS_NONE
|
||||||
|
* - LV_OS_PTHREAD
|
||||||
|
* - LV_OS_FREERTOS
|
||||||
|
* - LV_OS_CMSIS_RTOS2
|
||||||
|
* - LV_OS_RTTHREAD
|
||||||
|
* - LV_OS_WINDOWS
|
||||||
|
* - LV_OS_CUSTOM */
|
||||||
|
#define LV_USE_OS LV_OS_NONE
|
||||||
|
|
||||||
|
#if LV_USE_OS == LV_OS_CUSTOM
|
||||||
|
#define LV_OS_CUSTOM_INCLUDE <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*========================
|
/*========================
|
||||||
* RENDERING CONFIGURATION
|
* RENDERING CONFIGURATION
|
||||||
*========================*/
|
*========================*/
|
||||||
@ -117,25 +133,49 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Use Arm-2D on Cortex-M based devices. Please only enable it for Helium Powered devices for now */
|
||||||
|
#define LV_USE_DRAW_ARM2D 0
|
||||||
|
|
||||||
/* Use NXP's VG-Lite GPU on iMX RTxxx platforms. */
|
/* Use NXP's VG-Lite GPU on iMX RTxxx platforms. */
|
||||||
#define LV_USE_DRAW_VGLITE 0
|
#define LV_USE_DRAW_VGLITE 0
|
||||||
|
|
||||||
|
#if LV_USE_DRAW_VGLITE
|
||||||
|
/* Enable blit quality degradation workaround recommended for screen's dimension > 352 pixels. */
|
||||||
|
#define LV_USE_VGLITE_BLIT_SPLIT 0
|
||||||
|
|
||||||
|
#if LV_USE_OS
|
||||||
|
/* Enable VGLite draw async. Queue multiple tasks and flash them once to the GPU. */
|
||||||
|
#define LV_USE_VGLITE_DRAW_ASYNC 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable VGLite asserts. */
|
||||||
|
#define LV_USE_VGLITE_ASSERT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Use NXP's PXP on iMX RTxxx platforms. */
|
/* Use NXP's PXP on iMX RTxxx platforms. */
|
||||||
#define LV_USE_DRAW_PXP 0
|
#define LV_USE_DRAW_PXP 0
|
||||||
|
|
||||||
/*=================
|
#if LV_USE_DRAW_PXP
|
||||||
* OPERATING SYSTEM
|
/* Enable PXP asserts. */
|
||||||
*=================*/
|
#define LV_USE_PXP_ASSERT 0
|
||||||
/*Select an operating system to use. Possible options:
|
#endif
|
||||||
* - LV_OS_NONE
|
|
||||||
* - LV_OS_PTHREAD
|
/* Use Renesas Dave2D on RA platforms. */
|
||||||
* - LV_OS_FREERTOS
|
#define LV_USE_DRAW_DAVE2D 0
|
||||||
* - LV_OS_CMSIS_RTOS2
|
|
||||||
* - LV_OS_CUSTOM */
|
/* Draw using cached SDL textures*/
|
||||||
#define LV_USE_OS LV_OS_NONE
|
#define LV_USE_DRAW_SDL 0
|
||||||
|
|
||||||
|
/* Use VG-Lite GPU. */
|
||||||
|
#define LV_USE_DRAW_VG_LITE 0
|
||||||
|
|
||||||
|
#if LV_USE_DRAW_VG_LITE
|
||||||
|
/* Enable VG-Lite custom external 'gpu_init()' function */
|
||||||
|
#define LV_VG_LITE_USE_GPU_INIT 0
|
||||||
|
|
||||||
|
/* Enable VG-Lite assert. */
|
||||||
|
#define LV_VG_LITE_USE_ASSERT 0
|
||||||
|
|
||||||
#if LV_USE_OS == LV_OS_CUSTOM
|
|
||||||
#define LV_OS_CUSTOM_INCLUDE <stdint.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*=======================
|
/*=======================
|
||||||
@ -147,7 +187,7 @@
|
|||||||
*-----------*/
|
*-----------*/
|
||||||
|
|
||||||
/*Enable the log module*/
|
/*Enable the log module*/
|
||||||
#define LV_USE_LOG 1
|
#define LV_USE_LOG 0
|
||||||
#if LV_USE_LOG
|
#if LV_USE_LOG
|
||||||
|
|
||||||
/*How important log should be added:
|
/*How important log should be added:
|
||||||
@ -161,7 +201,7 @@
|
|||||||
|
|
||||||
/*1: Print the log with 'printf';
|
/*1: Print the log with 'printf';
|
||||||
*0: User need to register a callback with `lv_log_register_print_cb()`*/
|
*0: User need to register a callback with `lv_log_register_print_cb()`*/
|
||||||
#define LV_LOG_PRINTF 1
|
#define LV_LOG_PRINTF 0
|
||||||
|
|
||||||
/*1: Enable print timestamp;
|
/*1: Enable print timestamp;
|
||||||
*0: Disable print timestamp*/
|
*0: Disable print timestamp*/
|
||||||
@ -215,28 +255,6 @@
|
|||||||
*For layers add the index number of the draw unit on black background.*/
|
*For layers add the index number of the draw unit on black background.*/
|
||||||
#define LV_USE_PARALLEL_DRAW_DEBUG 0
|
#define LV_USE_PARALLEL_DRAW_DEBUG 0
|
||||||
|
|
||||||
/*------------------
|
|
||||||
* STATUS MONITORING
|
|
||||||
*------------------*/
|
|
||||||
|
|
||||||
/*1: Show CPU usage and FPS count
|
|
||||||
* Requires `LV_USE_SYSMON = 1`*/
|
|
||||||
#define LV_USE_PERF_MONITOR 0
|
|
||||||
#if LV_USE_PERF_MONITOR
|
|
||||||
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
|
|
||||||
|
|
||||||
/*0: Displays performance data on the screen, 1: Prints performance data using log.*/
|
|
||||||
#define LV_USE_PERF_MONITOR_LOG_MODE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*1: Show the used memory and the memory fragmentation
|
|
||||||
* Requires `LV_USE_BUILTIN_MALLOC = 1`
|
|
||||||
* Requires `LV_USE_SYSMON = 1`*/
|
|
||||||
#define LV_USE_MEM_MONITOR 0
|
|
||||||
#if LV_USE_MEM_MONITOR
|
|
||||||
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*-------------
|
/*-------------
|
||||||
* Others
|
* Others
|
||||||
*-----------*/
|
*-----------*/
|
||||||
@ -249,8 +267,8 @@
|
|||||||
|
|
||||||
/*Default cache size in bytes.
|
/*Default cache size in bytes.
|
||||||
*Used by image decoders such as `lv_lodepng` to keep the decoded image in the memory.
|
*Used by image decoders such as `lv_lodepng` to keep the decoded image in the memory.
|
||||||
*Data larger than the size of the cache also can be allocated but
|
*If size is not set to 0, the decoder will fail to decode when the cache is full.
|
||||||
*will be dropped immediately after usage.*/
|
*If size is 0, the cache function is not enabled and the decoded mem will be released immediately after use.*/
|
||||||
#define LV_CACHE_DEF_SIZE 0
|
#define LV_CACHE_DEF_SIZE 0
|
||||||
|
|
||||||
/*Number of stops allowed per gradient. Increase this to allow more stops.
|
/*Number of stops allowed per gradient. Increase this to allow more stops.
|
||||||
@ -262,7 +280,7 @@
|
|||||||
#define LV_COLOR_MIX_ROUND_OFS 0
|
#define LV_COLOR_MIX_ROUND_OFS 0
|
||||||
|
|
||||||
/* Add 2 x 32 bit variables to each lv_obj_t to speed up getting style properties */
|
/* Add 2 x 32 bit variables to each lv_obj_t to speed up getting style properties */
|
||||||
#define LV_OBJ_STYLE_CACHE 0
|
#define LV_OBJ_STYLE_CACHE 1
|
||||||
|
|
||||||
/* Add `id` field to `lv_obj_t` */
|
/* Add `id` field to `lv_obj_t` */
|
||||||
#define LV_USE_OBJ_ID 0
|
#define LV_USE_OBJ_ID 0
|
||||||
@ -273,6 +291,26 @@
|
|||||||
/*Use obj property set/get API*/
|
/*Use obj property set/get API*/
|
||||||
#define LV_USE_OBJ_PROPERTY 0
|
#define LV_USE_OBJ_PROPERTY 0
|
||||||
|
|
||||||
|
/* VG-Lite Simulator */
|
||||||
|
/*Requires: LV_USE_THORVG_INTERNAL or LV_USE_THORVG_EXTERNAL */
|
||||||
|
#define LV_USE_VG_LITE_THORVG 0
|
||||||
|
|
||||||
|
#if LV_USE_VG_LITE_THORVG
|
||||||
|
|
||||||
|
/*Enable LVGL's blend mode support*/
|
||||||
|
#define LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT 0
|
||||||
|
|
||||||
|
/*Enable YUV color format support*/
|
||||||
|
#define LV_VG_LITE_THORVG_YUV_SUPPORT 0
|
||||||
|
|
||||||
|
/*Enable 16 pixels alignment*/
|
||||||
|
#define LV_VG_LITE_THORVG_16PIXELS_ALIGN 1
|
||||||
|
|
||||||
|
/*Enable multi-thread render*/
|
||||||
|
#define LV_VG_LITE_THORVG_THREAD_RENDER 0
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
* COMPILER SETTINGS
|
* COMPILER SETTINGS
|
||||||
*====================*/
|
*====================*/
|
||||||
@ -309,6 +347,9 @@
|
|||||||
*should also appear on LVGL binding API such as Micropython.*/
|
*should also appear on LVGL binding API such as Micropython.*/
|
||||||
#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/
|
#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/
|
||||||
|
|
||||||
|
/*Prefix all global extern data with this*/
|
||||||
|
#define LV_ATTRIBUTE_EXTERN_DATA
|
||||||
|
|
||||||
/* Use `float` as `lv_value_precise_t` */
|
/* Use `float` as `lv_value_precise_t` */
|
||||||
#define LV_USE_FLOAT 0
|
#define LV_USE_FLOAT 0
|
||||||
|
|
||||||
@ -341,13 +382,13 @@
|
|||||||
#define LV_FONT_MONTSERRAT_48 1
|
#define LV_FONT_MONTSERRAT_48 1
|
||||||
|
|
||||||
/*Demonstrate special features*/
|
/*Demonstrate special features*/
|
||||||
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/
|
#define LV_FONT_MONTSERRAT_28_COMPRESSED 1 /*bpp = 3*/
|
||||||
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, Persian letters and all their forms*/
|
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1 /*Hebrew, Arabic, Persian letters and all their forms*/
|
||||||
#define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/
|
#define LV_FONT_SIMSUN_16_CJK 1 /*1000 most common CJK radicals*/
|
||||||
|
|
||||||
/*Pixel perfect monospace fonts*/
|
/*Pixel perfect monospace fonts*/
|
||||||
#define LV_FONT_UNSCII_8 0
|
#define LV_FONT_UNSCII_8 1
|
||||||
#define LV_FONT_UNSCII_16 0
|
#define LV_FONT_UNSCII_16 1
|
||||||
|
|
||||||
/*Optionally declare custom fonts here.
|
/*Optionally declare custom fonts here.
|
||||||
*You can use these fonts as default font too and they will be available globally.
|
*You can use these fonts as default font too and they will be available globally.
|
||||||
@ -360,10 +401,10 @@
|
|||||||
/*Enable handling large font and/or fonts with a lot of characters.
|
/*Enable handling large font and/or fonts with a lot of characters.
|
||||||
*The limit depends on the font size, font face and bpp.
|
*The limit depends on the font size, font face and bpp.
|
||||||
*Compiler error will be triggered if a font needs it.*/
|
*Compiler error will be triggered if a font needs it.*/
|
||||||
#define LV_FONT_FMT_TXT_LARGE 0
|
#define LV_FONT_FMT_TXT_LARGE 1
|
||||||
|
|
||||||
/*Enables/disables support for compressed fonts.*/
|
/*Enables/disables support for compressed fonts.*/
|
||||||
#define LV_USE_FONT_COMPRESSED 0
|
#define LV_USE_FONT_COMPRESSED 1
|
||||||
|
|
||||||
/*Enable drawing placeholders when glyph dsc is not found*/
|
/*Enable drawing placeholders when glyph dsc is not found*/
|
||||||
#define LV_USE_FONT_PLACEHOLDER 1
|
#define LV_USE_FONT_PLACEHOLDER 1
|
||||||
@ -425,9 +466,9 @@
|
|||||||
|
|
||||||
#define LV_USE_BAR 1
|
#define LV_USE_BAR 1
|
||||||
|
|
||||||
#define LV_USE_BTN 1
|
#define LV_USE_BUTTON 1
|
||||||
|
|
||||||
#define LV_USE_BTNMATRIX 1
|
#define LV_USE_BUTTONMATRIX 1
|
||||||
|
|
||||||
#define LV_USE_CALENDAR 1
|
#define LV_USE_CALENDAR 1
|
||||||
#if LV_USE_CALENDAR
|
#if LV_USE_CALENDAR
|
||||||
@ -451,9 +492,9 @@
|
|||||||
|
|
||||||
#define LV_USE_DROPDOWN 1 /*Requires: lv_label*/
|
#define LV_USE_DROPDOWN 1 /*Requires: lv_label*/
|
||||||
|
|
||||||
#define LV_USE_IMG 1 /*Requires: lv_label*/
|
#define LV_USE_IMAGE 1 /*Requires: lv_label*/
|
||||||
|
|
||||||
#define LV_USE_IMGBTN 1
|
#define LV_USE_IMAGEBUTTON 1
|
||||||
|
|
||||||
#define LV_USE_KEYBOARD 1
|
#define LV_USE_KEYBOARD 1
|
||||||
|
|
||||||
@ -461,6 +502,7 @@
|
|||||||
#if LV_USE_LABEL
|
#if LV_USE_LABEL
|
||||||
#define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/
|
#define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/
|
||||||
#define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/
|
#define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/
|
||||||
|
#define LV_LABEL_WAIT_CHAR_COUNT 3 /*The count of wait chart*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LV_USE_LED 1
|
#define LV_USE_LED 1
|
||||||
@ -523,7 +565,7 @@
|
|||||||
#endif /*LV_USE_THEME_DEFAULT*/
|
#endif /*LV_USE_THEME_DEFAULT*/
|
||||||
|
|
||||||
/*A very simple theme that is a good starting point for a custom theme*/
|
/*A very simple theme that is a good starting point for a custom theme*/
|
||||||
#define LV_USE_THEME_BASIC 1
|
#define LV_USE_THEME_SIMPLE 1
|
||||||
|
|
||||||
/*A theme designed for monochrome displays*/
|
/*A theme designed for monochrome displays*/
|
||||||
#define LV_USE_THEME_MONO 1
|
#define LV_USE_THEME_MONO 1
|
||||||
@ -545,9 +587,9 @@
|
|||||||
/*File system interfaces for common APIs */
|
/*File system interfaces for common APIs */
|
||||||
|
|
||||||
/*API for fopen, fread, etc*/
|
/*API for fopen, fread, etc*/
|
||||||
#define LV_USE_FS_STDIO 0
|
#define LV_USE_FS_STDIO 1
|
||||||
#if LV_USE_FS_STDIO
|
#if LV_USE_FS_STDIO
|
||||||
#define LV_FS_STDIO_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
|
#define LV_FS_STDIO_LETTER 'A' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
|
||||||
#define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/
|
#define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/
|
||||||
#define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
|
#define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
|
||||||
#endif
|
#endif
|
||||||
@ -576,13 +618,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*API for memory-mapped file access. */
|
/*API for memory-mapped file access. */
|
||||||
#define LV_USE_FS_MEMFS 0
|
#define LV_USE_FS_MEMFS 1
|
||||||
#if LV_USE_FS_MEMFS
|
#if LV_USE_FS_MEMFS
|
||||||
#define LV_FS_MEMFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
|
#define LV_FS_MEMFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*LODEPNG decoder library*/
|
/*LODEPNG decoder library*/
|
||||||
#define LV_USE_LODEPNG 0
|
#define LV_USE_LODEPNG 1
|
||||||
|
|
||||||
/*PNG decoder(libpng) library*/
|
/*PNG decoder(libpng) library*/
|
||||||
#define LV_USE_LIBPNG 0
|
#define LV_USE_LIBPNG 0
|
||||||
@ -592,46 +634,50 @@
|
|||||||
|
|
||||||
/* JPG + split JPG decoder library.
|
/* JPG + split JPG decoder library.
|
||||||
* Split JPG is a custom format optimized for embedded systems. */
|
* Split JPG is a custom format optimized for embedded systems. */
|
||||||
#define LV_USE_TJPGD 0
|
#define LV_USE_TJPGD 1
|
||||||
|
|
||||||
/* libjpeg-turbo decoder library.
|
/* libjpeg-turbo decoder library.
|
||||||
* Supports complete JPEG specifications and high-performance JPEG decoding. */
|
* Supports complete JPEG specifications and high-performance JPEG decoding. */
|
||||||
#define LV_USE_LIBJPEG_TURBO 0
|
#define LV_USE_LIBJPEG_TURBO 0
|
||||||
|
|
||||||
/*GIF decoder library*/
|
/*GIF decoder library*/
|
||||||
#define LV_USE_GIF 0
|
#define LV_USE_GIF 1
|
||||||
|
#if LV_USE_GIF
|
||||||
|
/*GIF decoder accelerate*/
|
||||||
|
#define LV_GIF_CACHE_DECODE_DATA 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*Decode bin images to RAM*/
|
/*Decode bin images to RAM*/
|
||||||
#define LV_BIN_DECODER_RAM_LOAD 0
|
#define LV_BIN_DECODER_RAM_LOAD 0
|
||||||
|
|
||||||
|
/*RLE decompress library*/
|
||||||
|
#define LV_USE_RLE 1
|
||||||
|
|
||||||
/*QR code library*/
|
/*QR code library*/
|
||||||
#define LV_USE_QRCODE 0
|
#define LV_USE_QRCODE 1
|
||||||
|
|
||||||
/*Barcode code library*/
|
/*Barcode code library*/
|
||||||
#define LV_USE_BARCODE 0
|
#define LV_USE_BARCODE 1
|
||||||
|
|
||||||
/*FreeType library*/
|
/*FreeType library*/
|
||||||
#define LV_USE_FREETYPE 0
|
#define LV_USE_FREETYPE 0
|
||||||
#if LV_USE_FREETYPE
|
#if LV_USE_FREETYPE
|
||||||
/*Memory used by FreeType to cache characters [bytes]*/
|
/*Memory used by FreeType to cache characters in kilobytes*/
|
||||||
#define LV_FREETYPE_CACHE_SIZE (64 * 1024)
|
#define LV_FREETYPE_CACHE_SIZE 768
|
||||||
|
|
||||||
/*Let FreeType to use LVGL memory and file porting*/
|
/*Let FreeType to use LVGL memory and file porting*/
|
||||||
#define LV_FREETYPE_USE_LVGL_PORT 0
|
#define LV_FREETYPE_USE_LVGL_PORT 0
|
||||||
|
|
||||||
/* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */
|
|
||||||
/* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */
|
|
||||||
/* if font size >= 256, must be configured as image cache */
|
|
||||||
#define LV_FREETYPE_SBIT_CACHE 0
|
|
||||||
|
|
||||||
/* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */
|
/* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */
|
||||||
/* (0:use system defaults) */
|
/* (0:use system defaults) */
|
||||||
#define LV_FREETYPE_CACHE_FT_FACES 4
|
#define LV_FREETYPE_CACHE_FT_FACES 8
|
||||||
#define LV_FREETYPE_CACHE_FT_SIZES 4
|
#define LV_FREETYPE_CACHE_FT_SIZES 8
|
||||||
|
#define LV_FREETYPE_CACHE_FT_GLYPH_CNT 256
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Built-in TTF decoder */
|
/* Built-in TTF decoder */
|
||||||
#define LV_USE_TINY_TTF 0
|
#define LV_USE_TINY_TTF 1
|
||||||
#if LV_USE_TINY_TTF
|
#if LV_USE_TINY_TTF
|
||||||
/* Enable loading TTF data from files */
|
/* Enable loading TTF data from files */
|
||||||
#define LV_TINY_TTF_FILE_SUPPORT 0
|
#define LV_TINY_TTF_FILE_SUPPORT 0
|
||||||
@ -640,6 +686,24 @@
|
|||||||
/*Rlottie library*/
|
/*Rlottie library*/
|
||||||
#define LV_USE_RLOTTIE 0
|
#define LV_USE_RLOTTIE 0
|
||||||
|
|
||||||
|
/*Enable Vector Graphic APIs*/
|
||||||
|
#define LV_USE_VECTOR_GRAPHIC 0
|
||||||
|
|
||||||
|
/* Enable ThorVG (vector graphics library) from the src/libs folder */
|
||||||
|
#define LV_USE_THORVG_INTERNAL 0
|
||||||
|
|
||||||
|
/* Enable ThorVG by assuming that its installed and linked to the project */
|
||||||
|
#define LV_USE_THORVG_EXTERNAL 0
|
||||||
|
|
||||||
|
/*Enable LZ4 compress/decompress lib*/
|
||||||
|
#define LV_USE_LZ4 0
|
||||||
|
|
||||||
|
/*Use lvgl built-in LZ4 lib*/
|
||||||
|
#define LV_USE_LZ4_INTERNAL 0
|
||||||
|
|
||||||
|
/*Use external LZ4 library*/
|
||||||
|
#define LV_USE_LZ4_EXTERNAL 0
|
||||||
|
|
||||||
/*FFmpeg library for image decoding and playing videos
|
/*FFmpeg library for image decoding and playing videos
|
||||||
*Supports all major image formats so do not enable other image decoder with it*/
|
*Supports all major image formats so do not enable other image decoder with it*/
|
||||||
#define LV_USE_FFMPEG 0
|
#define LV_USE_FFMPEG 0
|
||||||
@ -653,10 +717,32 @@
|
|||||||
*==================*/
|
*==================*/
|
||||||
|
|
||||||
/*1: Enable API to take snapshot for object*/
|
/*1: Enable API to take snapshot for object*/
|
||||||
#define LV_USE_SNAPSHOT 0
|
#define LV_USE_SNAPSHOT 1
|
||||||
|
|
||||||
/*1: Enable system monitor component*/
|
/*1: Enable system monitor component*/
|
||||||
#define LV_USE_SYSMON 0
|
#define LV_USE_SYSMON 1
|
||||||
|
|
||||||
|
#if LV_USE_SYSMON
|
||||||
|
|
||||||
|
/*1: Show CPU usage and FPS count
|
||||||
|
* Requires `LV_USE_SYSMON = 1`*/
|
||||||
|
#define LV_USE_PERF_MONITOR 1
|
||||||
|
#if LV_USE_PERF_MONITOR
|
||||||
|
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
|
||||||
|
|
||||||
|
/*0: Displays performance data on the screen, 1: Prints performance data using log.*/
|
||||||
|
#define LV_USE_PERF_MONITOR_LOG_MODE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*1: Show the used memory and the memory fragmentation
|
||||||
|
* Requires `LV_USE_BUILTIN_MALLOC = 1`
|
||||||
|
* Requires `LV_USE_SYSMON = 1`*/
|
||||||
|
#define LV_USE_MEM_MONITOR 1
|
||||||
|
#if LV_USE_MEM_MONITOR
|
||||||
|
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /*LV_USE_SYSMON*/
|
||||||
|
|
||||||
/*1: Enable the runtime performance profiler*/
|
/*1: Enable the runtime performance profiler*/
|
||||||
#define LV_USE_PROFILER 0
|
#define LV_USE_PROFILER 0
|
||||||
@ -685,13 +771,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*1: Enable Monkey test*/
|
/*1: Enable Monkey test*/
|
||||||
#define LV_USE_MONKEY 0
|
#define LV_USE_MONKEY 1
|
||||||
|
|
||||||
/*1: Enable grid navigation*/
|
/*1: Enable grid navigation*/
|
||||||
#define LV_USE_GRIDNAV 0
|
#define LV_USE_GRIDNAV 1
|
||||||
|
|
||||||
/*1: Enable lv_obj fragment*/
|
/*1: Enable lv_obj fragment*/
|
||||||
#define LV_USE_FRAGMENT 0
|
#define LV_USE_FRAGMENT 1
|
||||||
|
|
||||||
/*1: Support using images as font in label or span widgets */
|
/*1: Support using images as font in label or span widgets */
|
||||||
#define LV_USE_IMGFONT 1
|
#define LV_USE_IMGFONT 1
|
||||||
@ -704,11 +790,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*1: Enable an observer pattern implementation*/
|
/*1: Enable an observer pattern implementation*/
|
||||||
#define LV_USE_OBSERVER 0
|
#define LV_USE_OBSERVER 1
|
||||||
|
|
||||||
/*1: Enable Pinyin input method*/
|
/*1: Enable Pinyin input method*/
|
||||||
/*Requires: lv_keyboard*/
|
/*Requires: lv_keyboard*/
|
||||||
#define LV_USE_IME_PINYIN 0
|
#define LV_USE_IME_PINYIN 1
|
||||||
#if LV_USE_IME_PINYIN
|
#if LV_USE_IME_PINYIN
|
||||||
/*1: Use default thesaurus*/
|
/*1: Use default thesaurus*/
|
||||||
/*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/
|
/*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/
|
||||||
@ -721,12 +807,12 @@
|
|||||||
#define LV_IME_PINYIN_USE_K9_MODE 1
|
#define LV_IME_PINYIN_USE_K9_MODE 1
|
||||||
#if LV_IME_PINYIN_USE_K9_MODE == 1
|
#if LV_IME_PINYIN_USE_K9_MODE == 1
|
||||||
#define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3
|
#define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3
|
||||||
#endif // LV_IME_PINYIN_USE_K9_MODE
|
#endif /*LV_IME_PINYIN_USE_K9_MODE*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*1: Enable file explorer*/
|
/*1: Enable file explorer*/
|
||||||
/*Requires: lv_table*/
|
/*Requires: lv_table*/
|
||||||
#define LV_USE_FILE_EXPLORER 0
|
#define LV_USE_FILE_EXPLORER 1
|
||||||
#if LV_USE_FILE_EXPLORER
|
#if LV_USE_FILE_EXPLORER
|
||||||
/*Maximum length of path*/
|
/*Maximum length of path*/
|
||||||
#define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
|
#define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
|
||||||
@ -744,7 +830,7 @@
|
|||||||
#if LV_USE_SDL
|
#if LV_USE_SDL
|
||||||
#define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
|
#define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
|
||||||
#define LV_SDL_RENDER_MODE LV_DISPLAY_RENDER_MODE_DIRECT /*LV_DISPLAY_RENDER_MODE_DIRECT is recommended for best performance*/
|
#define LV_SDL_RENDER_MODE LV_DISPLAY_RENDER_MODE_DIRECT /*LV_DISPLAY_RENDER_MODE_DIRECT is recommended for best performance*/
|
||||||
#define LV_SDL_BUF_COUNT 1 /*1 or 2*/
|
#define LV_SDL_BUF_COUNT 1 /*1 or 2*/
|
||||||
#define LV_SDL_FULLSCREEN 0 /*1: Make the window full screen by default*/
|
#define LV_SDL_FULLSCREEN 0 /*1: Make the window full screen by default*/
|
||||||
#define LV_SDL_DIRECT_EXIT 1 /*1: Exit the application when all SDL windows are closed*/
|
#define LV_SDL_DIRECT_EXIT 1 /*1: Exit the application when all SDL windows are closed*/
|
||||||
#endif
|
#endif
|
||||||
@ -752,9 +838,12 @@
|
|||||||
/*Use X11 to open window on Linux desktop and handle mouse and keyboard*/
|
/*Use X11 to open window on Linux desktop and handle mouse and keyboard*/
|
||||||
#define LV_USE_X11 0
|
#define LV_USE_X11 0
|
||||||
#if LV_USE_X11
|
#if LV_USE_X11
|
||||||
#define LV_X11_DIRECT_EXIT 1
|
#define LV_X11_DIRECT_EXIT 1 /*Exit the application when all X11 windows have been closed*/
|
||||||
#define LV_X11_DOUBLE_BUFFER 1
|
#define LV_X11_DOUBLE_BUFFER 1 /*Use double buffers for endering*/
|
||||||
#define LV_X11_RENDER_MODE_PARTIAL 1
|
/*select only 1 of the following render modes (LV_X11_RENDER_MODE_PARTIAL preferred!)*/
|
||||||
|
#define LV_X11_RENDER_MODE_PARTIAL 1 /*Partial render mode (preferred)*/
|
||||||
|
#define LV_X11_RENDER_MODE_DIRECT 0 /*direct render mode*/
|
||||||
|
#define LV_X11_RENDER_MODE_FULL 0 /*Full render mode*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Driver for /dev/fb*/
|
/*Driver for /dev/fb*/
|
||||||
@ -796,6 +885,17 @@
|
|||||||
/*Driver for evdev input devices*/
|
/*Driver for evdev input devices*/
|
||||||
#define LV_USE_EVDEV 0
|
#define LV_USE_EVDEV 0
|
||||||
|
|
||||||
|
/*Drivers for LCD devices connected via SPI/parallel port*/
|
||||||
|
#define LV_USE_ST7735 0
|
||||||
|
#define LV_USE_ST7789 0
|
||||||
|
#define LV_USE_ST7796 0
|
||||||
|
#define LV_USE_ILI9341 0
|
||||||
|
|
||||||
|
#define LV_USE_GENERIC_MIPI (LV_USE_ST7735 | LV_USE_ST7789 | LV_USE_ST7796 | LV_USE_ILI9341)
|
||||||
|
|
||||||
|
/* LVGL Windows backend */
|
||||||
|
#define LV_USE_WINDOWS 0
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* EXAMPLES
|
* EXAMPLES
|
||||||
*==================*/
|
*==================*/
|
||||||
@ -810,7 +910,7 @@
|
|||||||
/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
|
/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
|
||||||
#define LV_USE_DEMO_WIDGETS 1
|
#define LV_USE_DEMO_WIDGETS 1
|
||||||
#if LV_USE_DEMO_WIDGETS
|
#if LV_USE_DEMO_WIDGETS
|
||||||
#define LV_DEMO_WIDGETS_SLIDESHOW 0
|
#define LV_DEMO_WIDGETS_SLIDESHOW 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Demonstrate the usage of encoder and keyboard*/
|
/*Demonstrate the usage of encoder and keyboard*/
|
||||||
@ -826,7 +926,7 @@
|
|||||||
#define LV_USE_DEMO_STRESS 1
|
#define LV_USE_DEMO_STRESS 1
|
||||||
|
|
||||||
/*Music player demo*/
|
/*Music player demo*/
|
||||||
#define LV_USE_DEMO_MUSIC 1
|
#define LV_USE_DEMO_MUSIC 0
|
||||||
#if LV_USE_DEMO_MUSIC
|
#if LV_USE_DEMO_MUSIC
|
||||||
#define LV_DEMO_MUSIC_SQUARE 0
|
#define LV_DEMO_MUSIC_SQUARE 0
|
||||||
#define LV_DEMO_MUSIC_LANDSCAPE 0
|
#define LV_DEMO_MUSIC_LANDSCAPE 0
|
||||||
@ -847,6 +947,8 @@
|
|||||||
/*Demonstrate scroll settings*/
|
/*Demonstrate scroll settings*/
|
||||||
#define LV_USE_DEMO_SCROLL 1
|
#define LV_USE_DEMO_SCROLL 1
|
||||||
|
|
||||||
|
/*Vector graphic demo*/
|
||||||
|
#define LV_USE_DEMO_VECTOR_GRAPHIC 0
|
||||||
/*--END OF LV_CONF_H--*/
|
/*--END OF LV_CONF_H--*/
|
||||||
|
|
||||||
#endif /*LV_CONF_H*/
|
#endif /*LV_CONF_H*/
|
||||||
|
Loading…
Reference in New Issue
Block a user