1 /** 2 * @file lv_conf.h 3 * Configuration file for v8.3.11 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 80 /*Use a custom tick source that tells the elapsed time in milliseconds. 81 *It removes the need to manually update the tick with `lv_tick_inc()`)*/ 82 #ifdef __PERF_COUNTER__ 83 #define LV_TICK_CUSTOM 1 84 #if LV_TICK_CUSTOM 85 extern uint32_t SystemCoreClock; 86 #define LV_TICK_CUSTOM_INCLUDE "perf_counter.h" 87 #define LV_TICK_CUSTOM_SYS_TIME_EXPR get_system_ms() 88 #endif /*LV_TICK_CUSTOM*/ 89 #else 90 #define LV_TICK_CUSTOM 0 91 #if LV_TICK_CUSTOM 92 #define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/ 93 #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/ 94 /*If using lvgl as ESP32 component*/ 95 // #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h" 96 // #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL)) 97 #endif /*LV_TICK_CUSTOM*/ 98 #endif /*__PERF_COUNTER__*/ 99 100 101 /*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings. 102 *(Not so important, you can adjust it to modify default sizes and spaces)*/ 103 #define LV_DPI_DEF 130 /*[px/inch]*/ 104 105 /*======================= 106 * FEATURE CONFIGURATION 107 *=======================*/ 108 109 /*------------- 110 * Drawing 111 *-----------*/ 112 113 /*Enable complex draw engine. 114 *Required to draw shadow, gradient, rounded corners, circles, arc, skew lines, image transformations or any masks*/ 115 #define LV_DRAW_COMPLEX 1 116 #if LV_DRAW_COMPLEX != 0 117 118 /*Allow buffering some shadow calculation. 119 *LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius` 120 *Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/ 121 #define LV_SHADOW_CACHE_SIZE 0 122 123 /* Set number of maximally cached circle data. 124 * The circumference of 1/4 circle are saved for anti-aliasing 125 * radius * 4 bytes are used per circle (the most often used radiuses are saved) 126 * 0: to disable caching */ 127 #define LV_CIRCLE_CACHE_SIZE 4 128 #endif /*LV_DRAW_COMPLEX*/ 129 130 /** 131 * "Simple layers" are used when a widget has `style_opa < 255` to buffer the widget into a layer 132 * and blend it as an image with the given opacity. 133 * Note that `bg_opa`, `text_opa` etc don't require buffering into layer) 134 * The widget can be buffered in smaller chunks to avoid using large buffers. 135 * 136 * - LV_LAYER_SIMPLE_BUF_SIZE: [bytes] the optimal target buffer size. LVGL will try to allocate it 137 * - LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE: [bytes] used if `LV_LAYER_SIMPLE_BUF_SIZE` couldn't be allocated. 138 * 139 * Both buffer sizes are in bytes. 140 * "Transformed layers" (where transform_angle/zoom properties are used) use larger buffers 141 * and can't be drawn in chunks. So these settings affects only widgets with opacity. 142 */ 143 #define LV_LAYER_SIMPLE_BUF_SIZE (24 * 1024) 144 #define LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE (3 * 1024) 145 146 /*Default image cache size. Image caching keeps the images opened. 147 *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) 148 *With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images. 149 *However the opened images might consume additional RAM. 150 *0: to disable caching*/ 151 #define LV_IMG_CACHE_DEF_SIZE 0 152 153 /*Number of stops allowed per gradient. Increase this to allow more stops. 154 *This adds (sizeof(lv_color_t) + 1) bytes per additional stop*/ 155 #define LV_GRADIENT_MAX_STOPS 2 156 157 /*Default gradient buffer size. 158 *When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them again. 159 *LV_GRAD_CACHE_DEF_SIZE sets the size of this cache in bytes. 160 *If the cache is too small the map will be allocated only while it's required for the drawing. 161 *0 mean no caching.*/ 162 #define LV_GRAD_CACHE_DEF_SIZE 0 163 164 /*Allow dithering the gradients (to achieve visual smooth color gradients on limited color depth display) 165 *LV_DITHER_GRADIENT implies allocating one or two more lines of the object's rendering surface 166 *The increase in memory consumption is (32 bits * object width) plus 24 bits * object width if using error diffusion */ 167 #define LV_DITHER_GRADIENT 0 168 #if LV_DITHER_GRADIENT 169 /*Add support for error diffusion dithering. 170 *Error diffusion dithering gets a much better visual result, but implies more CPU consumption and memory when drawing. 171 *The increase in memory consumption is (24 bits * object's width)*/ 172 #define LV_DITHER_ERROR_DIFFUSION 0 173 #endif 174 175 /*Maximum buffer size to allocate for rotation. 176 *Only used if software rotation is enabled in the display driver.*/ 177 #define LV_DISP_ROT_MAX_BUF (10*1024) 178 179 /*------------- 180 * GPU 181 *-----------*/ 182 183 184 /*Use STM32's DMA2D (aka Chrom Art) GPU*/ 185 #if LV_USE_GPU_STM32_DMA2D 186 /*Must be defined to include path of CMSIS header of target processor 187 e.g. "stm32f7xx.h" or "stm32f4xx.h"*/ 188 #define LV_GPU_DMA2D_CMSIS_INCLUDE 189 #endif 190 191 /*Enable RA6M3 G2D GPU*/ 192 #if LV_USE_GPU_RA6M3_G2D 193 /*include path of target processor 194 e.g. "hal_data.h"*/ 195 #define LV_GPU_RA6M3_G2D_INCLUDE "hal_data.h" 196 #endif 197 198 /*Use SWM341's DMA2D GPU*/ 199 #if LV_USE_GPU_SWM341_DMA2D 200 #define LV_GPU_SWM341_DMA2D_INCLUDE "SWM341.h" 201 #endif 202 203 /*Use NXP's PXP GPU iMX RTxxx platforms*/ 204 #if LV_USE_GPU_NXP_PXP 205 /*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c) 206 * and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS 207 * has to be defined in order to use FreeRTOS OSA, otherwise bare-metal implementation is selected. 208 *0: lv_gpu_nxp_pxp_init() has to be called manually before lv_init() 209 */ 210 #define LV_USE_GPU_NXP_PXP_AUTO_INIT 0 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_WARN 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 0 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 * Layouts 587 *----------*/ 588 589 /*A layout similar to Flexbox in CSS.*/ 590 #define LV_USE_FLEX 1 591 592 /*A layout similar to Grid in CSS.*/ 593 #define LV_USE_GRID 1 594 595 /*--------------------- 596 * 3rd party libraries 597 *--------------------*/ 598 599 /*File system interfaces for common APIs */ 600 601 /*API for fopen, fread, etc*/ 602 #define LV_USE_FS_STDIO 0 603 #if LV_USE_FS_STDIO 604 #define LV_FS_STDIO_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ 605 #define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ 606 #define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ 607 #endif 608 609 /*API for open, read, etc*/ 610 #define LV_USE_FS_POSIX 0 611 #if LV_USE_FS_POSIX 612 #define LV_FS_POSIX_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ 613 #define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ 614 #define LV_FS_POSIX_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ 615 #endif 616 617 /*API for CreateFile, ReadFile, etc*/ 618 #define LV_USE_FS_WIN32 0 619 #if LV_USE_FS_WIN32 620 #define LV_FS_WIN32_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ 621 #define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ 622 #define LV_FS_WIN32_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ 623 #endif 624 625 /*API for FATFS (needs to be added separately). Uses f_open, f_read, etc*/ 626 #define LV_USE_FS_FATFS 0 627 #if LV_USE_FS_FATFS 628 #define LV_FS_FATFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ 629 #define LV_FS_FATFS_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ 630 #endif 631 632 /*API for LittleFS (library needs to be added separately). Uses lfs_file_open, lfs_file_read, etc*/ 633 #define LV_USE_FS_LITTLEFS 0 634 #if LV_USE_FS_LITTLEFS 635 #define LV_FS_LITTLEFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ 636 #define LV_FS_LITTLEFS_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ 637 #endif 638 639 640 641 /*FreeType library*/ 642 #if LV_USE_FREETYPE 643 /*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/ 644 #define LV_FREETYPE_CACHE_SIZE (16 * 1024) 645 #if LV_FREETYPE_CACHE_SIZE >= 0 646 /* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */ 647 /* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */ 648 /* if font size >= 256, must be configured as image cache */ 649 #define LV_FREETYPE_SBIT_CACHE 0 650 /* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */ 651 /* (0:use system defaults) */ 652 #define LV_FREETYPE_CACHE_FT_FACES 0 653 #define LV_FREETYPE_CACHE_FT_SIZES 0 654 #endif 655 #endif 656 657 /*Tiny TTF library*/ 658 #if LV_USE_TINY_TTF 659 /*Load TTF data from files*/ 660 #define LV_TINY_TTF_FILE_SUPPORT 0 661 #endif 662 663 664 /*FFmpeg library for image decoding and playing videos 665 *Supports all major image formats so do not enable other image decoder with it*/ 666 #if LV_USE_FFMPEG 667 /*Dump input information to stderr*/ 668 #define LV_FFMPEG_DUMP_FORMAT 0 669 #endif 670 671 /*----------- 672 * Others 673 *----------*/ 674 675 /*1: Enable Pinyin input method*/ 676 /*Requires: lv_keyboard*/ 677 #if LV_USE_IME_PINYIN 678 /*1: Use default thesaurus*/ 679 /*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/ 680 #define LV_IME_PINYIN_USE_DEFAULT_DICT 1 681 /*Set the maximum number of candidate panels that can be displayed*/ 682 /*This needs to be adjusted according to the size of the screen*/ 683 #define LV_IME_PINYIN_CAND_TEXT_NUM 6 684 685 /*Use 9 key input(k9)*/ 686 #define LV_IME_PINYIN_USE_K9_MODE 1 687 #if LV_IME_PINYIN_USE_K9_MODE == 1 688 #define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3 689 #endif // LV_IME_PINYIN_USE_K9_MODE 690 #endif 691 692 /*================== 693 * EXAMPLES 694 *==================*/ 695 696 /*Enable the examples to be built with the library*/ 697 #define LV_BUILD_EXAMPLES 1 698 699 /*=================== 700 * DEMO USAGE 701 ====================*/ 702 703 /*Show some widget. It might be required to increase `LV_MEM_SIZE` */ 704 #if LV_USE_DEMO_WIDGETS 705 #define LV_DEMO_WIDGETS_SLIDESHOW 0 706 #endif 707 708 /*Benchmark your system*/ 709 #if LV_USE_DEMO_BENCHMARK 710 /*Use RGB565A8 images with 16 bit color depth instead of ARGB8565*/ 711 #define LV_DEMO_BENCHMARK_RGB565A8 1 712 #endif 713 714 /*--END OF LV_CONF_H--*/ 715 716 #endif /*LV_CONF_H*/ 717 718 #endif /*End of "Content enable"*/ 719