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