![]() |
no-OS
|
Go to the source code of this file.
Configuration file for v9.3.0-dev
#define LV_ASSERT_HANDLER while(1); |
Halt by default
#define LV_ASSERT_HANDLER_INCLUDE <stdint.h> |
Add a custom handler when assert happens e.g. to restart MCU.
#define LV_ATTRIBUTE_EXTERN_DATA |
Prefix all global extern data with this
#define LV_ATTRIBUTE_FAST_MEM |
Place performance critical functions into a faster memory (e.g RAM)
#define LV_ATTRIBUTE_FLUSH_READY |
Define a custom attribute for lv_display_flush_ready
function
#define LV_ATTRIBUTE_LARGE_CONST |
Attribute to mark large constant arrays, for example for font bitmaps
#define LV_ATTRIBUTE_LARGE_RAM_ARRAY |
Compiler prefix for a large array declaration in RAM
#define LV_ATTRIBUTE_MEM_ALIGN |
Will be added where memory needs to be aligned (with -Os data might not be aligned to boundary by default). E.g. attribute((aligned(4)))
#define LV_ATTRIBUTE_MEM_ALIGN_SIZE 1 |
Align VG_LITE buffers on this number of bytes.
#define LV_ATTRIBUTE_TICK_INC |
Define a custom attribute for lv_tick_inc
function
#define LV_ATTRIBUTE_TIMER_HANDLER |
Define a custom attribute for lv_timer_handler
function
#define LV_BIG_ENDIAN_SYSTEM 0 |
For big endian systems set to 1
#define LV_BIN_DECODER_RAM_LOAD 0 |
Decode bin images to RAM
#define LV_BUILD_EXAMPLES 1 |
Enable examples to be built with the library.
#define LV_CACHE_DEF_SIZE 0 |
Default cache size in bytes. Used by image decoders such as lv_lodepng
to keep the decoded image in memory. If size is not set to 0, the decoder will fail to decode when the cache is full. If size is 0, the cache function is not enabled and the decoded memory will be released immediately after use.
#define LV_COLOR_DEPTH 1 |
Color depth: 1 (I1), 8 (L8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888)
#define LV_COLOR_MIX_ROUND_OFS 0 |
Adjust color mix functions rounding. GPUs might calculate color mix (blending) differently.
#define LV_DEF_REFR_PERIOD 33 |
Default display refresh, input device read and animation step period. [ms]
#define LV_DPI_DEF 130 |
Default Dots 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.) [px/inch]
#define LV_DRAW_BUF_ALIGN 4 |
Align start address of draw_buf addresses to this bytes
#define LV_DRAW_BUF_STRIDE_ALIGN 1 |
Align stride of all layers and images to this bytes
#define LV_DRAW_LAYER_MAX_MEMORY 8 * 1024 |
No limit by default [bytes]
#define LV_DRAW_LAYER_SIMPLE_BUF_SIZE (8 * 1024) |
The target buffer size for simple layer chunks. [bytes]
#define LV_DRAW_THREAD_STACK_SIZE (12 * 1024) |
Stack size of drawing thread. NOTE: If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more. [bytes]
#define LV_DRAW_TRANSFORM_USE_MATRIX 0 |
Using matrix for transformations. Requirements:
LV_USE_MATRIX = 1
.#define LV_ENABLE_GLOBAL_CUSTOM 0 |
#define LV_EXPORT_CONST_INT | ( | int_value | ) |
Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that should also appear on LVGL binding API such as MicroPython. The default value just prevents GCC warning
#define LV_FONT_CUSTOM_DECLARE |
Optionally declare custom fonts here.
You can use any of these fonts as the default font too and they will be available globally. Example:
#define LV_FONT_DEFAULT &lv_font_montserrat_14 |
Always set a default font
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 |
Hebrew, Arabic, Persian letters and all their forms
#define LV_FONT_FMT_TXT_LARGE 0 |
Enable handling large font and/or fonts with a lot of characters. The limit depends on the font size, font face and bpp. A compiler error will be triggered if a font needs it.
#define LV_FONT_MONTSERRAT_10 0 |
#define LV_FONT_MONTSERRAT_12 0 |
#define LV_FONT_MONTSERRAT_14 1 |
#define LV_FONT_MONTSERRAT_16 0 |
#define LV_FONT_MONTSERRAT_18 0 |
#define LV_FONT_MONTSERRAT_20 0 |
#define LV_FONT_MONTSERRAT_22 0 |
#define LV_FONT_MONTSERRAT_24 0 |
#define LV_FONT_MONTSERRAT_26 0 |
#define LV_FONT_MONTSERRAT_28 0 |
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0 |
bpp = 3
#define LV_FONT_MONTSERRAT_30 0 |
#define LV_FONT_MONTSERRAT_32 0 |
#define LV_FONT_MONTSERRAT_34 0 |
#define LV_FONT_MONTSERRAT_36 0 |
#define LV_FONT_MONTSERRAT_38 0 |
#define LV_FONT_MONTSERRAT_40 0 |
#define LV_FONT_MONTSERRAT_42 0 |
#define LV_FONT_MONTSERRAT_44 0 |
#define LV_FONT_MONTSERRAT_46 0 |
#define LV_FONT_MONTSERRAT_48 0 |
#define LV_FONT_MONTSERRAT_8 0 |
#define LV_FONT_SIMSUN_14_CJK 0 |
1000 most common CJK radicals
#define LV_FONT_SIMSUN_16_CJK 0 |
1000 most common CJK radicals
#define LV_FONT_UNSCII_16 0 |
#define LV_FONT_UNSCII_8 0 |
Pixel perfect monospaced fonts
#define LV_FS_DEFAULT_DRIVER_LETTER '\0' |
Setting a default driver letter allows skipping the driver prefix in filepaths. Documentation about how to use the below driver-identifier letters can be found at https://docs.lvgl.io/master/details/main-modules/fs.html#lv-fs-identifier-letters .
#define LV_GRADIENT_MAX_STOPS 2 |
Number of stops allowed per gradient. Increase this to allow more stops. This adds (sizeof(lv_color_t) + 1) bytes per additional stop.
#define LV_IMAGE_HEADER_CACHE_DEF_CNT 0 |
Default number of image header cache entries. The cache is used to store the headers of images The main logic is like LV_CACHE_DEF_SIZE
but for image headers.
#define LV_INTTYPES_INCLUDE <inttypes.h> |
#define LV_LIMITS_INCLUDE <limits.h> |
#define LV_MEM_ADR 0 |
Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too. 0: unused
#define LV_MEM_POOL_EXPAND_SIZE 0 |
Size of the memory expand for lv_malloc()
in bytes
#define LV_MEM_SIZE (22U * 1024U) |
Size of memory available for lv_malloc()
in bytes (>= 2kB) [bytes]
#define LV_OBJ_ID_AUTO_ASSIGN LV_USE_OBJ_ID |
Automatically assign an ID when obj is created
#define LV_OBJ_STYLE_CACHE 0 |
Add 2 x 32-bit variables to each lv_obj_t
to speed up getting style properties
#define LV_OS_CUSTOM_INCLUDE <stdint.h> |
#define LV_STDARG_INCLUDE <stdarg.h> |
#define LV_STDBOOL_INCLUDE <stdbool.h> |
#define LV_STDDEF_INCLUDE <stddef.h> |
#define LV_STDINT_INCLUDE <stdint.h> |
#define LV_TXT_BREAK_CHARS " ,.;:-_)]}" |
While rendering text strings, break (wrap) text on these chars.
#define LV_TXT_COLOR_CMD "#" |
#define LV_TXT_ENC LV_TXT_ENC_UTF8 |
Select a character encoding for strings. Your IDE or editor should have the same character encoding.
#define LV_TXT_LINE_BREAK_LONG_LEN 0 |
If a word is at least this long, will break wherever "prettiest". To disable, set to a value <= 0.
#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3 |
Minimum number of characters in a long word to put on a line after a break. Depends on LV_TXT_LINE_BREAK_LONG_LEN.
#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3 |
Minimum number of characters in a long word to put on a line before a break. Depends on LV_TXT_LINE_BREAK_LONG_LEN.
#define LV_USE_ANIMIMG 1 |
#define LV_USE_ARABIC_PERSIAN_CHARS 0 |
Enable Arabic/Persian processing In these languages characters should be replaced with another form based on their position in the text
#define LV_USE_ARC 0 |
#define LV_USE_ASSERT_MALLOC 0 |
Checks is the memory is successfully allocated or no. (Very fast, recommended)
#define LV_USE_ASSERT_MEM_INTEGRITY 0 |
Check the integrity of lv_mem
after critical operations. (Slow)
#define LV_USE_ASSERT_NULL 0 |
Check if the parameter is NULL. (Very fast, recommended)
#define LV_USE_ASSERT_OBJ 0 |
Check the object's type and existence (e.g. not deleted). (Slow)
#define LV_USE_ASSERT_STYLE 0 |
Check if the styles are properly initialized. (Very fast, recommended)
#define LV_USE_BAR 0 |
#define LV_USE_BARCODE 0 |
Barcode code library
#define LV_USE_BIDI 0 |
Support bidirectional text. Allows mixing Left-to-Right and Right-to-Left text. The direction will be processed according to the Unicode Bidirectional Algorithm: https://www.w3.org/International/articles/inline-bidi-markup/uba-basics
#define LV_USE_BMP 0 |
BMP decoder library
#define LV_USE_BUTTON 0 |
#define LV_USE_BUTTONMATRIX 0 |
#define LV_USE_CALENDAR 0 |
#define LV_USE_CANVAS 0 |
#define LV_USE_CHART 0 |
#define LV_USE_CHECKBOX 0 |
#define LV_USE_COLOR_FILTER 0 |
#define LV_USE_DEMO_BENCHMARK 0 |
Benchmark your system
#define LV_USE_DEMO_EBIKE 0 |
#define LV_USE_DEMO_FLEX_LAYOUT 0 |
Flex layout demo
#define LV_USE_DEMO_HIGH_RES 0 |
High-resolution demo
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0 |
Demonstrate usage of encoder and keyboard.
#define LV_USE_DEMO_MULTILANG 0 |
Smart-phone like multi-language demo
#define LV_USE_DEMO_MUSIC 0 |
Music player demo
#define LV_USE_DEMO_RENDER 0 |
Render test for each primitive.
#define LV_USE_DEMO_SCROLL 0 |
Demonstrate scroll settings
#define LV_USE_DEMO_SMARTWATCH 0 |
#define LV_USE_DEMO_STRESS 0 |
Stress test for LVGL
#define LV_USE_DEMO_TRANSFORM 0 |
Widget transformation demo
#define LV_USE_DEMO_VECTOR_GRAPHIC 0 |
Vector graphic demo
#define LV_USE_DEMO_WIDGETS 0 |
Show some widgets. This might be required to increase LV_MEM_SIZE
.
#define LV_USE_DRAW_DAVE2D 0 |
Use Renesas Dave2D on RA platforms.
#define LV_USE_DRAW_DMA2D 0 |
Accelerate blends, fills, etc. with STM32 DMA2D
#define LV_USE_DRAW_G2D 0 |
Use NXP's G2D on MPU platforms.
#define LV_USE_DRAW_OPENGLES 0 |
Draw using cached OpenGLES textures
#define LV_USE_DRAW_SDL 0 |
Draw using cached SDL textures
#define LV_USE_DRAW_SW 1 |
#define LV_USE_DRAW_VG_LITE 0 |
Use VG-Lite GPU.
#define LV_USE_DRAW_VGLITE 0 |
Use NXP's VG-Lite GPU on iMX RTxxx platforms.
#define LV_USE_DROPDOWN 0 |
Requires: lv_label
#define LV_USE_EVDEV 0 |
Driver for evdev input devices
#define LV_USE_FFMPEG 0 |
FFmpeg library for image decoding and playing videos. Supports all major image formats so do not enable other image decoder with it.
#define LV_USE_FILE_EXPLORER 0 |
1: Enable file explorer.
#define LV_USE_FLEX 1 |
A layout similar to Flexbox in CSS.
#define LV_USE_FLOAT 0 |
Use float
as lv_value_precise_t
#define LV_USE_FONT_COMPRESSED 0 |
Enables/disables support for compressed fonts.
#define LV_USE_FONT_MANAGER 0 |
1: Enable freetype font manager
#define LV_USE_FONT_PLACEHOLDER 1 |
Enable drawing placeholders when glyph dsc is not found.
#define LV_USE_FRAGMENT 0 |
1: Enable lv_obj
fragment logic
#define LV_USE_FREERTOS_TASK_NOTIFY 1 |
#define LV_USE_FREETYPE 0 |
FreeType library
#define LV_USE_FS_ARDUINO_ESP_LITTLEFS 0 |
API for Arduino LittleFs.
#define LV_USE_FS_ARDUINO_SD 0 |
API for Arduino Sd.
#define LV_USE_FS_FATFS 0 |
API for FATFS (needs to be added separately). Uses f_open, f_read, etc.
#define LV_USE_FS_LITTLEFS 0 |
API for LittleFs.
#define LV_USE_FS_MEMFS 0 |
API for memory-mapped file access.
#define LV_USE_FS_POSIX 0 |
API for open, read, etc.
#define LV_USE_FS_STDIO 0 |
API for fopen, fread, etc.
#define LV_USE_FS_UEFI 0 |
API for UEFI
#define LV_USE_FS_WIN32 0 |
API for CreateFile, ReadFile, etc.
#define LV_USE_GENERIC_MIPI (LV_USE_ST7735 | LV_USE_ST7789 | LV_USE_ST7796 | LV_USE_ILI9341) |
#define LV_USE_GESTURE_RECOGNITION 0 |
#define LV_USE_GIF 0 |
GIF decoder library
#define LV_USE_GRID 1 |
A layout similar to Grid in CSS.
#define LV_USE_GRIDNAV 0 |
1: Enable grid navigation
#define LV_USE_ILI9341 0 |
#define LV_USE_IMAGE 1 |
Requires: lv_label
#define LV_USE_IMAGEBUTTON 0 |
#define LV_USE_IME_PINYIN 0 |
1: Enable Pinyin input method
#define LV_USE_IMGFONT 0 |
1: Support using images as font in label or span widgets
#define LV_USE_KEYBOARD 0 |
#define LV_USE_LABEL 1 |
#define LV_USE_LAYER_DEBUG 0 |
1: Draw a red overlay for ARGB layers and a green overlay for RGB layers
#define LV_USE_LED 0 |
#define LV_USE_LIBINPUT 0 |
Driver for libinput input devices
#define LV_USE_LIBJPEG_TURBO 0 |
libjpeg-turbo decoder library.
#define LV_USE_LIBPNG 0 |
PNG decoder(libpng) library
#define LV_USE_LINE 0 |
#define LV_USE_LINUX_DRM 0 |
Driver for /dev/dri/card
#define LV_USE_LINUX_FBDEV 0 |
Driver for /dev/fb
#define LV_USE_LIST 0 |
#define LV_USE_LODEPNG 0 |
LODEPNG decoder library
#define LV_USE_LOG 0 |
Enable log module
#define LV_USE_LOTTIE 0 |
Requires: lv_canvas, thorvg
#define LV_USE_LZ4_EXTERNAL 0 |
Use external LZ4 library
#define LV_USE_LZ4_INTERNAL 0 |
Use lvgl built-in LZ4 lib
#define LV_USE_MATRIX 0 |
Enable matrix support
LV_USE_FLOAT = 1
#define LV_USE_MENU 0 |
#define LV_USE_MONKEY 0 |
1: Enable Monkey test
#define LV_USE_MSGBOX 0 |
#define LV_USE_NEMA_GFX 0 |
#define LV_USE_NUTTX 0 |
Use Nuttx to open window and handle touchscreen
#define LV_USE_OBJ_ID 0 |
Add id
field to lv_obj_t
#define LV_USE_OBJ_ID_BUILTIN 1 |
Use builtin obj ID handler functions:
#define LV_USE_OBJ_NAME 0 |
Enable support widget names
#define LV_USE_OBJ_PROPERTY 0 |
Use obj property set/get API.
#define LV_USE_OBJ_PROPERTY_NAME 1 |
Enable property name support.
#define LV_USE_OBSERVER 1 |
1: Enable an observer pattern implementation
#define LV_USE_OPENGLES 0 |
Use OpenGL to open window on PC and handle mouse and keyboard
#define LV_USE_OS LV_OS_NONE |
Select operating system to use. Possible options:
#define LV_USE_PARALLEL_DRAW_DEBUG 0 |
1: Adds the following behaviors for debugging:
#define LV_USE_PRIVATE_API 0 |
Include lvgl_private.h
in lvgl.h
to access internal data and functions by default
#define LV_USE_PROFILER 0 |
1: Enable runtime performance profiler
#define LV_USE_PXP 0 |
Use NXP's PXP on iMX RTxxx platforms.
#define LV_USE_QNX 0 |
QNX Screen display and input drivers
#define LV_USE_QRCODE 0 |
QR code library
#define LV_USE_REFR_DEBUG 0 |
1: Draw random colored rectangles over the redrawn areas.
#define LV_USE_RENESAS_GLCDC 0 |
Driver for Renesas GLCD
#define LV_USE_RLE 0 |
RLE decompress library
#define LV_USE_RLOTTIE 0 |
Rlottie library
#define LV_USE_ROLLER 0 |
Requires: lv_label
#define LV_USE_SCALE 0 |
#define LV_USE_SDL 0 |
Use SDL to open window on PC and handle mouse and keyboard.
#define LV_USE_SLIDER 0 |
Requires: lv_bar
#define LV_USE_SNAPSHOT 0 |
1: Enable API to take snapshot for object
#define LV_USE_SPAN 0 |
#define LV_USE_SPINBOX 0 |
#define LV_USE_SPINNER 0 |
#define LV_USE_ST7735 0 |
#define LV_USE_ST7789 0 |
#define LV_USE_ST7796 0 |
#define LV_USE_ST_LTDC 0 |
Driver for ST LTDC
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN |
Possible values
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN |
Possible values
#define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN |
Possible values
#define LV_USE_SVG 0 |
#define LV_USE_SVG_ANIMATION 0 |
#define LV_USE_SVG_DEBUG 0 |
#define LV_USE_SWITCH 0 |
#define LV_USE_SYSMON 0 |
1: Enable system monitor component
#define LV_USE_TABLE 0 |
#define LV_USE_TABVIEW 0 |
#define LV_USE_TEST 0 |
Enable emulated input devices, time emulation, and screenshot compares.
#define LV_USE_TEXTAREA 0 |
Requires: lv_label
#define LV_USE_TFT_ESPI 0 |
Interface for TFT_eSPI
#define LV_USE_THEME_DEFAULT 1 |
A simple, impressive and very complete theme
#define LV_USE_THEME_MONO 1 |
A theme designed for monochrome displays
#define LV_USE_THEME_SIMPLE 1 |
A very simple theme that is a good starting point for a custom theme
#define LV_USE_THORVG_EXTERNAL 0 |
Enable ThorVG by assuming that its installed and linked to the project
#define LV_USE_THORVG_INTERNAL 0 |
Enable ThorVG (vector graphics library) from the src/libs folder
#define LV_USE_TILEVIEW 0 |
#define LV_USE_TINY_TTF 0 |
Built-in TTF decoder
#define LV_USE_TJPGD 0 |
JPG + split JPG decoder library. Split JPG is a custom format optimized for embedded systems.
#define LV_USE_UEFI 0 |
LVGL UEFI backend
#define LV_USE_VECTOR_GRAPHIC 0 |
Enable Vector Graphic APIs
LV_USE_MATRIX = 1
#define LV_USE_VG_LITE_THORVG 0 |
#define LV_USE_WAYLAND 0 |
Use Wayland to open a window and handle input on Linux or BSD desktops
#define LV_USE_WIN 0 |
#define LV_USE_WINDOWS 0 |
LVGL Windows backend
#define LV_USE_X11 0 |
Use X11 to open window on Linux desktop and handle mouse and keyboard
#define LV_USE_XML 0 |
Enable loading XML UIs runtime
#define LV_WIDGETS_HAS_DEFAULT_VALUE 0 |
1: Causes these widgets to be given default values at creation time.