1 /**
2  * @file lv_conf.h
3  * Configuration file for v7.6.1-dev
4  */
5 
6 /*
7  * COPY THIS FILE AS `lv_conf.h` NEXT TO the `lvgl` FOLDER
8  */
9 
10 #if 0 /*Set it to "1" to enable content*/
11 
12 #ifndef LV_CONF_H
13 #define LV_CONF_H
14 /* clang-format off */
15 
16 #include <stdint.h>
17 
18 /*====================
19    Graphical settings
20  *====================*/
21 
22 /* Maximal horizontal and vertical resolution to support by the library.*/
23 #define LV_HOR_RES_MAX          (480)
24 #define LV_VER_RES_MAX          (320)
25 
26 /* Color depth:
27  * - 1:  1 byte per pixel
28  * - 8:  RGB332
29  * - 16: RGB565
30  * - 32: ARGB8888
31  */
32 #define LV_COLOR_DEPTH     16
33 
34 /* Swap the 2 bytes of RGB565 color.
35  * Useful if the display has a 8 bit interface (e.g. SPI)*/
36 #define LV_COLOR_16_SWAP   0
37 
38 /* 1: Enable screen transparency.
39  * Useful for OSD or other overlapping GUIs.
40  * Requires `LV_COLOR_DEPTH = 32` colors and the screen's style should be modified: `style.body.opa = ...`*/
41 #define LV_COLOR_SCREEN_TRANSP    0
42 
43 /*Images pixels with this color will not be drawn (with chroma keying)*/
44 #define LV_COLOR_TRANSP    LV_COLOR_LIME         /*LV_COLOR_LIME: pure green*/
45 
46 /* Enable anti-aliasing (lines, and radiuses will be smoothed) */
47 #define LV_ANTIALIAS        1
48 
49 /* Default display refresh period.
50  * Can be changed in the display driver (`lv_disp_drv_t`).*/
51 #define LV_DISP_DEF_REFR_PERIOD      30      /*[ms]*/
52 
53 /* Dot Per Inch: used to initialize default sizes.
54  * E.g. a button with width = LV_DPI / 2 -> half inch wide
55  * (Not so important, you can adjust it to modify default sizes and spaces)*/
56 #define LV_DPI              130     /*[px]*/
57 
58 /* The the real width of the display changes some default values:
59  * default object sizes, layout of examples, etc.
60  * According to the width of the display (hor. res. / dpi)
61  * the displays fall in 4 categories.
62  * The 4th is extra large which has no upper limit so not listed here
63  * The upper limit of the categories are set below in 0.1 inch unit.
64  */
65 #define LV_DISP_SMALL_LIMIT  30
66 #define LV_DISP_MEDIUM_LIMIT 50
67 #define LV_DISP_LARGE_LIMIT  70
68 
69 /* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
70 typedef int16_t lv_coord_t;
71 
72 /*=========================
73    Memory manager settings
74  *=========================*/
75 
76 /* LittelvGL's internal memory manager's settings.
77  * The graphical objects and other related data are stored here. */
78 
79 /* 1: use custom malloc/free, 0: use the built-in `lv_mem_alloc` and `lv_mem_free` */
80 #define LV_MEM_CUSTOM      0
81 #if LV_MEM_CUSTOM == 0
82 /* Size of the memory used by `lv_mem_alloc` in bytes (>= 2kB)*/
83 #  define LV_MEM_SIZE    (32U * 1024U)
84 
85 /* Complier prefix for a big array declaration */
86 #  define LV_MEM_ATTR
87 
88 /* Set an address for the memory pool instead of allocating it as an array.
89  * Can be in external SRAM too. */
90 #  define LV_MEM_ADR          0
91 
92 /* Automatically defrag. on free. Defrag. means joining the adjacent free cells. */
93 #  define LV_MEM_AUTO_DEFRAG  1
94 #else       /*LV_MEM_CUSTOM*/
95 #  define LV_MEM_CUSTOM_INCLUDE <stdlib.h>   /*Header for the dynamic memory function*/
96 #  define LV_MEM_CUSTOM_ALLOC   malloc       /*Wrapper to malloc*/
97 #  define LV_MEM_CUSTOM_FREE    free         /*Wrapper to free*/
98 #endif     /*LV_MEM_CUSTOM*/
99 
100 /* Use the standard memcpy and memset instead of LVGL's own functions.
101  * The standard functions might or might not be faster depending on their implementation. */
102 #define LV_MEMCPY_MEMSET_STD    0
103 
104 /* Garbage Collector settings
105  * Used if lvgl is binded to higher level language and the memory is managed by that language */
106 #define LV_ENABLE_GC 0
107 #if LV_ENABLE_GC != 0
108 #  define LV_GC_INCLUDE "gc.h"                           /*Include Garbage Collector related things*/
109 #  define LV_MEM_CUSTOM_REALLOC   your_realloc           /*Wrapper to realloc*/
110 #  define LV_MEM_CUSTOM_GET_SIZE  your_mem_get_size      /*Wrapper to lv_mem_get_size*/
111 #endif /* LV_ENABLE_GC */
112 
113 /*=======================
114    Input device settings
115  *=======================*/
116 
117 /* Input device default settings.
118  * Can be changed in the Input device driver (`lv_indev_drv_t`)*/
119 
120 /* Input device read period in milliseconds */
121 #define LV_INDEV_DEF_READ_PERIOD          30
122 
123 /* Drag threshold in pixels */
124 #define LV_INDEV_DEF_DRAG_LIMIT           10
125 
126 /* Drag throw slow-down in [%]. Greater value -> faster slow-down */
127 #define LV_INDEV_DEF_DRAG_THROW           10
128 
129 /* Long press time in milliseconds.
130  * Time to send `LV_EVENT_LONG_PRESSSED`) */
131 #define LV_INDEV_DEF_LONG_PRESS_TIME      400
132 
133 /* Repeated trigger period in long press [ms]
134  * Time between `LV_EVENT_LONG_PRESSED_REPEAT */
135 #define LV_INDEV_DEF_LONG_PRESS_REP_TIME  100
136 
137 
138 /* Gesture threshold in pixels */
139 #define LV_INDEV_DEF_GESTURE_LIMIT        50
140 
141 /* Gesture min velocity at release before swipe (pixels)*/
142 #define LV_INDEV_DEF_GESTURE_MIN_VELOCITY 3
143 
144 /*==================
145  * Feature usage
146  *==================*/
147 
148 /*1: Enable the Animations */
149 #define LV_USE_ANIMATION        1
150 #if LV_USE_ANIMATION
151 
152 /*Declare the type of the user data of animations (can be e.g. `void *`, `int`, `struct`)*/
153 typedef void * lv_anim_user_data_t;
154 
155 #endif
156 
157 /* 1: Enable shadow drawing on rectangles*/
158 #define LV_USE_SHADOW           1
159 #if LV_USE_SHADOW
160 /* Allow buffering some shadow calculation
161  * LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer,
162  * where shadow size is `shadow_width + radius`
163  * Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/
164 #define LV_SHADOW_CACHE_SIZE    0
165 #endif
166 
167 /*1: enable outline drawing on rectangles*/
168 #define LV_USE_OUTLINE  1
169 
170 /*1: enable pattern drawing on rectangles*/
171 #define LV_USE_PATTERN  1
172 
173 /*1: enable value string drawing on rectangles*/
174 #define LV_USE_VALUE_STR    1
175 
176 /* 1: Use other blend modes than normal (`LV_BLEND_MODE_...`)*/
177 #define LV_USE_BLEND_MODES      1
178 
179 /* 1: Use the `opa_scale` style property to set the opacity of an object and its children at once*/
180 #define LV_USE_OPA_SCALE        1
181 
182 /* 1: Use image zoom and rotation*/
183 #define LV_USE_IMG_TRANSFORM    1
184 
185 /* 1: Enable object groups (for keyboard/encoder navigation) */
186 #define LV_USE_GROUP            1
187 #if LV_USE_GROUP
188 typedef void * lv_group_user_data_t;
189 #endif  /*LV_USE_GROUP*/
190 
191 /* 1: Enable GPU interface*/
192 #define LV_USE_GPU              1   /*Only enables `gpu_fill_cb` and `gpu_blend_cb` in the disp. drv- */
193 #define LV_USE_GPU_STM32_DMA2D  0
194 /*If enabling LV_USE_GPU_STM32_DMA2D, LV_GPU_DMA2D_CMSIS_INCLUDE must be defined to include path of CMSIS header of target processor
195 e.g. "stm32f769xx.h" or "stm32f429xx.h" */
196 #define LV_GPU_DMA2D_CMSIS_INCLUDE
197 
198 /* 1: Enable file system (might be required for images */
199 #define LV_USE_FILESYSTEM       1
200 #if LV_USE_FILESYSTEM
201 /*Declare the type of the user data of file system drivers (can be e.g. `void *`, `int`, `struct`)*/
202 typedef void * lv_fs_drv_user_data_t;
203 #endif
204 
205 /*1: Add a `user_data` to drivers and objects*/
206 #define LV_USE_USER_DATA        0
207 
208 /*1: Show CPU usage and FPS count in the right bottom corner*/
209 #define LV_USE_PERF_MONITOR     0
210 
211 /*1: Use the functions and types from the older API if possible */
212 #define LV_USE_API_EXTENSION_V6  1
213 #define LV_USE_API_EXTENSION_V7  1
214 
215 /*========================
216  * Image decoder and cache
217  *========================*/
218 
219 /* 1: Enable indexed (palette) images */
220 #define LV_IMG_CF_INDEXED       1
221 
222 /* 1: Enable alpha indexed images */
223 #define LV_IMG_CF_ALPHA         1
224 
225 /* Default image cache size. Image caching keeps the images opened.
226  * If only the built-in image formats are used there is no real advantage of caching.
227  * (I.e. no new image decoder is added)
228  * With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
229  * However the opened images might consume additional RAM.
230  * LV_IMG_CACHE_DEF_SIZE must be >= 1 */
231 #define LV_IMG_CACHE_DEF_SIZE       1
232 
233 /*Declare the type of the user data of image decoder (can be e.g. `void *`, `int`, `struct`)*/
234 typedef void * lv_img_decoder_user_data_t;
235 
236 /*=====================
237  *  Compiler settings
238  *====================*/
239 
240 /* For big endian systems set to 1 */
241 #define LV_BIG_ENDIAN_SYSTEM    0
242 
243 /* Define a custom attribute to `lv_tick_inc` function */
244 #define LV_ATTRIBUTE_TICK_INC
245 
246 /* Define a custom attribute to `lv_task_handler` function */
247 #define LV_ATTRIBUTE_TASK_HANDLER
248 
249 /* Define a custom attribute to `lv_disp_flush_ready` function */
250 #define LV_ATTRIBUTE_FLUSH_READY
251 
252 /* With size optimization (-Os) the compiler might not align data to
253  * 4 or 8 byte boundary. This alignment will be explicitly applied where needed.
254  * E.g. __attribute__((aligned(4))) */
255 #define LV_ATTRIBUTE_MEM_ALIGN
256 
257 /* Attribute to mark large constant arrays for example
258  * font's bitmaps */
259 #define LV_ATTRIBUTE_LARGE_CONST
260 
261 /* Prefix performance critical functions to place them into a faster memory (e.g RAM)
262  * Uses 15-20 kB extra memory */
263 #define LV_ATTRIBUTE_FAST_MEM
264 
265 /* Export integer constant to binding.
266  * This macro is used with constants in the form of LV_<CONST> that
267  * should also appear on lvgl binding API such as Micropython
268  *
269  * The default value just prevents a GCC warning.
270  */
271 #define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning
272 
273 /* Prefix variables that are used in GPU accelerated operations, often these need to be
274  * placed in RAM sections that are DMA accessible */
275 #define LV_ATTRIBUTE_DMA
276 
277 /*===================
278  *  HAL settings
279  *==================*/
280 
281 /* 1: use a custom tick source.
282  * It removes the need to manually update the tick with `lv_tick_inc`) */
283 #define LV_TICK_CUSTOM     0
284 #if LV_TICK_CUSTOM == 1
285 #define LV_TICK_CUSTOM_INCLUDE  "Arduino.h"         /*Header for the system time function*/
286 #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis())     /*Expression evaluating to current system time in ms*/
287 #endif   /*LV_TICK_CUSTOM*/
288 
289 typedef void * lv_disp_drv_user_data_t;             /*Type of user data in the display driver*/
290 typedef void * lv_indev_drv_user_data_t;            /*Type of user data in the input device driver*/
291 
292 /*================
293  * Log settings
294  *===============*/
295 
296 /*1: Enable the log module*/
297 #define LV_USE_LOG      0
298 #if LV_USE_LOG
299 /* How important log should be added:
300  * LV_LOG_LEVEL_TRACE       A lot of logs to give detailed information
301  * LV_LOG_LEVEL_INFO        Log important events
302  * LV_LOG_LEVEL_WARN        Log if something unwanted happened but didn't cause a problem
303  * LV_LOG_LEVEL_ERROR       Only critical issue, when the system may fail
304  * LV_LOG_LEVEL_NONE        Do not log anything
305  */
306 #  define LV_LOG_LEVEL    LV_LOG_LEVEL_WARN
307 
308 /* 1: Print the log with 'printf';
309  * 0: user need to register a callback with `lv_log_register_print_cb`*/
310 #  define LV_LOG_PRINTF   0
311 #endif  /*LV_USE_LOG*/
312 
313 /*=================
314  * Debug settings
315  *================*/
316 
317 /* If Debug is enabled LittelvGL validates the parameters of the functions.
318  * If an invalid parameter is found an error log message is printed and
319  * the MCU halts at the error. (`LV_USE_LOG` should be enabled)
320  * If you are debugging the MCU you can pause
321  * the debugger to see exactly where  the issue is.
322  *
323  * The behavior of asserts can be overwritten by redefining them here.
324  * E.g. #define LV_ASSERT_MEM(p)  <my_assert_code>
325  */
326 #define LV_USE_DEBUG        1
327 #if LV_USE_DEBUG
328 
329 /*Check if the parameter is NULL. (Quite fast) */
330 #define LV_USE_ASSERT_NULL      1
331 
332 /*Checks is the memory is successfully allocated or no. (Quite fast)*/
333 #define LV_USE_ASSERT_MEM       1
334 
335 /*Check the integrity of `lv_mem` after critical operations. (Slow)*/
336 #define LV_USE_ASSERT_MEM_INTEGRITY       0
337 
338 /* Check the strings.
339  * Search for NULL, very long strings, invalid characters, and unnatural repetitions. (Slow)
340  * If disabled `LV_USE_ASSERT_NULL` will be performed instead (if it's enabled) */
341 #define LV_USE_ASSERT_STR       0
342 
343 /* Check NULL, the object's type and existence (e.g. not deleted). (Quite slow)
344  * If disabled `LV_USE_ASSERT_NULL` will be performed instead (if it's enabled) */
345 #define LV_USE_ASSERT_OBJ       0
346 
347 /*Check if the styles are properly initialized. (Fast)*/
348 #define LV_USE_ASSERT_STYLE     0
349 
350 #endif /*LV_USE_DEBUG*/
351 
352 /*==================
353  *    FONT USAGE
354  *===================*/
355 
356 /* The built-in fonts contains the ASCII range and some Symbols with  4 bit-per-pixel.
357  * The symbols are available via `LV_SYMBOL_...` defines
358  * More info about fonts: https://docs.lvgl.io/v7/en/html/overview/font.html
359  * To create a new font go to: https://lvgl.com/ttf-font-to-c-array
360  */
361 
362 /* Montserrat fonts with bpp = 4
363  * https://fonts.google.com/specimen/Montserrat  */
364 #define LV_FONT_MONTSERRAT_8     0
365 #define LV_FONT_MONTSERRAT_10    0
366 #define LV_FONT_MONTSERRAT_12    0
367 #define LV_FONT_MONTSERRAT_14    1
368 #define LV_FONT_MONTSERRAT_16    0
369 #define LV_FONT_MONTSERRAT_18    0
370 #define LV_FONT_MONTSERRAT_20    0
371 #define LV_FONT_MONTSERRAT_22    0
372 #define LV_FONT_MONTSERRAT_24    0
373 #define LV_FONT_MONTSERRAT_26    0
374 #define LV_FONT_MONTSERRAT_28    0
375 #define LV_FONT_MONTSERRAT_30    0
376 #define LV_FONT_MONTSERRAT_32    0
377 #define LV_FONT_MONTSERRAT_34    0
378 #define LV_FONT_MONTSERRAT_36    0
379 #define LV_FONT_MONTSERRAT_38    0
380 #define LV_FONT_MONTSERRAT_40    0
381 #define LV_FONT_MONTSERRAT_42    0
382 #define LV_FONT_MONTSERRAT_44    0
383 #define LV_FONT_MONTSERRAT_46    0
384 #define LV_FONT_MONTSERRAT_48    0
385 
386 /* Demonstrate special features */
387 #define LV_FONT_MONTSERRAT_12_SUBPX      0
388 #define LV_FONT_MONTSERRAT_28_COMPRESSED 0  /*bpp = 3*/
389 #define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0  /*Hebrew, Arabic, PErisan letters and all their forms*/
390 #define LV_FONT_SIMSUN_16_CJK            0  /*1000 most common CJK radicals*/
391 
392 /*Pixel perfect monospace font
393  * http://pelulamu.net/unscii/ */
394 #define LV_FONT_UNSCII_8     0
395 
396 /* Optionally declare your custom fonts here.
397  * You can use these fonts as default font too
398  * and they will be available globally. E.g.
399  * #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \
400  *                                LV_FONT_DECLARE(my_font_2)
401  */
402 #define LV_FONT_CUSTOM_DECLARE
403 
404 /* Enable it if you have fonts with a lot of characters.
405  * The limit depends on the font size, font face and bpp
406  * but with > 10,000 characters if you see issues probably you need to enable it.*/
407 #define LV_FONT_FMT_TXT_LARGE   0
408 
409 /* Enables/disables support for compressed fonts. If it's disabled, compressed
410  * glyphs cannot be processed by the library and won't be rendered.
411  */
412 #define LV_USE_FONT_COMPRESSED 1
413 
414 /* Enable subpixel rendering */
415 #define LV_USE_FONT_SUBPX 1
416 #if LV_USE_FONT_SUBPX
417 /* Set the pixel order of the display.
418  * Important only if "subpx fonts" are used.
419  * With "normal" font it doesn't matter.
420  */
421 #define LV_FONT_SUBPX_BGR    0
422 #endif
423 
424 /*Declare the type of the user data of fonts (can be e.g. `void *`, `int`, `struct`)*/
425 typedef void * lv_font_user_data_t;
426 
427 /*================
428  *  THEME USAGE
429  *================*/
430 
431 /*Always enable at least on theme*/
432 
433 /* No theme, you can apply your styles as you need
434  * No flags. Set LV_THEME_DEFAULT_FLAG 0 */
435 #define LV_USE_THEME_EMPTY       1
436 
437 /*Simple to the create your theme based on it
438  * No flags. Set LV_THEME_DEFAULT_FLAG 0 */
439 #define LV_USE_THEME_TEMPLATE    1
440 
441 /* A fast and impressive theme.
442  * Flags:
443  * LV_THEME_MATERIAL_FLAG_LIGHT: light theme
444  * LV_THEME_MATERIAL_FLAG_DARK: dark theme
445  * LV_THEME_MATERIAL_FLAG_NO_TRANSITION: disable transitions (state change animations)
446  * LV_THEME_MATERIAL_FLAG_NO_FOCUS: disable indication of focused state)
447  * */
448 #define LV_USE_THEME_MATERIAL    1
449 
450 /* Mono-color theme for monochrome displays.
451  * If LV_THEME_DEFAULT_COLOR_PRIMARY is LV_COLOR_BLACK the
452  * texts and borders will be black and the background will be
453  * white. Else the colors are inverted.
454  * No flags. Set LV_THEME_DEFAULT_FLAG 0 */
455 #define LV_USE_THEME_MONO        1
456 
457 #define LV_THEME_DEFAULT_INCLUDE            <stdint.h>      /*Include a header for the init. function*/
458 #define LV_THEME_DEFAULT_INIT               lv_theme_material_init
459 #define LV_THEME_DEFAULT_COLOR_PRIMARY      lv_color_hex(0x01a2b1)
460 #define LV_THEME_DEFAULT_COLOR_SECONDARY    lv_color_hex(0x44d1b6)
461 #define LV_THEME_DEFAULT_FLAG               LV_THEME_MATERIAL_FLAG_LIGHT
462 #define LV_THEME_DEFAULT_FONT_SMALL         &lv_font_montserrat_14
463 #define LV_THEME_DEFAULT_FONT_NORMAL        &lv_font_montserrat_14
464 #define LV_THEME_DEFAULT_FONT_SUBTITLE      &lv_font_montserrat_14
465 #define LV_THEME_DEFAULT_FONT_TITLE         &lv_font_montserrat_14
466 
467 /*=================
468  *  Text settings
469  *=================*/
470 
471 /* Select a character encoding for strings.
472  * Your IDE or editor should have the same character encoding
473  * - LV_TXT_ENC_UTF8
474  * - LV_TXT_ENC_ASCII
475  * */
476 #define LV_TXT_ENC LV_TXT_ENC_UTF8
477 
478  /*Can break (wrap) texts on these chars*/
479 #define LV_TXT_BREAK_CHARS                  " ,.;:-_"
480 
481 /* If a word is at least this long, will break wherever "prettiest"
482  * To disable, set to a value <= 0 */
483 #define LV_TXT_LINE_BREAK_LONG_LEN          0
484 
485 /* Minimum number of characters in a long word to put on a line before a break.
486  * Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
487 #define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN  3
488 
489 /* Minimum number of characters in a long word to put on a line after a break.
490  * Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
491 #define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
492 
493 /* The control character to use for signalling text recoloring. */
494 #define LV_TXT_COLOR_CMD "#"
495 
496 /* Support bidirectional texts.
497  * Allows mixing Left-to-Right and Right-to-Left texts.
498  * The direction will be processed according to the Unicode Bidirectioanl Algorithm:
499  * https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
500 #define LV_USE_BIDI     0
501 #if LV_USE_BIDI
502 /* Set the default direction. Supported values:
503  * `LV_BIDI_DIR_LTR` Left-to-Right
504  * `LV_BIDI_DIR_RTL` Right-to-Left
505  * `LV_BIDI_DIR_AUTO` detect texts base direction */
506 #define LV_BIDI_BASE_DIR_DEF  LV_BIDI_DIR_AUTO
507 #endif
508 
509 /* Enable Arabic/Persian processing
510  * In these languages characters should be replaced with
511  * an other form based on their position in the text */
512 #define LV_USE_ARABIC_PERSIAN_CHARS 0
513 
514 /*Change the built in (v)snprintf functions*/
515 #define LV_SPRINTF_CUSTOM   0
516 #if LV_SPRINTF_CUSTOM
517 #  define LV_SPRINTF_INCLUDE <stdio.h>
518 #  define lv_snprintf     snprintf
519 #  define lv_vsnprintf    vsnprintf
520 #else   /*!LV_SPRINTF_CUSTOM*/
521 #  define LV_SPRINTF_DISABLE_FLOAT 1
522 #endif  /*LV_SPRINTF_CUSTOM*/
523 
524 /*===================
525  *  LV_OBJ SETTINGS
526  *==================*/
527 
528 #if LV_USE_USER_DATA
529 /*Declare the type of the user data of object (can be e.g. `void *`, `int`, `struct`)*/
530 typedef void * lv_obj_user_data_t;
531 /*Provide a function to free user data*/
532 #define LV_USE_USER_DATA_FREE 0
533 #if LV_USE_USER_DATA_FREE
534 #  define LV_USER_DATA_FREE_INCLUDE  "something.h"  /*Header for user data free function*/
535 /* Function prototype : void user_data_free(lv_obj_t * obj); */
536 #  define LV_USER_DATA_FREE  (user_data_free)       /*Invoking for user data free function*/
537 #endif
538 #endif
539 
540 /*1: enable `lv_obj_realign()` based on `lv_obj_align()` parameters*/
541 #define LV_USE_OBJ_REALIGN          1
542 
543 /* Enable to make the object clickable on a larger area.
544  * LV_EXT_CLICK_AREA_OFF or 0: Disable this feature
545  * LV_EXT_CLICK_AREA_TINY: The extra area can be adjusted horizontally and vertically (0..255 px)
546  * LV_EXT_CLICK_AREA_FULL: The extra area can be adjusted in all 4 directions (-32k..+32k px)
547  */
548 #define LV_USE_EXT_CLICK_AREA  LV_EXT_CLICK_AREA_TINY
549 
550 /*==================
551  *  LV OBJ X USAGE
552  *================*/
553 /*
554  * Documentation of the object types: https://docs.lvgl.com/#Object-types
555  */
556 
557 /*Arc (dependencies: -)*/
558 #define LV_USE_ARC      1
559 
560 /*Bar (dependencies: -)*/
561 #define LV_USE_BAR      1
562 
563 /*Button (dependencies: lv_cont*/
564 #define LV_USE_BTN      1
565 
566 /*Button matrix (dependencies: -)*/
567 #define LV_USE_BTNMATRIX     1
568 
569 /*Calendar (dependencies: -)*/
570 #define LV_USE_CALENDAR 1
571 #if LV_USE_CALENDAR
572 #  define LV_CALENDAR_WEEK_STARTS_MONDAY    0
573 #endif
574 
575 /*Canvas (dependencies: lv_img)*/
576 #define LV_USE_CANVAS   1
577 
578 /*Check box (dependencies: lv_btn, lv_label)*/
579 #define LV_USE_CHECKBOX       1
580 
581 /*Chart (dependencies: -)*/
582 #define LV_USE_CHART    1
583 #if LV_USE_CHART
584 #  define LV_CHART_AXIS_TICK_LABEL_MAX_LEN    256
585 #endif
586 
587 /*Container (dependencies: -*/
588 #define LV_USE_CONT     1
589 
590 /*Color picker (dependencies: -*/
591 #define LV_USE_CPICKER   1
592 
593 /*Drop down list (dependencies: lv_page, lv_label, lv_symbol_def.h)*/
594 #define LV_USE_DROPDOWN    1
595 #if LV_USE_DROPDOWN != 0
596 /*Open and close default animation time [ms] (0: no animation)*/
597 #  define LV_DROPDOWN_DEF_ANIM_TIME     200
598 #endif
599 
600 /*Gauge (dependencies:lv_bar, lv_linemeter)*/
601 #define LV_USE_GAUGE    1
602 
603 /*Image (dependencies: lv_label*/
604 #define LV_USE_IMG      1
605 
606 /*Image Button (dependencies: lv_btn*/
607 #define LV_USE_IMGBTN   1
608 #if LV_USE_IMGBTN
609 /*1: The imgbtn requires left, mid and right parts and the width can be set freely*/
610 #  define LV_IMGBTN_TILED 0
611 #endif
612 
613 /*Keyboard (dependencies: lv_btnm)*/
614 #define LV_USE_KEYBOARD       1
615 
616 /*Label (dependencies: -*/
617 #define LV_USE_LABEL    1
618 #if LV_USE_LABEL != 0
619 /*Hor, or ver. scroll speed [px/sec] in 'LV_LABEL_LONG_ROLL/ROLL_CIRC' mode*/
620 #  define LV_LABEL_DEF_SCROLL_SPEED       25
621 
622 /* Waiting period at beginning/end of animation cycle */
623 #  define LV_LABEL_WAIT_CHAR_COUNT        3
624 
625 /*Enable selecting text of the label */
626 #  define LV_LABEL_TEXT_SEL               0
627 
628 /*Store extra some info in labels (12 bytes) to speed up drawing of very long texts*/
629 #  define LV_LABEL_LONG_TXT_HINT          0
630 #endif
631 
632 /*LED (dependencies: -)*/
633 #define LV_USE_LED      1
634 #if LV_USE_LED
635 #  define LV_LED_BRIGHT_MIN  120      /*Minimal brightness*/
636 #  define LV_LED_BRIGHT_MAX  255     /*Maximal brightness*/
637 #endif
638 
639 /*Line (dependencies: -*/
640 #define LV_USE_LINE     1
641 
642 /*List (dependencies: lv_page, lv_btn, lv_label, (lv_img optionally for icons ))*/
643 #define LV_USE_LIST     1
644 #if LV_USE_LIST != 0
645 /*Default animation time of focusing to a list element [ms] (0: no animation)  */
646 #  define LV_LIST_DEF_ANIM_TIME  100
647 #endif
648 
649 /*Line meter (dependencies: *;)*/
650 #define LV_USE_LINEMETER   1
651 #if LV_USE_LINEMETER
652 /* Draw line more precisely at cost of performance.
653  * Useful if there are lot of lines any minor are visible
654  * 0: No extra precision
655  * 1: Some extra precision
656  * 2: Best precision
657  */
658 #  define LV_LINEMETER_PRECISE    1
659 #endif
660 
661 /*Mask (dependencies: -)*/
662 #define LV_USE_OBJMASK  1
663 
664 /*Message box (dependencies: lv_rect, lv_btnm, lv_label)*/
665 #define LV_USE_MSGBOX     1
666 
667 /*Page (dependencies: lv_cont)*/
668 #define LV_USE_PAGE     1
669 #if LV_USE_PAGE != 0
670 /*Focus default animation time [ms] (0: no animation)*/
671 #  define LV_PAGE_DEF_ANIM_TIME     400
672 #endif
673 
674 /*Preload (dependencies: lv_arc, lv_anim)*/
675 #define LV_USE_SPINNER      1
676 #if LV_USE_SPINNER != 0
677 #  define LV_SPINNER_DEF_ARC_LENGTH   60      /*[deg]*/
678 #  define LV_SPINNER_DEF_SPIN_TIME    1000    /*[ms]*/
679 #  define LV_SPINNER_DEF_ANIM         LV_SPINNER_TYPE_SPINNING_ARC
680 #endif
681 
682 /*Roller (dependencies: lv_ddlist)*/
683 #define LV_USE_ROLLER    1
684 #if LV_USE_ROLLER != 0
685 /*Focus animation time [ms] (0: no animation)*/
686 #  define LV_ROLLER_DEF_ANIM_TIME     200
687 
688 /*Number of extra "pages" when the roller is infinite*/
689 #  define LV_ROLLER_INF_PAGES         7
690 #endif
691 
692 /*Slider (dependencies: lv_bar)*/
693 #define LV_USE_SLIDER    1
694 
695 /*Spinbox (dependencies: lv_ta)*/
696 #define LV_USE_SPINBOX       1
697 
698 /*Switch (dependencies: lv_slider)*/
699 #define LV_USE_SWITCH       1
700 
701 /*Text area (dependencies: lv_label, lv_page)*/
702 #define LV_USE_TEXTAREA       1
703 #if LV_USE_TEXTAREA != 0
704 #  define LV_TEXTAREA_DEF_CURSOR_BLINK_TIME 400     /*ms*/
705 #  define LV_TEXTAREA_DEF_PWD_SHOW_TIME     1500    /*ms*/
706 #endif
707 
708 /*Table (dependencies: lv_label)*/
709 #define LV_USE_TABLE    1
710 #if LV_USE_TABLE
711 #  define LV_TABLE_COL_MAX    12
712 #endif
713 
714 /*Tab (dependencies: lv_page, lv_btnm)*/
715 #define LV_USE_TABVIEW      1
716 #  if LV_USE_TABVIEW != 0
717 /*Time of slide animation [ms] (0: no animation)*/
718 #  define LV_TABVIEW_DEF_ANIM_TIME    300
719 #endif
720 
721 /*Tileview (dependencies: lv_page) */
722 #define LV_USE_TILEVIEW     1
723 #if LV_USE_TILEVIEW
724 /*Time of slide animation [ms] (0: no animation)*/
725 #  define LV_TILEVIEW_DEF_ANIM_TIME   300
726 #endif
727 
728 /*Window (dependencies: lv_cont, lv_btn, lv_label, lv_img, lv_page)*/
729 #define LV_USE_WIN      1
730 
731 /*==================
732  * Non-user section
733  *==================*/
734 
735 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)    /* Disable warnings for Visual Studio*/
736 #  define _CRT_SECURE_NO_WARNINGS
737 #endif
738 
739 /*--END OF LV_CONF_H--*/
740 
741 #endif /*LV_CONF_H*/
742 
743 #endif /*End of "Content enable"*/
744