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