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