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