fix(conf) make a better style alignment in lv_conf_internal.h (#2652)
and reorder Kconfig and src/lv_conf_kconfig.h as lv_conf_template.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
22
Kconfig
22
Kconfig
@@ -2,14 +2,6 @@
|
|||||||
|
|
||||||
menu "LVGL configuration"
|
menu "LVGL configuration"
|
||||||
|
|
||||||
config LV_ATTRIBUTE_FAST_MEM_USE_IRAM
|
|
||||||
bool "Set IRAM as LV_ATTRIBUTE_FAST_MEM"
|
|
||||||
help
|
|
||||||
Set this option to configure IRAM as LV_ATTRIBUTE_FAST_MEM
|
|
||||||
|
|
||||||
config LV_CONF_MINIMAL
|
|
||||||
bool "LVGL minimal configuration."
|
|
||||||
|
|
||||||
# Define CONFIG_LV_CONF_SKIP so we can use LVGL
|
# Define CONFIG_LV_CONF_SKIP so we can use LVGL
|
||||||
# without lv_conf.h file, the lv_conf_internal.h and
|
# without lv_conf.h file, the lv_conf_internal.h and
|
||||||
# lv_conf_kconfig.h files are used instead.
|
# lv_conf_kconfig.h files are used instead.
|
||||||
@@ -17,6 +9,9 @@ menu "LVGL configuration"
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config LV_CONF_MINIMAL
|
||||||
|
bool "LVGL minimal configuration."
|
||||||
|
|
||||||
menu "Color settings"
|
menu "Color settings"
|
||||||
choice
|
choice
|
||||||
prompt "Color depth."
|
prompt "Color depth."
|
||||||
@@ -97,12 +92,10 @@ menu "LVGL configuration"
|
|||||||
default 30
|
default 30
|
||||||
|
|
||||||
config LV_TICK_CUSTOM
|
config LV_TICK_CUSTOM
|
||||||
bool
|
bool "Use a custom tick source"
|
||||||
prompt "Use a custom tick source"
|
|
||||||
|
|
||||||
config LV_TICK_CUSTOM_INCLUDE
|
config LV_TICK_CUSTOM_INCLUDE
|
||||||
string
|
string "Header for the system time function"
|
||||||
prompt "Header for the system time function"
|
|
||||||
default "Arduino.h"
|
default "Arduino.h"
|
||||||
depends on LV_TICK_CUSTOM
|
depends on LV_TICK_CUSTOM
|
||||||
|
|
||||||
@@ -319,6 +312,11 @@ menu "LVGL configuration"
|
|||||||
config LV_BIG_ENDIAN_SYSTEM
|
config LV_BIG_ENDIAN_SYSTEM
|
||||||
bool "For big endian systems set to 1"
|
bool "For big endian systems set to 1"
|
||||||
|
|
||||||
|
config LV_ATTRIBUTE_FAST_MEM_USE_IRAM
|
||||||
|
bool "Set IRAM as LV_ATTRIBUTE_FAST_MEM"
|
||||||
|
help
|
||||||
|
Set this option to configure IRAM as LV_ATTRIBUTE_FAST_MEM
|
||||||
|
|
||||||
config LV_USE_LARGE_COORD
|
config LV_USE_LARGE_COORD
|
||||||
bool "Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t"
|
bool "Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t"
|
||||||
endmenu
|
endmenu
|
||||||
|
|||||||
@@ -24,68 +24,68 @@
|
|||||||
*====================*/
|
*====================*/
|
||||||
|
|
||||||
/*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/
|
/*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/
|
||||||
#define LV_COLOR_DEPTH 16
|
#define LV_COLOR_DEPTH 16
|
||||||
|
|
||||||
/*Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)*/
|
/*Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)*/
|
||||||
#define LV_COLOR_16_SWAP 0
|
#define LV_COLOR_16_SWAP 0
|
||||||
|
|
||||||
/*Enable more complex drawing routines to manage screens transparency.
|
/*Enable more complex drawing routines to manage screens transparency.
|
||||||
*Can be used if the UI is above another layer, e.g. an OSD menu or video player.
|
*Can be used if the UI is above another layer, e.g. an OSD menu or video player.
|
||||||
*Requires `LV_COLOR_DEPTH = 32` colors and the screen's `bg_opa` should be set to non LV_OPA_COVER value*/
|
*Requires `LV_COLOR_DEPTH = 32` colors and the screen's `bg_opa` should be set to non LV_OPA_COVER value*/
|
||||||
#define LV_COLOR_SCREEN_TRANSP 0
|
#define LV_COLOR_SCREEN_TRANSP 0
|
||||||
|
|
||||||
/*Images pixels with this color will not be drawn if they are chroma keyed)*/
|
/*Images pixels with this color will not be drawn if they are chroma keyed)*/
|
||||||
#define LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00) /*pure green*/
|
#define LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00) /*pure green*/
|
||||||
|
|
||||||
/*=========================
|
/*=========================
|
||||||
MEMORY SETTINGS
|
MEMORY SETTINGS
|
||||||
*=========================*/
|
*=========================*/
|
||||||
|
|
||||||
/*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/
|
/*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/
|
||||||
#define LV_MEM_CUSTOM 0
|
#define LV_MEM_CUSTOM 0
|
||||||
#if LV_MEM_CUSTOM == 0
|
#if LV_MEM_CUSTOM == 0
|
||||||
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
|
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
|
||||||
# define LV_MEM_SIZE (32U * 1024U) /*[bytes]*/
|
# define LV_MEM_SIZE (32U * 1024U) /*[bytes]*/
|
||||||
|
|
||||||
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
|
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
|
||||||
# define LV_MEM_ADR 0 /*0: unused*/
|
# define LV_MEM_ADR 0 /*0: unused*/
|
||||||
/*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/
|
/*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/
|
||||||
#if LV_MEM_ADR == 0
|
#if LV_MEM_ADR == 0
|
||||||
//#define LV_MEM_POOL_INCLUDE your_alloc_library /* Uncomment if using an external allocator*/
|
//#define LV_MEM_POOL_INCLUDE your_alloc_library /* Uncomment if using an external allocator*/
|
||||||
//#define LV_MEM_POOL_ALLOC your_alloc /* Uncomment if using an external allocator*/
|
//#define LV_MEM_POOL_ALLOC your_alloc /* Uncomment if using an external allocator*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else /*LV_MEM_CUSTOM*/
|
#else /*LV_MEM_CUSTOM*/
|
||||||
# define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
|
# define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
|
||||||
# define LV_MEM_CUSTOM_ALLOC malloc
|
# define LV_MEM_CUSTOM_ALLOC malloc
|
||||||
# define LV_MEM_CUSTOM_FREE free
|
# define LV_MEM_CUSTOM_FREE free
|
||||||
# define LV_MEM_CUSTOM_REALLOC realloc
|
# define LV_MEM_CUSTOM_REALLOC realloc
|
||||||
#endif /*LV_MEM_CUSTOM*/
|
#endif /*LV_MEM_CUSTOM*/
|
||||||
|
|
||||||
/*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/
|
/*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/
|
||||||
#define LV_MEMCPY_MEMSET_STD 0
|
#define LV_MEMCPY_MEMSET_STD 0
|
||||||
|
|
||||||
/*====================
|
/*====================
|
||||||
HAL SETTINGS
|
HAL SETTINGS
|
||||||
*====================*/
|
*====================*/
|
||||||
|
|
||||||
/*Default display refresh period. LVG will redraw changed areas with this period time*/
|
/*Default display refresh period. LVG will redraw changed areas with this period time*/
|
||||||
#define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/
|
#define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/
|
||||||
|
|
||||||
/*Input device read period in milliseconds*/
|
/*Input device read period in milliseconds*/
|
||||||
#define LV_INDEV_DEF_READ_PERIOD 30 /*[ms]*/
|
#define LV_INDEV_DEF_READ_PERIOD 30 /*[ms]*/
|
||||||
|
|
||||||
/*Use a custom tick source that tells the elapsed time in milliseconds.
|
/*Use a custom tick source that tells the elapsed time in milliseconds.
|
||||||
*It removes the need to manually update the tick with `lv_tick_inc()`)*/
|
*It removes the need to manually update the tick with `lv_tick_inc()`)*/
|
||||||
#define LV_TICK_CUSTOM 0
|
#define LV_TICK_CUSTOM 0
|
||||||
#if LV_TICK_CUSTOM
|
#if LV_TICK_CUSTOM
|
||||||
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
|
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
|
||||||
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
|
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
|
||||||
#endif /*LV_TICK_CUSTOM*/
|
#endif /*LV_TICK_CUSTOM*/
|
||||||
|
|
||||||
/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
|
/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
|
||||||
*(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]*/
|
||||||
|
|
||||||
/*=======================
|
/*=======================
|
||||||
* FEATURE CONFIGURATION
|
* FEATURE CONFIGURATION
|
||||||
@@ -103,13 +103,13 @@
|
|||||||
/*Allow buffering some shadow calculation.
|
/*Allow buffering some shadow calculation.
|
||||||
*LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius`
|
*LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius`
|
||||||
*Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/
|
*Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/
|
||||||
#define LV_SHADOW_CACHE_SIZE 0
|
#define LV_SHADOW_CACHE_SIZE 0
|
||||||
|
|
||||||
/* Set number of maximally cached circle data.
|
/* Set number of maximally cached circle data.
|
||||||
* The circumference of 1/4 circle are saved for anti-aliasing
|
* The circumference of 1/4 circle are saved for anti-aliasing
|
||||||
* radius * 4 bytes are used per circle (the most often used radiuses are saved)
|
* radius * 4 bytes are used per circle (the most often used radiuses are saved)
|
||||||
* 0: to disable caching */
|
* 0: to disable caching */
|
||||||
#define LV_CIRCLE_CACHE_SIZE 4
|
#define LV_CIRCLE_CACHE_SIZE 4
|
||||||
|
|
||||||
#endif /*LV_DRAW_COMPLEX*/
|
#endif /*LV_DRAW_COMPLEX*/
|
||||||
|
|
||||||
@@ -118,17 +118,17 @@
|
|||||||
*With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
|
*With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
|
||||||
*However the opened images might consume additional RAM.
|
*However the opened images might consume additional RAM.
|
||||||
*0: to disable caching*/
|
*0: to disable caching*/
|
||||||
#define LV_IMG_CACHE_DEF_SIZE 0
|
#define LV_IMG_CACHE_DEF_SIZE 0
|
||||||
|
|
||||||
/*Maximum buffer size to allocate for rotation. Only used if software rotation is enabled in the display driver.*/
|
/*Maximum buffer size to allocate for rotation. Only used if software rotation is enabled in the display driver.*/
|
||||||
#define LV_DISP_ROT_MAX_BUF (10*1024)
|
#define LV_DISP_ROT_MAX_BUF (10*1024)
|
||||||
|
|
||||||
/*-------------
|
/*-------------
|
||||||
* GPU
|
* GPU
|
||||||
*-----------*/
|
*-----------*/
|
||||||
|
|
||||||
/*Use STM32's DMA2D (aka Chrom Art) GPU*/
|
/*Use STM32's DMA2D (aka Chrom Art) GPU*/
|
||||||
#define LV_USE_GPU_STM32_DMA2D 0
|
#define LV_USE_GPU_STM32_DMA2D 0
|
||||||
#if LV_USE_GPU_STM32_DMA2D
|
#if LV_USE_GPU_STM32_DMA2D
|
||||||
/*Must be defined to include path of CMSIS header of target processor
|
/*Must be defined to include path of CMSIS header of target processor
|
||||||
e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
||||||
@@ -136,7 +136,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Use NXP's PXP GPU iMX RTxxx platforms*/
|
/*Use NXP's PXP GPU iMX RTxxx platforms*/
|
||||||
#define LV_USE_GPU_NXP_PXP 0
|
#define LV_USE_GPU_NXP_PXP 0
|
||||||
#if LV_USE_GPU_NXP_PXP
|
#if LV_USE_GPU_NXP_PXP
|
||||||
/*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c)
|
/*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c)
|
||||||
* and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS
|
* and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS
|
||||||
@@ -147,14 +147,14 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Use NXP's VG-Lite GPU iMX RTxxx platforms*/
|
/*Use NXP's VG-Lite GPU iMX RTxxx platforms*/
|
||||||
#define LV_USE_GPU_NXP_VG_LITE 0
|
#define LV_USE_GPU_NXP_VG_LITE 0
|
||||||
|
|
||||||
/*Use SDL renderer API*/
|
/*Use SDL renderer API*/
|
||||||
#ifndef LV_USE_GPU_SDL
|
#ifndef LV_USE_GPU_SDL
|
||||||
# ifdef CONFIG_LV_USE_GPU_SDL
|
# ifdef CONFIG_LV_USE_GPU_SDL
|
||||||
# define LV_USE_GPU_SDL CONFIG_LV_USE_GPU_SDL
|
# define LV_USE_GPU_SDL CONFIG_LV_USE_GPU_SDL
|
||||||
# else
|
# else
|
||||||
# define LV_USE_GPU_SDL 0
|
# define LV_USE_GPU_SDL 0
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#if LV_USE_GPU_SDL
|
#if LV_USE_GPU_SDL
|
||||||
@@ -173,7 +173,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
*-----------*/
|
*-----------*/
|
||||||
|
|
||||||
/*Enable the log module*/
|
/*Enable the log module*/
|
||||||
#define LV_USE_LOG 0
|
#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:
|
||||||
@@ -183,21 +183,21 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
*LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
|
*LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
|
||||||
*LV_LOG_LEVEL_USER Only logs added by the user
|
*LV_LOG_LEVEL_USER Only logs added by the user
|
||||||
*LV_LOG_LEVEL_NONE Do not log anything*/
|
*LV_LOG_LEVEL_NONE Do not log anything*/
|
||||||
# define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
|
# define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
|
||||||
|
|
||||||
/*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 0
|
# define LV_LOG_PRINTF 0
|
||||||
|
|
||||||
/*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
|
/*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
|
||||||
# define LV_LOG_TRACE_MEM 1
|
# define LV_LOG_TRACE_MEM 1
|
||||||
# define LV_LOG_TRACE_TIMER 1
|
# define LV_LOG_TRACE_TIMER 1
|
||||||
# define LV_LOG_TRACE_INDEV 1
|
# define LV_LOG_TRACE_INDEV 1
|
||||||
# define LV_LOG_TRACE_DISP_REFR 1
|
# define LV_LOG_TRACE_DISP_REFR 1
|
||||||
# define LV_LOG_TRACE_EVENT 1
|
# define LV_LOG_TRACE_EVENT 1
|
||||||
# define LV_LOG_TRACE_OBJ_CREATE 1
|
# define LV_LOG_TRACE_OBJ_CREATE 1
|
||||||
# define LV_LOG_TRACE_LAYOUT 1
|
# define LV_LOG_TRACE_LAYOUT 1
|
||||||
# define LV_LOG_TRACE_ANIM 1
|
# define LV_LOG_TRACE_ANIM 1
|
||||||
|
|
||||||
#endif /*LV_USE_LOG*/
|
#endif /*LV_USE_LOG*/
|
||||||
|
|
||||||
@@ -214,34 +214,34 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#define LV_USE_ASSERT_OBJ 0 /*Check the object's type and existence (e.g. not deleted). (Slow)*/
|
#define LV_USE_ASSERT_OBJ 0 /*Check the object's type and existence (e.g. not deleted). (Slow)*/
|
||||||
|
|
||||||
/*Add a custom handler when assert happens e.g. to restart the MCU*/
|
/*Add a custom handler when assert happens e.g. to restart the MCU*/
|
||||||
#define LV_ASSERT_HANDLER_INCLUDE <stdint.h>
|
#define LV_ASSERT_HANDLER_INCLUDE <stdint.h>
|
||||||
#define LV_ASSERT_HANDLER while(1); /*Halt by default*/
|
#define LV_ASSERT_HANDLER while(1); /*Halt by default*/
|
||||||
|
|
||||||
/*-------------
|
/*-------------
|
||||||
* Others
|
* Others
|
||||||
*-----------*/
|
*-----------*/
|
||||||
|
|
||||||
/*1: Show CPU usage and FPS count in the right bottom corner*/
|
/*1: Show CPU usage and FPS count in the right bottom corner*/
|
||||||
#define LV_USE_PERF_MONITOR 0
|
#define LV_USE_PERF_MONITOR 0
|
||||||
|
|
||||||
/*1: Show the used memory and the memory fragmentation in the left bottom corner
|
/*1: Show the used memory and the memory fragmentation in the left bottom corner
|
||||||
* Requires LV_MEM_CUSTOM = 0*/
|
* Requires LV_MEM_CUSTOM = 0*/
|
||||||
#define LV_USE_MEM_MONITOR 0
|
#define LV_USE_MEM_MONITOR 0
|
||||||
|
|
||||||
/*1: Draw random colored rectangles over the redrawn areas*/
|
/*1: Draw random colored rectangles over the redrawn areas*/
|
||||||
#define LV_USE_REFR_DEBUG 0
|
#define LV_USE_REFR_DEBUG 0
|
||||||
|
|
||||||
/*Change the built in (v)snprintf functions*/
|
/*Change the built in (v)snprintf functions*/
|
||||||
#define LV_SPRINTF_CUSTOM 0
|
#define LV_SPRINTF_CUSTOM 0
|
||||||
#if LV_SPRINTF_CUSTOM
|
#if LV_SPRINTF_CUSTOM
|
||||||
# define LV_SPRINTF_INCLUDE <stdio.h>
|
# define LV_SPRINTF_INCLUDE <stdio.h>
|
||||||
# define lv_snprintf snprintf
|
# define lv_snprintf snprintf
|
||||||
# define lv_vsnprintf vsnprintf
|
# define lv_vsnprintf vsnprintf
|
||||||
#else /*LV_SPRINTF_CUSTOM*/
|
#else /*LV_SPRINTF_CUSTOM*/
|
||||||
# define LV_SPRINTF_USE_FLOAT 0
|
# define LV_SPRINTF_USE_FLOAT 0
|
||||||
#endif /*LV_SPRINTF_CUSTOM*/
|
#endif /*LV_SPRINTF_CUSTOM*/
|
||||||
|
|
||||||
#define LV_USE_USER_DATA 1
|
#define LV_USE_USER_DATA 1
|
||||||
|
|
||||||
/*Garbage Collector settings
|
/*Garbage Collector settings
|
||||||
*Used if lvgl is bound to higher level language and the memory is managed by that language*/
|
*Used if lvgl is bound to higher level language and the memory is managed by that language*/
|
||||||
@@ -251,14 +251,14 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#endif /*LV_ENABLE_GC*/
|
#endif /*LV_ENABLE_GC*/
|
||||||
|
|
||||||
/*1: Enable API to take snapshot for object*/
|
/*1: Enable API to take snapshot for object*/
|
||||||
#define LV_USE_SNAPSHOT 1
|
#define LV_USE_SNAPSHOT 1
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
* COMPILER SETTINGS
|
* COMPILER SETTINGS
|
||||||
*====================*/
|
*====================*/
|
||||||
|
|
||||||
/*For big endian systems set to 1*/
|
/*For big endian systems set to 1*/
|
||||||
#define LV_BIG_ENDIAN_SYSTEM 0
|
#define LV_BIG_ENDIAN_SYSTEM 0
|
||||||
|
|
||||||
/*Define a custom attribute to `lv_tick_inc` function*/
|
/*Define a custom attribute to `lv_tick_inc` function*/
|
||||||
#define LV_ATTRIBUTE_TICK_INC
|
#define LV_ATTRIBUTE_TICK_INC
|
||||||
@@ -293,7 +293,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#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*/
|
||||||
|
|
||||||
/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/
|
/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/
|
||||||
#define LV_USE_LARGE_COORD 0
|
#define LV_USE_LARGE_COORD 0
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* FONT USAGE
|
* FONT USAGE
|
||||||
@@ -301,27 +301,27 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
|
|
||||||
/*Montserrat fonts with ASCII range and some symbols using bpp = 4
|
/*Montserrat fonts with ASCII range and some symbols using bpp = 4
|
||||||
*https://fonts.google.com/specimen/Montserrat*/
|
*https://fonts.google.com/specimen/Montserrat*/
|
||||||
#define LV_FONT_MONTSERRAT_8 0
|
#define LV_FONT_MONTSERRAT_8 0
|
||||||
#define LV_FONT_MONTSERRAT_10 0
|
#define LV_FONT_MONTSERRAT_10 0
|
||||||
#define LV_FONT_MONTSERRAT_12 0
|
#define LV_FONT_MONTSERRAT_12 0
|
||||||
#define LV_FONT_MONTSERRAT_14 1
|
#define LV_FONT_MONTSERRAT_14 1
|
||||||
#define LV_FONT_MONTSERRAT_16 0
|
#define LV_FONT_MONTSERRAT_16 0
|
||||||
#define LV_FONT_MONTSERRAT_18 0
|
#define LV_FONT_MONTSERRAT_18 0
|
||||||
#define LV_FONT_MONTSERRAT_20 0
|
#define LV_FONT_MONTSERRAT_20 0
|
||||||
#define LV_FONT_MONTSERRAT_22 0
|
#define LV_FONT_MONTSERRAT_22 0
|
||||||
#define LV_FONT_MONTSERRAT_24 0
|
#define LV_FONT_MONTSERRAT_24 0
|
||||||
#define LV_FONT_MONTSERRAT_26 0
|
#define LV_FONT_MONTSERRAT_26 0
|
||||||
#define LV_FONT_MONTSERRAT_28 0
|
#define LV_FONT_MONTSERRAT_28 0
|
||||||
#define LV_FONT_MONTSERRAT_30 0
|
#define LV_FONT_MONTSERRAT_30 0
|
||||||
#define LV_FONT_MONTSERRAT_32 0
|
#define LV_FONT_MONTSERRAT_32 0
|
||||||
#define LV_FONT_MONTSERRAT_34 0
|
#define LV_FONT_MONTSERRAT_34 0
|
||||||
#define LV_FONT_MONTSERRAT_36 0
|
#define LV_FONT_MONTSERRAT_36 0
|
||||||
#define LV_FONT_MONTSERRAT_38 0
|
#define LV_FONT_MONTSERRAT_38 0
|
||||||
#define LV_FONT_MONTSERRAT_40 0
|
#define LV_FONT_MONTSERRAT_40 0
|
||||||
#define LV_FONT_MONTSERRAT_42 0
|
#define LV_FONT_MONTSERRAT_42 0
|
||||||
#define LV_FONT_MONTSERRAT_44 0
|
#define LV_FONT_MONTSERRAT_44 0
|
||||||
#define LV_FONT_MONTSERRAT_46 0
|
#define LV_FONT_MONTSERRAT_46 0
|
||||||
#define LV_FONT_MONTSERRAT_48 0
|
#define LV_FONT_MONTSERRAT_48 0
|
||||||
|
|
||||||
/*Demonstrate special features*/
|
/*Demonstrate special features*/
|
||||||
#define LV_FONT_MONTSERRAT_12_SUBPX 0
|
#define LV_FONT_MONTSERRAT_12_SUBPX 0
|
||||||
@@ -330,8 +330,8 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/
|
#define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/
|
||||||
|
|
||||||
/*Pixel perfect monospace fonts*/
|
/*Pixel perfect monospace fonts*/
|
||||||
#define LV_FONT_UNSCII_8 0
|
#define LV_FONT_UNSCII_8 0
|
||||||
#define LV_FONT_UNSCII_16 0
|
#define LV_FONT_UNSCII_16 0
|
||||||
|
|
||||||
/*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.
|
||||||
@@ -344,16 +344,16 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
/*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 0
|
||||||
|
|
||||||
/*Enables/disables support for compressed fonts.*/
|
/*Enables/disables support for compressed fonts.*/
|
||||||
#define LV_USE_FONT_COMPRESSED 0
|
#define LV_USE_FONT_COMPRESSED 0
|
||||||
|
|
||||||
/*Enable subpixel rendering*/
|
/*Enable subpixel rendering*/
|
||||||
#define LV_USE_FONT_SUBPX 0
|
#define LV_USE_FONT_SUBPX 0
|
||||||
#if LV_USE_FONT_SUBPX
|
#if LV_USE_FONT_SUBPX
|
||||||
/*Set the pixel order of the display. Physical order of RGB channels. Doesn't matter with "normal" fonts.*/
|
/*Set the pixel order of the display. Physical order of RGB channels. Doesn't matter with "normal" fonts.*/
|
||||||
#define LV_FONT_SUBPX_BGR 0 /*0: RGB; 1:BGR order*/
|
#define LV_FONT_SUBPX_BGR 0 /*0: RGB; 1:BGR order*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*=================
|
/*=================
|
||||||
@@ -369,15 +369,15 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#define LV_TXT_ENC LV_TXT_ENC_UTF8
|
#define LV_TXT_ENC LV_TXT_ENC_UTF8
|
||||||
|
|
||||||
/*Can break (wrap) texts on these chars*/
|
/*Can break (wrap) texts on these chars*/
|
||||||
#define LV_TXT_BREAK_CHARS " ,.;:-_"
|
#define LV_TXT_BREAK_CHARS " ,.;:-_"
|
||||||
|
|
||||||
/*If a word is at least this long, will break wherever "prettiest"
|
/*If a word is at least this long, will break wherever "prettiest"
|
||||||
*To disable, set to a value <= 0*/
|
*To disable, set to a value <= 0*/
|
||||||
#define LV_TXT_LINE_BREAK_LONG_LEN 0
|
#define LV_TXT_LINE_BREAK_LONG_LEN 0
|
||||||
|
|
||||||
/*Minimum number of characters in a long word to put on a line before a break.
|
/*Minimum number of characters in a long word to put on a line before a break.
|
||||||
*Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
|
*Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
|
||||||
#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
|
#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
|
||||||
|
|
||||||
/*Minimum number of characters in a long word to put on a line after a break.
|
/*Minimum number of characters in a long word to put on a line after a break.
|
||||||
*Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
|
*Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
|
||||||
@@ -389,13 +389,13 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
/*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts.
|
/*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts.
|
||||||
*The direction will be processed according to the Unicode Bidirectional Algorithm:
|
*The direction will be processed according to the Unicode Bidirectional Algorithm:
|
||||||
*https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
|
*https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
|
||||||
#define LV_USE_BIDI 0
|
#define LV_USE_BIDI 0
|
||||||
#if LV_USE_BIDI
|
#if LV_USE_BIDI
|
||||||
/*Set the default direction. Supported values:
|
/*Set the default direction. Supported values:
|
||||||
*`LV_BASE_DIR_LTR` Left-to-Right
|
*`LV_BASE_DIR_LTR` Left-to-Right
|
||||||
*`LV_BASE_DIR_RTL` Right-to-Left
|
*`LV_BASE_DIR_RTL` Right-to-Left
|
||||||
*`LV_BASE_DIR_AUTO` detect texts base direction*/
|
*`LV_BASE_DIR_AUTO` detect texts base direction*/
|
||||||
#define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
|
#define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Enable Arabic/Persian processing
|
/*Enable Arabic/Persian processing
|
||||||
@@ -408,47 +408,47 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
|
|
||||||
/*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/
|
/*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/
|
||||||
|
|
||||||
#define LV_USE_ARC 1
|
#define LV_USE_ARC 1
|
||||||
|
|
||||||
#define LV_USE_ANIMIMG 1
|
#define LV_USE_ANIMIMG 1
|
||||||
|
|
||||||
#define LV_USE_BAR 1
|
#define LV_USE_BAR 1
|
||||||
|
|
||||||
#define LV_USE_BTN 1
|
#define LV_USE_BTN 1
|
||||||
|
|
||||||
#define LV_USE_BTNMATRIX 1
|
#define LV_USE_BTNMATRIX 1
|
||||||
|
|
||||||
#define LV_USE_CANVAS 1
|
#define LV_USE_CANVAS 1
|
||||||
|
|
||||||
#define LV_USE_CHECKBOX 1
|
#define LV_USE_CHECKBOX 1
|
||||||
|
|
||||||
#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_IMG 1 /*Requires: lv_label*/
|
||||||
|
|
||||||
#define LV_USE_LABEL 1
|
#define LV_USE_LABEL 1
|
||||||
#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*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LV_USE_LINE 1
|
#define LV_USE_LINE 1
|
||||||
|
|
||||||
#define LV_USE_ROLLER 1 /*Requires: lv_label*/
|
#define LV_USE_ROLLER 1 /*Requires: lv_label*/
|
||||||
#if LV_USE_ROLLER
|
#if LV_USE_ROLLER
|
||||||
# define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/
|
# define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LV_USE_SLIDER 1 /*Requires: lv_bar*/
|
#define LV_USE_SLIDER 1 /*Requires: lv_bar*/
|
||||||
|
|
||||||
#define LV_USE_SWITCH 1
|
#define LV_USE_SWITCH 1
|
||||||
|
|
||||||
#define LV_USE_TEXTAREA 1 /*Requires: lv_label*/
|
#define LV_USE_TEXTAREA 1 /*Requires: lv_label*/
|
||||||
#if LV_USE_TEXTAREA != 0
|
#if LV_USE_TEXTAREA != 0
|
||||||
# define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/
|
# define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LV_USE_TABLE 1
|
#define LV_USE_TABLE 1
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* EXTRA COMPONENTS
|
* EXTRA COMPONENTS
|
||||||
@@ -457,7 +457,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
/*-----------
|
/*-----------
|
||||||
* Widgets
|
* Widgets
|
||||||
*----------*/
|
*----------*/
|
||||||
#define LV_USE_CALENDAR 1
|
#define LV_USE_CALENDAR 1
|
||||||
#if LV_USE_CALENDAR
|
#if LV_USE_CALENDAR
|
||||||
# define LV_CALENDAR_WEEK_STARTS_MONDAY 0
|
# define LV_CALENDAR_WEEK_STARTS_MONDAY 0
|
||||||
# if LV_CALENDAR_WEEK_STARTS_MONDAY
|
# if LV_CALENDAR_WEEK_STARTS_MONDAY
|
||||||
@@ -467,40 +467,40 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
|
# define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
|
||||||
# define LV_USE_CALENDAR_HEADER_ARROW 1
|
# define LV_USE_CALENDAR_HEADER_ARROW 1
|
||||||
# define LV_USE_CALENDAR_HEADER_DROPDOWN 1
|
# define LV_USE_CALENDAR_HEADER_DROPDOWN 1
|
||||||
#endif /*LV_USE_CALENDAR*/
|
#endif /*LV_USE_CALENDAR*/
|
||||||
|
|
||||||
#define LV_USE_CHART 1
|
#define LV_USE_CHART 1
|
||||||
|
|
||||||
#define LV_USE_COLORWHEEL 1
|
#define LV_USE_COLORWHEEL 1
|
||||||
|
|
||||||
#define LV_USE_IMGBTN 1
|
#define LV_USE_IMGBTN 1
|
||||||
|
|
||||||
#define LV_USE_KEYBOARD 1
|
#define LV_USE_KEYBOARD 1
|
||||||
|
|
||||||
#define LV_USE_LED 1
|
#define LV_USE_LED 1
|
||||||
|
|
||||||
#define LV_USE_LIST 1
|
#define LV_USE_LIST 1
|
||||||
|
|
||||||
#define LV_USE_METER 1
|
#define LV_USE_METER 1
|
||||||
|
|
||||||
#define LV_USE_MSGBOX 1
|
#define LV_USE_MSGBOX 1
|
||||||
|
|
||||||
#define LV_USE_SPINBOX 1
|
#define LV_USE_SPINBOX 1
|
||||||
|
|
||||||
#define LV_USE_SPINNER 1
|
#define LV_USE_SPINNER 1
|
||||||
|
|
||||||
#define LV_USE_TABVIEW 1
|
#define LV_USE_TABVIEW 1
|
||||||
|
|
||||||
#define LV_USE_TILEVIEW 1
|
#define LV_USE_TILEVIEW 1
|
||||||
|
|
||||||
#define LV_USE_WIN 1
|
#define LV_USE_WIN 1
|
||||||
|
|
||||||
#define LV_USE_SPAN 1
|
#define LV_USE_SPAN 1
|
||||||
#if LV_USE_SPAN
|
#if LV_USE_SPAN
|
||||||
/*A line text can contain maximum num of span descriptor */
|
/*A line text can contain maximum num of span descriptor */
|
||||||
# define LV_SPAN_SNIPPET_STACK_SIZE 64
|
# define LV_SPAN_SNIPPET_STACK_SIZE 64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-----------
|
/*-----------
|
||||||
@@ -508,34 +508,34 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
*----------*/
|
*----------*/
|
||||||
|
|
||||||
/*A simple, impressive and very complete theme*/
|
/*A simple, impressive and very complete theme*/
|
||||||
#define LV_USE_THEME_DEFAULT 1
|
#define LV_USE_THEME_DEFAULT 1
|
||||||
#if LV_USE_THEME_DEFAULT
|
#if LV_USE_THEME_DEFAULT
|
||||||
|
|
||||||
/*0: Light mode; 1: Dark mode*/
|
/*0: Light mode; 1: Dark mode*/
|
||||||
# define LV_THEME_DEFAULT_DARK 0
|
# define LV_THEME_DEFAULT_DARK 0
|
||||||
|
|
||||||
/*1: Enable grow on press*/
|
/*1: Enable grow on press*/
|
||||||
# define LV_THEME_DEFAULT_GROW 1
|
# define LV_THEME_DEFAULT_GROW 1
|
||||||
|
|
||||||
/*Default transition time in [ms]*/
|
/*Default transition time in [ms]*/
|
||||||
# define LV_THEME_DEFAULT_TRANSITON_TIME 80
|
# define LV_THEME_DEFAULT_TRANSITON_TIME 80
|
||||||
#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_BASIC 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
|
||||||
|
|
||||||
/*-----------
|
/*-----------
|
||||||
* Layouts
|
* Layouts
|
||||||
*----------*/
|
*----------*/
|
||||||
|
|
||||||
/*A layout similar to Flexbox in CSS.*/
|
/*A layout similar to Flexbox in CSS.*/
|
||||||
#define LV_USE_FLEX 1
|
#define LV_USE_FLEX 1
|
||||||
|
|
||||||
/*A layout similar to Grid in CSS.*/
|
/*A layout similar to Grid in CSS.*/
|
||||||
#define LV_USE_GRID 1
|
#define LV_USE_GRID 1
|
||||||
|
|
||||||
/*---------------------
|
/*---------------------
|
||||||
* 3rd party libraries
|
* 3rd party libraries
|
||||||
@@ -552,26 +552,26 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#define LV_USE_FS_FATFS '\0' /*Uses f_open, f_read, etc*/
|
#define LV_USE_FS_FATFS '\0' /*Uses f_open, f_read, etc*/
|
||||||
|
|
||||||
/*PNG decoder library*/
|
/*PNG decoder library*/
|
||||||
#define LV_USE_PNG 0
|
#define LV_USE_PNG 0
|
||||||
|
|
||||||
/*BMP decoder library*/
|
/*BMP decoder library*/
|
||||||
#define LV_USE_BMP 0
|
#define LV_USE_BMP 0
|
||||||
|
|
||||||
/* 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_SJPG 0
|
#define LV_USE_SJPG 0
|
||||||
|
|
||||||
/*GIF decoder library*/
|
/*GIF decoder library*/
|
||||||
#define LV_USE_GIF 0
|
#define LV_USE_GIF 0
|
||||||
|
|
||||||
/*QR code library*/
|
/*QR code library*/
|
||||||
#define LV_USE_QRCODE 0
|
#define LV_USE_QRCODE 0
|
||||||
|
|
||||||
/*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] (-1: no caching)*/
|
/*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/
|
||||||
# define LV_FREETYPE_CACHE_SIZE (16 * 1024)
|
# define LV_FREETYPE_CACHE_SIZE (16 * 1024)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -580,7 +580,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
*==================*/
|
*==================*/
|
||||||
|
|
||||||
/*Enable the examples to be built with the library*/
|
/*Enable the examples to be built with the library*/
|
||||||
#define LV_BUILD_EXAMPLES 1
|
#define LV_BUILD_EXAMPLES 1
|
||||||
|
|
||||||
/*--END OF LV_CONF_H--*/
|
/*--END OF LV_CONF_H--*/
|
||||||
|
|
||||||
|
|||||||
@@ -29,24 +29,24 @@ fout.write(
|
|||||||
|
|
||||||
/* Handle special Kconfig options */
|
/* Handle special Kconfig options */
|
||||||
#ifndef LV_KCONFIG_IGNORE
|
#ifndef LV_KCONFIG_IGNORE
|
||||||
# include "lv_conf_kconfig.h"
|
# include "lv_conf_kconfig.h"
|
||||||
# ifdef CONFIG_LV_CONF_SKIP
|
# ifdef CONFIG_LV_CONF_SKIP
|
||||||
# define LV_CONF_SKIP
|
# define LV_CONF_SKIP
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*If "lv_conf.h" is available from here try to use it later.*/
|
/*If "lv_conf.h" is available from here try to use it later.*/
|
||||||
#if defined __has_include
|
#ifdef __has_include
|
||||||
# if __has_include("lv_conf.h")
|
# if __has_include("lv_conf.h")
|
||||||
# ifndef LV_CONF_INCLUDE_SIMPLE
|
# ifndef LV_CONF_INCLUDE_SIMPLE
|
||||||
# define LV_CONF_INCLUDE_SIMPLE
|
# define LV_CONF_INCLUDE_SIMPLE
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*If lv_conf.h is not skipped include it*/
|
/*If lv_conf.h is not skipped include it*/
|
||||||
#if !defined(LV_CONF_SKIP)
|
#ifndef LV_CONF_SKIP
|
||||||
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
# ifdef LV_CONF_PATH /*If there is a path defined for lv_conf.h use it*/
|
||||||
# define __LV_TO_STR_AUX(x) #x
|
# define __LV_TO_STR_AUX(x) #x
|
||||||
# define __LV_TO_STR(x) __LV_TO_STR_AUX(x)
|
# define __LV_TO_STR(x) __LV_TO_STR_AUX(x)
|
||||||
# include __LV_TO_STR(LV_CONF_PATH)
|
# include __LV_TO_STR(LV_CONF_PATH)
|
||||||
@@ -80,11 +80,11 @@ for i in fin.read().splitlines():
|
|||||||
|
|
||||||
r = re.search(r'^ *# *define ([^\s]+).*$', i)
|
r = re.search(r'^ *# *define ([^\s]+).*$', i)
|
||||||
|
|
||||||
#ifndef LV_USE_BTN /*Only if not defined in lv_conf.h*/
|
#ifndef LV_USE_BTN /*Only if not defined in lv_conf.h*/
|
||||||
# ifdef CONFIG_LV_USE_BTN /*Use KConfig value if set*/
|
# ifdef CONFIG_LV_USE_BTN /*Use KConfig value if set*/
|
||||||
# define LV_USE_BTN CONFIG_LV_USE_BTN
|
# define LV_USE_BTN CONFIG_LV_USE_BTN
|
||||||
# else
|
# else
|
||||||
# define LV_USE_BTN 1 /*Use default value*/
|
# define LV_USE_BTN 1 /*Use default value*/
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -117,12 +117,10 @@ fout.write(
|
|||||||
LV_EXPORT_CONST_INT(LV_DPI_DEF);
|
LV_EXPORT_CONST_INT(LV_DPI_DEF);
|
||||||
|
|
||||||
/*If running without lv_conf.h add typdesf with default value*/
|
/*If running without lv_conf.h add typdesf with default value*/
|
||||||
#if defined(LV_CONF_SKIP)
|
#ifdef LV_CONF_SKIP
|
||||||
|
# if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) /*Disable warnings for Visual Studio*/
|
||||||
# if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) /*Disable warnings for Visual Studio*/
|
# define _CRT_SECURE_NO_WARNINGS
|
||||||
# define _CRT_SECURE_NO_WARNINGS
|
# endif
|
||||||
# endif
|
|
||||||
|
|
||||||
#endif /*defined(LV_CONF_SKIP)*/
|
#endif /*defined(LV_CONF_SKIP)*/
|
||||||
|
|
||||||
#endif /*LV_CONF_INTERNAL_H*/
|
#endif /*LV_CONF_INTERNAL_H*/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -11,7 +11,7 @@ extern "C" {
|
|||||||
# include LV_CONF_KCONFIG_EXTERNAL_INCLUDE
|
# include LV_CONF_KCONFIG_EXTERNAL_INCLUDE
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# if defined ESP_PLATFORM
|
# ifdef ESP_PLATFORM
|
||||||
# include "sdkconfig.h"
|
# include "sdkconfig.h"
|
||||||
# include "esp_attr.h"
|
# include "esp_attr.h"
|
||||||
# endif
|
# endif
|
||||||
@@ -22,26 +22,20 @@ extern "C" {
|
|||||||
|
|
||||||
#endif /*LV_CONF_KCONFIG_EXTERNAL_INCLUDE*/
|
#endif /*LV_CONF_KCONFIG_EXTERNAL_INCLUDE*/
|
||||||
|
|
||||||
/*******************
|
|
||||||
* LV_MEM_SIZE
|
|
||||||
*******************/
|
|
||||||
|
|
||||||
#ifndef LV_MEM_SIZE
|
|
||||||
#if defined (CONFIG_LV_MEM_SIZE_KILOBYTES)
|
|
||||||
#define CONFIG_LV_MEM_SIZE (CONFIG_LV_MEM_SIZE_KILOBYTES * 1024U)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*******************
|
/*******************
|
||||||
* LV COLOR CHROMA KEY
|
* LV COLOR CHROMA KEY
|
||||||
*******************/
|
*******************/
|
||||||
|
|
||||||
#ifndef LV_COLOR_CHROMA_KEY
|
#ifdef CONFIG_LV_COLOR_CHROMA_KEY_HEX
|
||||||
#if defined (CONFIG_LV_COLOR_CHROMA_KEY_HEX)
|
# define CONFIG_LV_COLOR_CHROMA_KEY lv_color_hex(CONFIG_LV_COLOR_CHROMA_KEY_HEX)
|
||||||
#define CONFIG_LV_COLOR_CHROMA_KEY lv_color_hex(CONFIG_LV_COLOR_CHROMA_KEY_HEX)
|
|
||||||
#else
|
|
||||||
#define CONFIG_LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00) /* pure green */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*******************
|
||||||
|
* LV_MEM_SIZE
|
||||||
|
*******************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_LV_MEM_SIZE_KILOBYTES
|
||||||
|
# define CONFIG_LV_MEM_SIZE (CONFIG_LV_MEM_SIZE_KILOBYTES * 1024U)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/********************
|
/********************
|
||||||
@@ -57,87 +51,81 @@ extern "C" {
|
|||||||
/*------------------
|
/*------------------
|
||||||
* DEFAULT FONT
|
* DEFAULT FONT
|
||||||
*-----------------*/
|
*-----------------*/
|
||||||
#ifndef LV_THEME_DEFAULT_FONT
|
#ifdef CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8
|
||||||
#if defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_8
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_8
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_10)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_10
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_10
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_10
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_12
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_12
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_14
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_14
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_16
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_16
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_18
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_18
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_20
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_20
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_22
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_22
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_24
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_24
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_26
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_26
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_28
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_28
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_30
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_30
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_32
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_32
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_34
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_34
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_36
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_36
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_38
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_38
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_40
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_40
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_42
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_42
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_44
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_44
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_46
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_46
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_48
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_48
|
#elif defined(CONFIG_LV_FONT_DEFAULT_UNSCII_8)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_UNSCII_8
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_unscii_8
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_unscii_8
|
#elif defined(CONFIG_LV_FONT_DEFAULT_UNSCII_16)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_UNSCII_16
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_unscii_16
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_unscii_16
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT12SUBPX)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT12SUBPX
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_12_subpx
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_12_subpx
|
#elif defined(CONFIG_LV_FONT_DEFAULT_MONTSERRAT28COMPRESSED)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_MONTSERRAT28COMPRESSED
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_28_compressed
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_montserrat_28_compressed
|
#elif defined(CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_dejavu_16_persian_hebrew
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_dejavu_16_persian_hebrew
|
#elif defined(CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK)
|
||||||
#elif defined CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK
|
# define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_simsun_16_cjk
|
||||||
#define CONFIG_LV_THEME_DEFAULT_FONT &lv_font_simsun_16_cjk
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*------------------
|
/*------------------
|
||||||
* TEXT ENCODING
|
* TEXT ENCODING
|
||||||
*-----------------*/
|
*-----------------*/
|
||||||
#ifndef LV_TEXT_ENC
|
|
||||||
#ifdef CONFIG_LV_TXT_ENC_UTF8
|
#ifdef CONFIG_LV_TXT_ENC_UTF8
|
||||||
#define CONFIG_LV_TXT_ENC LV_TXT_ENC_UTF8
|
# define CONFIG_LV_TXT_ENC LV_TXT_ENC_UTF8
|
||||||
#elif defined CONFIG_LV_TXT_ENC_ASCII
|
#elif defined(CONFIG_LV_TXT_ENC_ASCII)
|
||||||
#define CONFIG_LV_TXT_ENC LV_TXT_ENC_ASCII
|
# define CONFIG_LV_TXT_ENC LV_TXT_ENC_ASCII
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*------------------
|
/*------------------
|
||||||
* BIDI DIRECTION
|
* BIDI DIRECTION
|
||||||
*-----------------*/
|
*-----------------*/
|
||||||
|
|
||||||
#ifndef LV_BIDI_BASE_DIR_DEF
|
|
||||||
#ifdef CONFIG_LV_BASE_DIR_LTR
|
#ifdef CONFIG_LV_BASE_DIR_LTR
|
||||||
#define CONFIG_LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_LTR
|
# define CONFIG_LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_LTR
|
||||||
#elif defined CONFIG_LV_BASE_DIR_RTL
|
#elif defined(CONFIG_LV_BASE_DIR_RTL)
|
||||||
#define CONFIG_LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_RTL
|
# define CONFIG_LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_RTL
|
||||||
#elif defined CONFIG_LV_BASE_DIR_AUTO
|
#elif defined(CONFIG_LV_BASE_DIR_AUTO)
|
||||||
#define CONFIG_LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
|
# define CONFIG_LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user