1 /** 2 * @file lv_conf.h 3 * Configuration file for v8.3.7 4 */ 5 6 /* clang-format off */ 7 #if 1 /*Set it to "1" to enable content*/ 8 9 #ifndef LV_CONF_H 10 #define LV_CONF_H 11 12 #include <stdint.h> 13 #include "RTE_Components.h" 14 15 /*==================== 16 COLOR SETTINGS 17 *====================*/ 18 19 /*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/ 20 #define LV_COLOR_DEPTH 16 21 22 /*Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)*/ 23 #define LV_COLOR_16_SWAP 0 24 25 /*Enable features to draw on transparent background. 26 *It's required if opa, and transform_* style properties are used. 27 *Can be also used if the UI is above another layer, e.g. an OSD menu or video player.*/ 28 #define LV_COLOR_SCREEN_TRANSP 0 29 30 /* Adjust color mix functions rounding. GPUs might calculate color mix (blending) differently. 31 * 0: round down, 64: round up from x.75, 128: round up from half, 192: round up from x.25, 254: round up */ 32 #define LV_COLOR_MIX_ROUND_OFS 0 33 34 /*Images pixels with this color will not be drawn if they are chroma keyed)*/ 35 #define LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00) /*pure green*/ 36 37 /*========================= 38 MEMORY SETTINGS 39 *=========================*/ 40 41 /*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/ 42 #define LV_MEM_CUSTOM 0 43 #if LV_MEM_CUSTOM == 0 44 /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/ 45 #define LV_MEM_SIZE (64U * 1024U) /*[bytes]*/ 46 47 /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/ 48 #define LV_MEM_ADR 0 /*0: unused*/ 49 /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/ 50 #if LV_MEM_ADR == 0 51 #undef LV_MEM_POOL_INCLUDE 52 #undef LV_MEM_POOL_ALLOC 53 #endif 54 55 #else /*LV_MEM_CUSTOM*/ 56 #define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/ 57 #define LV_MEM_CUSTOM_ALLOC malloc 58 #define LV_MEM_CUSTOM_FREE free 59 #define LV_MEM_CUSTOM_REALLOC realloc 60 #endif /*LV_MEM_CUSTOM*/ 61 62 /*Number of the intermediate memory buffer used during rendering and other internal processing mechanisms. 63 *You will see an error log message if there wasn't enough buffers. */ 64 #define LV_MEM_BUF_MAX_NUM 16 65 66 /*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/ 67 #define LV_MEMCPY_MEMSET_STD 0 68 69 /*==================== 70 HAL SETTINGS 71 *====================*/ 72 73 /*Default display refresh period. LVG will redraw changed areas with this period time*/ 74 #define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/ 75 76 /*Input device read period in milliseconds*/ 77 #define LV_INDEV_DEF_READ_PERIOD 30 /*[ms]*/ 78 79 /*Use a custom tick source that tells the elapsed time in milliseconds. 80 *It removes the need to manually update the tick with `lv_tick_inc()`)*/ 81 #ifdef __PERF_COUNTER__ 82 #define LV_TICK_CUSTOM 1 83 #if LV_TICK_CUSTOM 84 extern uint32_t SystemCoreClock; 85 #define LV_TICK_CUSTOM_INCLUDE "perf_counter.h" 86 #define LV_TICK_CUSTOM_SYS_TIME_EXPR get_system_ms() 87 #endif /*LV_TICK_CUSTOM*/ 88 #else 89 #define LV_TICK_CUSTOM 0 90 #if LV_TICK_CUSTOM 91 #define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/ 92 #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/ 93 /*If using lvgl as ESP32 component*/ 94 // #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h" 95 // #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL)) 96 #endif /*LV_TICK_CUSTOM*/ 97 #endif /*__PERF_COUNTER__*/ 98 99 /*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings. 100 *(Not so important, you can adjust it to modify default sizes and spaces)*/ 101 #define LV_DPI_DEF 130 /*[px/inch]*/ 102 103 /*======================= 104 * FEATURE CONFIGURATION 105 *=======================*/ 106 107 /*------------- 108 * Drawing 109 *-----------*/ 110 111 /*Enable complex draw engine. 112 *Required to draw shadow, gradient, rounded corners, circles, arc, skew lines, image transformations or any masks*/ 113 #define LV_DRAW_COMPLEX 1 114 #if LV_DRAW_COMPLEX != 0 115 116 /*Allow buffering some shadow calculation. 117 *LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius` 118 *Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/ 119 #define LV_SHADOW_CACHE_SIZE 0 120 121 /* Set number of maximally cached circle data. 122 * The circumference of 1/4 circle are saved for anti-aliasing 123 * radius * 4 bytes are used per circle (the most often used radiuses are saved) 124 * 0: to disable caching */ 125 #define LV_CIRCLE_CACHE_SIZE 4 126 #endif /*LV_DRAW_COMPLEX*/ 127 128 /** 129 * "Simple layers" are used when a widget has `style_opa < 255` to buffer the widget into a layer 130 * and blend it as an image with the given opacity. 131 * Note that `bg_opa`, `text_opa` etc don't require buffering into layer) 132 * The widget can be buffered in smaller chunks to avoid using large buffers. 133 * 134 * - LV_LAYER_SIMPLE_BUF_SIZE: [bytes] the optimal target buffer size. LVGL will try to allocate it 135 * - LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE: [bytes] used if `LV_LAYER_SIMPLE_BUF_SIZE` couldn't be allocated. 136 * 137 * Both buffer sizes are in bytes. 138 * "Transformed layers" (where transform_angle/zoom properties are used) use larger buffers 139 * and can't be drawn in chunks. So these settings affects only widgets with opacity. 140 */ 141 #define LV_LAYER_SIMPLE_BUF_SIZE (24 * 1024) 142 #define LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE (3 * 1024) 143 144 /*Default image cache size. Image caching keeps the images opened. 145 *If only the built-in image formats are used there is no real advantage of caching. (I.e. if no new image decoder is added) 146 *With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images. 147 *However the opened images might consume additional RAM. 148 *0: to disable caching*/ 149 #define LV_IMG_CACHE_DEF_SIZE 0 150 151 /*Number of stops allowed per gradient. Increase this to allow more stops. 152 *This adds (sizeof(lv_color_t) + 1) bytes per additional stop*/ 153 #define LV_GRADIENT_MAX_STOPS 2 154 155 /*Default gradient buffer size. 156 *When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them again. 157 *LV_GRAD_CACHE_DEF_SIZE sets the size of this cache in bytes. 158 *If the cache is too small the map will be allocated only while it's required for the drawing. 159 *0 mean no caching.*/ 160 #define LV_GRAD_CACHE_DEF_SIZE 0 161 162 /*Allow dithering the gradients (to achieve visual smooth color gradients on limited color depth display) 163 *LV_DITHER_GRADIENT implies allocating one or two more lines of the object's rendering surface 164 *The increase in memory consumption is (32 bits * object width) plus 24 bits * object width if using error diffusion */ 165 #define LV_DITHER_GRADIENT 0 166 #if LV_DITHER_GRADIENT 167 /*Add support for error diffusion dithering. 168 *Error diffusion dithering gets a much better visual result, but implies more CPU consumption and memory when drawing. 169 *The increase in memory consumption is (24 bits * object's width)*/ 170 #define LV_DITHER_ERROR_DIFFUSION 0 171 #endif 172 173 /*Maximum buffer size to allocate for rotation. 174 *Only used if software rotation is enabled in the display driver.*/ 175 #define LV_DISP_ROT_MAX_BUF (10*1024) 176 177 /*------------- 178 * GPU 179 *-----------*/ 180 181 /*Use STM32's DMA2D (aka Chrom Art) GPU*/ 182 #if LV_USE_GPU_STM32_DMA2D 183 /*Must be defined to include path of CMSIS header of target processor 184 e.g. "stm32f7xx.h" or "stm32f4xx.h"*/ 185 #define LV_GPU_DMA2D_CMSIS_INCLUDE 186 #endif 187 188 /*Use SWM341's DMA2D GPU*/ 189 #if LV_USE_GPU_SWM341_DMA2D 190 #define LV_GPU_SWM341_DMA2D_INCLUDE "SWM341.h" 191 #endif 192 193 /*Use NXP's PXP GPU iMX RTxxx platforms*/ 194 #if LV_USE_GPU_NXP_PXP 195 /*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c) 196 * and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS 197 * has to be defined in order to use FreeRTOS OSA, otherwise bare-metal implementation is selected. 198 *0: lv_gpu_nxp_pxp_init() has to be called manually before lv_init() 199 */ 200 #define LV_USE_GPU_NXP_PXP_AUTO_INIT 0 201 #endif 202 203 /*Use SDL renderer API*/ 204 #define LV_USE_GPU_SDL 0 205 #if LV_USE_GPU_SDL 206 #define LV_GPU_SDL_INCLUDE_PATH <SDL2/SDL.h> 207 /*Texture cache size, 8MB by default*/ 208 #define LV_GPU_SDL_LRU_SIZE (1024 * 1024 * 8) 209 /*Custom blend mode for mask drawing, disable if you need to link with older SDL2 lib*/ 210 #define LV_GPU_SDL_CUSTOM_BLEND_MODE (SDL_VERSION_ATLEAST(2, 0, 6)) 211 #endif 212 213 /*------------- 214 * Logging 215 *-----------*/ 216 217 /*Enable the log module*/ 218 #define LV_USE_LOG 0 219 #if LV_USE_LOG 220 221 /*How important log should be added: 222 *LV_LOG_LEVEL_TRACE A lot of logs to give detailed information 223 *LV_LOG_LEVEL_INFO Log important events 224 *LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem 225 *LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail 226 *LV_LOG_LEVEL_USER Only logs added by the user 227 *LV_LOG_LEVEL_NONE Do not log anything*/ 228 #define LV_LOG_LEVEL LV_LOG_LEVEL_USER 229 230 /*1: Print the log with 'printf'; 231 *0: User need to register a callback with `lv_log_register_print_cb()`*/ 232 #define LV_LOG_PRINTF 1 233 234 /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ 235 #define LV_LOG_TRACE_MEM 1 236 #define LV_LOG_TRACE_TIMER 1 237 #define LV_LOG_TRACE_INDEV 1 238 #define LV_LOG_TRACE_DISP_REFR 1 239 #define LV_LOG_TRACE_EVENT 1 240 #define LV_LOG_TRACE_OBJ_CREATE 1 241 #define LV_LOG_TRACE_LAYOUT 1 242 #define LV_LOG_TRACE_ANIM 1 243 244 #endif /*LV_USE_LOG*/ 245 246 /*------------- 247 * Asserts 248 *-----------*/ 249 250 /*Enable asserts if an operation is failed or an invalid data is found. 251 *If LV_USE_LOG is enabled an error message will be printed on failure*/ 252 #define LV_USE_ASSERT_NULL 1 /*Check if the parameter is NULL. (Very fast, recommended)*/ 253 #define LV_USE_ASSERT_MALLOC 1 /*Checks is the memory is successfully allocated or no. (Very fast, recommended)*/ 254 #define LV_USE_ASSERT_STYLE 0 /*Check if the styles are properly initialized. (Very fast, recommended)*/ 255 #define LV_USE_ASSERT_MEM_INTEGRITY 0 /*Check the integrity of `lv_mem` after critical operations. (Slow)*/ 256 #define LV_USE_ASSERT_OBJ 0 /*Check the object's type and existence (e.g. not deleted). (Slow)*/ 257 258 /*Add a custom handler when assert happens e.g. to restart the MCU*/ 259 #define LV_ASSERT_HANDLER_INCLUDE <stdint.h> 260 #define LV_ASSERT_HANDLER while(1); /*Halt by default*/ 261 262 /*------------- 263 * Others 264 *-----------*/ 265 266 /*1: Show CPU usage and FPS count*/ 267 #define LV_USE_PERF_MONITOR 0 268 #if LV_USE_PERF_MONITOR 269 #define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT 270 #endif 271 272 /*1: Show the used memory and the memory fragmentation 273 * Requires LV_MEM_CUSTOM = 0*/ 274 #define LV_USE_MEM_MONITOR 0 275 #if LV_USE_MEM_MONITOR 276 #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT 277 #endif 278 279 /*1: Draw random colored rectangles over the redrawn areas*/ 280 #define LV_USE_REFR_DEBUG 0 281 282 /*Change the built in (v)snprintf functions*/ 283 #define LV_SPRINTF_CUSTOM 0 284 #if LV_SPRINTF_CUSTOM 285 #define LV_SPRINTF_INCLUDE <stdio.h> 286 #define lv_snprintf snprintf 287 #define lv_vsnprintf vsnprintf 288 #else /*LV_SPRINTF_CUSTOM*/ 289 #define LV_SPRINTF_USE_FLOAT 0 290 #endif /*LV_SPRINTF_CUSTOM*/ 291 292 #define LV_USE_USER_DATA 1 293 294 /*Garbage Collector settings 295 *Used if lvgl is bound to higher level language and the memory is managed by that language*/ 296 #define LV_ENABLE_GC 0 297 #if LV_ENABLE_GC != 0 298 #define LV_GC_INCLUDE "gc.h" /*Include Garbage Collector related things*/ 299 #endif /*LV_ENABLE_GC*/ 300 301 /*===================== 302 * COMPILER SETTINGS 303 *====================*/ 304 305 /*For big endian systems set to 1*/ 306 #define LV_BIG_ENDIAN_SYSTEM 0 307 308 /*Define a custom attribute to `lv_tick_inc` function*/ 309 #define LV_ATTRIBUTE_TICK_INC 310 311 /*Define a custom attribute to `lv_timer_handler` function*/ 312 #define LV_ATTRIBUTE_TIMER_HANDLER 313 314 /*Define a custom attribute to `lv_disp_flush_ready` function*/ 315 #define LV_ATTRIBUTE_FLUSH_READY 316 317 /*Required alignment size for buffers*/ 318 #define LV_ATTRIBUTE_MEM_ALIGN_SIZE 4 319 320 /*Will be added where memories needs to be aligned (with -Os data might not be aligned to boundary by default). 321 * E.g. __attribute__((aligned(4)))*/ 322 #define LV_ATTRIBUTE_MEM_ALIGN __attribute__((aligned(4))) 323 324 /*Attribute to mark large constant arrays for example font's bitmaps*/ 325 #define LV_ATTRIBUTE_LARGE_CONST 326 327 /*Compiler prefix for a big array declaration in RAM*/ 328 #define LV_ATTRIBUTE_LARGE_RAM_ARRAY 329 330 /*Place performance critical functions into a faster memory (e.g RAM)*/ 331 #define LV_ATTRIBUTE_FAST_MEM 332 333 /*Prefix variables that are used in GPU accelerated operations, often these need to be placed in RAM sections that are DMA accessible*/ 334 #define LV_ATTRIBUTE_DMA 335 336 /*Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that 337 *should also appear on LVGL binding API such as Micropython.*/ 338 #define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/ 339 340 /*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/ 341 #define LV_USE_LARGE_COORD 0 342 343 /*================== 344 * FONT USAGE 345 *===================*/ 346 347 /*Montserrat fonts with ASCII range and some symbols using bpp = 4 348 *https://fonts.google.com/specimen/Montserrat*/ 349 #define LV_FONT_MONTSERRAT_8 0 350 #define LV_FONT_MONTSERRAT_10 0 351 #define LV_FONT_MONTSERRAT_12 1 352 #define LV_FONT_MONTSERRAT_14 1 353 #define LV_FONT_MONTSERRAT_16 1 354 #define LV_FONT_MONTSERRAT_18 0 355 #define LV_FONT_MONTSERRAT_20 0 356 #define LV_FONT_MONTSERRAT_22 0 357 #define LV_FONT_MONTSERRAT_24 0 358 #define LV_FONT_MONTSERRAT_26 0 359 #define LV_FONT_MONTSERRAT_28 0 360 #define LV_FONT_MONTSERRAT_30 0 361 #define LV_FONT_MONTSERRAT_32 0 362 #define LV_FONT_MONTSERRAT_34 0 363 #define LV_FONT_MONTSERRAT_36 0 364 #define LV_FONT_MONTSERRAT_38 0 365 #define LV_FONT_MONTSERRAT_40 0 366 #define LV_FONT_MONTSERRAT_42 0 367 #define LV_FONT_MONTSERRAT_44 0 368 #define LV_FONT_MONTSERRAT_46 0 369 #define LV_FONT_MONTSERRAT_48 0 370 371 /*Demonstrate special features*/ 372 #define LV_FONT_MONTSERRAT_12_SUBPX 0 373 #define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/ 374 #define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, Persian letters and all their forms*/ 375 #define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/ 376 377 /*Pixel perfect monospace fonts*/ 378 #define LV_FONT_UNSCII_8 0 379 #define LV_FONT_UNSCII_16 0 380 381 /*Optionally declare custom fonts here. 382 *You can use these fonts as default font too and they will be available globally. 383 *E.g. #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)*/ 384 #define LV_FONT_CUSTOM_DECLARE 385 386 /*Always set a default font*/ 387 #define LV_FONT_DEFAULT &lv_font_montserrat_14 388 389 /*Enable handling large font and/or fonts with a lot of characters. 390 *The limit depends on the font size, font face and bpp. 391 *Compiler error will be triggered if a font needs it.*/ 392 #define LV_FONT_FMT_TXT_LARGE 0 393 394 /*Enables/disables support for compressed fonts.*/ 395 #define LV_USE_FONT_COMPRESSED 0 396 397 /*Enable subpixel rendering*/ 398 #define LV_USE_FONT_SUBPX 0 399 #if LV_USE_FONT_SUBPX 400 /*Set the pixel order of the display. Physical order of RGB channels. Doesn't matter with "normal" fonts.*/ 401 #define LV_FONT_SUBPX_BGR 0 /*0: RGB; 1:BGR order*/ 402 #endif 403 404 /*Enable drawing placeholders when glyph dsc is not found*/ 405 #define LV_USE_FONT_PLACEHOLDER 1 406 407 /*================= 408 * TEXT SETTINGS 409 *=================*/ 410 411 /** 412 * Select a character encoding for strings. 413 * Your IDE or editor should have the same character encoding 414 * - LV_TXT_ENC_UTF8 415 * - LV_TXT_ENC_ASCII 416 */ 417 #define LV_TXT_ENC LV_TXT_ENC_UTF8 418 419 /*Can break (wrap) texts on these chars*/ 420 #define LV_TXT_BREAK_CHARS " ,.;:-_" 421 422 /*If a word is at least this long, will break wherever "prettiest" 423 *To disable, set to a value <= 0*/ 424 #define LV_TXT_LINE_BREAK_LONG_LEN 0 425 426 /*Minimum number of characters in a long word to put on a line before a break. 427 *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/ 428 #define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3 429 430 /*Minimum number of characters in a long word to put on a line after a break. 431 *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/ 432 #define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3 433 434 /*The control character to use for signalling text recoloring.*/ 435 #define LV_TXT_COLOR_CMD "#" 436 437 /*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts. 438 *The direction will be processed according to the Unicode Bidirectional Algorithm: 439 *https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/ 440 #define LV_USE_BIDI 0 441 #if LV_USE_BIDI 442 /*Set the default direction. Supported values: 443 *`LV_BASE_DIR_LTR` Left-to-Right 444 *`LV_BASE_DIR_RTL` Right-to-Left 445 *`LV_BASE_DIR_AUTO` detect texts base direction*/ 446 #define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO 447 #endif 448 449 /*Enable Arabic/Persian processing 450 *In these languages characters should be replaced with an other form based on their position in the text*/ 451 #define LV_USE_ARABIC_PERSIAN_CHARS 0 452 453 /*================== 454 * WIDGET USAGE 455 *================*/ 456 457 /*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/ 458 459 #define LV_USE_ARC 1 460 461 #define LV_USE_BAR 1 462 463 #define LV_USE_BTN 1 464 465 #define LV_USE_BTNMATRIX 1 466 467 #define LV_USE_CANVAS 1 468 469 #define LV_USE_CHECKBOX 1 470 471 #define LV_USE_DROPDOWN 1 /*Requires: lv_label*/ 472 473 #define LV_USE_IMG 1 /*Requires: lv_label*/ 474 475 #define LV_USE_LABEL 1 476 #if LV_USE_LABEL 477 #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ 478 #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ 479 #endif 480 481 #define LV_USE_LINE 1 482 483 #define LV_USE_ROLLER 1 /*Requires: lv_label*/ 484 #if LV_USE_ROLLER 485 #define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/ 486 #endif 487 488 #define LV_USE_SLIDER 1 /*Requires: lv_bar*/ 489 490 #define LV_USE_SWITCH 1 491 492 #define LV_USE_TEXTAREA 1 /*Requires: lv_label*/ 493 #if LV_USE_TEXTAREA != 0 494 #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/ 495 #endif 496 497 #define LV_USE_TABLE 1 498 499 /*================== 500 * EXTRA COMPONENTS 501 *==================*/ 502 503 /*----------- 504 * Widgets 505 *----------*/ 506 #define LV_USE_ANIMIMG 1 507 508 #define LV_USE_CALENDAR 1 509 #if LV_USE_CALENDAR 510 #define LV_CALENDAR_WEEK_STARTS_MONDAY 0 511 #if LV_CALENDAR_WEEK_STARTS_MONDAY 512 #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"} 513 #else 514 #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"} 515 #endif 516 517 #define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} 518 #define LV_USE_CALENDAR_HEADER_ARROW 1 519 #define LV_USE_CALENDAR_HEADER_DROPDOWN 1 520 #endif /*LV_USE_CALENDAR*/ 521 522 #define LV_USE_CHART 1 523 524 #define LV_USE_COLORWHEEL 1 525 526 #define LV_USE_IMGBTN 1 527 528 #define LV_USE_KEYBOARD 1 529 530 #define LV_USE_LED 1 531 532 #define LV_USE_LIST 1 533 534 #define LV_USE_MENU 1 535 536 #define LV_USE_METER 1 537 538 #define LV_USE_MSGBOX 1 539 540 #define LV_USE_SPAN 1 541 #if LV_USE_SPAN 542 /*A line text can contain maximum num of span descriptor */ 543 #define LV_SPAN_SNIPPET_STACK_SIZE 64 544 #endif 545 546 #define LV_USE_SPINBOX 1 547 548 #define LV_USE_SPINNER 1 549 550 #define LV_USE_TABVIEW 1 551 552 #define LV_USE_TILEVIEW 1 553 554 #define LV_USE_WIN 1 555 556 /*----------- 557 * Themes 558 *----------*/ 559 560 #ifdef RTE_GRAPHICS_LVGL_USE_EXTRA_THEMES 561 /*A simple, impressive and very complete theme*/ 562 #define LV_USE_THEME_DEFAULT 1 563 #if LV_USE_THEME_DEFAULT 564 565 /*0: Light mode; 1: Dark mode*/ 566 #define LV_THEME_DEFAULT_DARK 0 567 568 /*1: Enable grow on press*/ 569 #define LV_THEME_DEFAULT_GROW 1 570 571 /*Default transition time in [ms]*/ 572 #define LV_THEME_DEFAULT_TRANSITION_TIME 80 573 #endif /*LV_USE_THEME_DEFAULT*/ 574 575 /*A very simple theme that is a good starting point for a custom theme*/ 576 #define LV_USE_THEME_BASIC 1 577 578 /*A theme designed for monochrome displays*/ 579 #define LV_USE_THEME_MONO 1 580 #else 581 #define LV_USE_THEME_DEFAULT 0 582 #define LV_USE_THEME_BASIC 0 583 #define LV_USE_THEME_MONO 0 584 #endif 585 586 /*----------- 587 * Layouts 588 *----------*/ 589 590 /*A layout similar to Flexbox in CSS.*/ 591 #define LV_USE_FLEX 1 592 593 /*A layout similar to Grid in CSS.*/ 594 #define LV_USE_GRID 1 595 596 /*----------- 597 * Others 598 *----------*/ 599 600 /*1: Enable API to take snapshot for object*/ 601 #define LV_USE_SNAPSHOT 0 602 603 /*1: Enable Monkey test*/ 604 #define LV_USE_MONKEY 0 605 606 /*1: Enable grid navigation*/ 607 #define LV_USE_GRIDNAV 0 608 609 /*1: Enable lv_obj fragment*/ 610 #define LV_USE_FRAGMENT 0 611 612 /*1: Support using images as font in label or span widgets */ 613 #define LV_USE_IMGFONT 0 614 615 /*1: Enable a published subscriber based messaging system */ 616 #define LV_USE_MSG 0 617 618 /*1: Enable Pinyin input method*/ 619 /*Requires: lv_keyboard*/ 620 #if LV_USE_IME_PINYIN 621 /*1: Use default thesaurus*/ 622 /*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/ 623 #define LV_IME_PINYIN_USE_DEFAULT_DICT 1 624 /*Set the maximum number of candidate panels that can be displayed*/ 625 /*This needs to be adjusted according to the size of the screen*/ 626 #define LV_IME_PINYIN_CAND_TEXT_NUM 6 627 628 /*Use 9 key input(k9)*/ 629 #define LV_IME_PINYIN_USE_K9_MODE 1 630 #if LV_IME_PINYIN_USE_K9_MODE == 1 631 #define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3 632 #endif // LV_IME_PINYIN_USE_K9_MODE 633 #endif 634 635 /*================== 636 * EXAMPLES 637 *==================*/ 638 639 /*Enable the examples to be built with the library*/ 640 #define LV_BUILD_EXAMPLES 1 641 642 643 /*--END OF LV_CONF_H--*/ 644 645 #endif /*LV_CONF_H*/ 646 647 #endif /*End of "Content enable"*/ 648