FINAL VERSION

Dependencies:   BSP_DISCO_F746NG

Committer:
samdcr
Date:
Thu Jun 16 09:08:19 2022 +0000
Revision:
6:22fd049f313b
Parent:
5:071136c3eefa
FINAL VERSION

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JohnnyK 4:4208cec163ef 1 /**
JohnnyK 4:4208cec163ef 2 * @file lv_conf.h
JohnnyK 5:071136c3eefa 3 * Configuration file for v8.0.0
JohnnyK 4:4208cec163ef 4 */
JohnnyK 4:4208cec163ef 5
JohnnyK 4:4208cec163ef 6 /*
JohnnyK 4:4208cec163ef 7 * COPY THIS FILE AS `lv_conf.h` NEXT TO the `lvgl` FOLDER
JohnnyK 4:4208cec163ef 8 */
JohnnyK 4:4208cec163ef 9
JohnnyK 4:4208cec163ef 10 #if 1 /*Set it to "1" to enable content*/
JohnnyK 4:4208cec163ef 11
JohnnyK 4:4208cec163ef 12 #ifndef LV_CONF_H
JohnnyK 4:4208cec163ef 13 #define LV_CONF_H
JohnnyK 5:071136c3eefa 14 /*clang-format off*/
JohnnyK 4:4208cec163ef 15
JohnnyK 4:4208cec163ef 16 #include <stdint.h>
JohnnyK 4:4208cec163ef 17
JohnnyK 5:071136c3eefa 18
JohnnyK 4:4208cec163ef 19 /*====================
JohnnyK 5:071136c3eefa 20 COLOR SETTINGS
JohnnyK 4:4208cec163ef 21 *====================*/
JohnnyK 4:4208cec163ef 22
JohnnyK 5:071136c3eefa 23 /*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/
JohnnyK 4:4208cec163ef 24 #define LV_COLOR_DEPTH 16
JohnnyK 4:4208cec163ef 25
JohnnyK 5:071136c3eefa 26 /*Swap the 2 bytes of RGB565 color. Useful if the display has a 8 bit interface (e.g. SPI)*/
JohnnyK 4:4208cec163ef 27 #define LV_COLOR_16_SWAP 0
JohnnyK 4:4208cec163ef 28
JohnnyK 5:071136c3eefa 29 /*Enable more complex drawing routines to manage screens transparency.
JohnnyK 5:071136c3eefa 30 *Can be used if the UI is above an other layer, e.g. an OSD menu or video player.
JohnnyK 5:071136c3eefa 31 *Requires `LV_COLOR_DEPTH = 32` colors and the screen's `bg_opa` should be set to non LV_OPA_COVER value*/
JohnnyK 4:4208cec163ef 32 #define LV_COLOR_SCREEN_TRANSP 0
JohnnyK 4:4208cec163ef 33
JohnnyK 5:071136c3eefa 34 /*Images pixels with this color will not be drawn if they are chroma keyed)*/
JohnnyK 5:071136c3eefa 35 #define LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00) /*pure green*/
JohnnyK 4:4208cec163ef 36
samdcr 6:22fd049f313b 37 #define LV_COLOR_RED 0xFF0000
samdcr 6:22fd049f313b 38 #define LV_COLOR_GREEN 0x00FF00
samdcr 6:22fd049f313b 39
JohnnyK 4:4208cec163ef 40 /*=========================
JohnnyK 5:071136c3eefa 41 MEMORY SETTINGS
JohnnyK 4:4208cec163ef 42 *=========================*/
JohnnyK 4:4208cec163ef 43
JohnnyK 5:071136c3eefa 44 /*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/
JohnnyK 4:4208cec163ef 45 #define LV_MEM_CUSTOM 0
JohnnyK 4:4208cec163ef 46 #if LV_MEM_CUSTOM == 0
JohnnyK 5:071136c3eefa 47 /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
JohnnyK 5:071136c3eefa 48 # define LV_MEM_SIZE (32U * 1024U) /*[bytes]*/
JohnnyK 4:4208cec163ef 49
JohnnyK 5:071136c3eefa 50 /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
JohnnyK 5:071136c3eefa 51 # define LV_MEM_ADR 0 /*0: unused*/
JohnnyK 4:4208cec163ef 52 #else /*LV_MEM_CUSTOM*/
JohnnyK 4:4208cec163ef 53 # define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
JohnnyK 5:071136c3eefa 54 # define LV_MEM_CUSTOM_ALLOC malloc
JohnnyK 5:071136c3eefa 55 # define LV_MEM_CUSTOM_FREE free
JohnnyK 5:071136c3eefa 56 # define LV_MEM_CUSTOM_REALLOC realloc
JohnnyK 4:4208cec163ef 57 #endif /*LV_MEM_CUSTOM*/
JohnnyK 4:4208cec163ef 58
JohnnyK 5:071136c3eefa 59 /*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/
JohnnyK 4:4208cec163ef 60 #define LV_MEMCPY_MEMSET_STD 0
JohnnyK 4:4208cec163ef 61
JohnnyK 5:071136c3eefa 62 /*====================
JohnnyK 5:071136c3eefa 63 HAL SETTINGS
JohnnyK 5:071136c3eefa 64 *====================*/
JohnnyK 5:071136c3eefa 65
JohnnyK 5:071136c3eefa 66 /*Default display refresh period. LVG will redraw changed ares with this period time*/
JohnnyK 5:071136c3eefa 67 #define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/
JohnnyK 5:071136c3eefa 68
JohnnyK 5:071136c3eefa 69 /*Input device read period in milliseconds*/
JohnnyK 5:071136c3eefa 70 #define LV_INDEV_DEF_READ_PERIOD 30 /*[ms]*/
JohnnyK 5:071136c3eefa 71
JohnnyK 5:071136c3eefa 72 /*Use a custom tick source that tells the elapsed time in milliseconds.
JohnnyK 5:071136c3eefa 73 *It removes the need to manually update the tick with `lv_tick_inc()`)*/
JohnnyK 5:071136c3eefa 74 #define LV_TICK_CUSTOM 0
JohnnyK 5:071136c3eefa 75 #if LV_TICK_CUSTOM
JohnnyK 5:071136c3eefa 76 #define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
JohnnyK 5:071136c3eefa 77 #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
JohnnyK 5:071136c3eefa 78 #endif /*LV_TICK_CUSTOM*/
JohnnyK 5:071136c3eefa 79
JohnnyK 5:071136c3eefa 80 /*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
JohnnyK 5:071136c3eefa 81 *(Not so important, you can adjust it to modify default sizes and spaces)*/
JohnnyK 5:071136c3eefa 82 #define LV_DPI_DEF 130 /*[px/inch]*/
JohnnyK 4:4208cec163ef 83
JohnnyK 4:4208cec163ef 84 /*=======================
JohnnyK 5:071136c3eefa 85 * FEATURE CONFIGURATION
JohnnyK 4:4208cec163ef 86 *=======================*/
JohnnyK 4:4208cec163ef 87
JohnnyK 5:071136c3eefa 88 /*-------------
JohnnyK 5:071136c3eefa 89 * Drawing
JohnnyK 5:071136c3eefa 90 *-----------*/
JohnnyK 4:4208cec163ef 91
JohnnyK 5:071136c3eefa 92 /*Enable complex draw engine.
JohnnyK 5:071136c3eefa 93 *Required to draw shadow, gradient, rounded corners, circles, arc, skew lines, image transformations or any masks*/
JohnnyK 5:071136c3eefa 94 #define LV_DRAW_COMPLEX 1
JohnnyK 5:071136c3eefa 95 #if LV_DRAW_COMPLEX != 0
JohnnyK 4:4208cec163ef 96
JohnnyK 5:071136c3eefa 97 /*Allow buffering some shadow calculation.
JohnnyK 5:071136c3eefa 98 *LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius`
JohnnyK 5:071136c3eefa 99 *Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/
JohnnyK 5:071136c3eefa 100 #define LV_SHADOW_CACHE_SIZE 0
JohnnyK 5:071136c3eefa 101 #endif /*LV_DRAW_COMPLEX*/
JohnnyK 4:4208cec163ef 102
JohnnyK 5:071136c3eefa 103 /*Default image cache size. Image caching keeps the images opened.
JohnnyK 5:071136c3eefa 104 *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 105 *With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
JohnnyK 5:071136c3eefa 106 *However the opened images might consume additional RAM.
JohnnyK 5:071136c3eefa 107 *0: to disable caching*/
JohnnyK 5:071136c3eefa 108 #define LV_IMG_CACHE_DEF_SIZE 0
JohnnyK 4:4208cec163ef 109
JohnnyK 5:071136c3eefa 110 /*Maximum buffer size to allocate for rotation. Only used if software rotation is enabled in the display driver.*/
JohnnyK 5:071136c3eefa 111 #define LV_DISP_ROT_MAX_BUF (10*1024)
JohnnyK 5:071136c3eefa 112 /*-------------
JohnnyK 5:071136c3eefa 113 * GPU
JohnnyK 5:071136c3eefa 114 *-----------*/
JohnnyK 4:4208cec163ef 115
JohnnyK 5:071136c3eefa 116 /*Use STM32's DMA2D (aka Chrom Art) GPU*/
JohnnyK 5:071136c3eefa 117 #define LV_USE_GPU_STM32_DMA2D 0
JohnnyK 5:071136c3eefa 118 #if LV_USE_GPU_STM32_DMA2D
JohnnyK 5:071136c3eefa 119 /*Must be defined to include path of CMSIS header of target processor
JohnnyK 5:071136c3eefa 120 e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
JohnnyK 5:071136c3eefa 121 #define LV_GPU_DMA2D_CMSIS_INCLUDE "stm32f746xx.h"
JohnnyK 4:4208cec163ef 122 #endif
JohnnyK 4:4208cec163ef 123
JohnnyK 5:071136c3eefa 124 /*Use NXP's PXP GPU iMX RTxxx platforms*/
JohnnyK 4:4208cec163ef 125 #define LV_USE_GPU_NXP_PXP 0
JohnnyK 5:071136c3eefa 126 #if LV_USE_GPU_NXP_PXP
JohnnyK 4:4208cec163ef 127 /*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c)
JohnnyK 4:4208cec163ef 128 * and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol FSL_RTOS_FREE_RTOS
JohnnyK 4:4208cec163ef 129 * has to be defined in order to use FreeRTOS OSA, otherwise bare-metal implementation is selected.
JohnnyK 4:4208cec163ef 130 *0: lv_gpu_nxp_pxp_init() has to be called manually before lv_init()
JohnnyK 5:071136c3eefa 131 */
JohnnyK 4:4208cec163ef 132 #define LV_USE_GPU_NXP_PXP_AUTO_INIT 0
JohnnyK 5:071136c3eefa 133 #endif
JohnnyK 4:4208cec163ef 134
JohnnyK 5:071136c3eefa 135 /*Use NXP's VG-Lite GPU iMX RTxxx platforms*/
JohnnyK 4:4208cec163ef 136 #define LV_USE_GPU_NXP_VG_LITE 0
JohnnyK 4:4208cec163ef 137
JohnnyK 5:071136c3eefa 138 /*-------------
JohnnyK 5:071136c3eefa 139 * Logging
JohnnyK 5:071136c3eefa 140 *-----------*/
JohnnyK 5:071136c3eefa 141
JohnnyK 5:071136c3eefa 142 /*Enable the log module*/
JohnnyK 5:071136c3eefa 143 #define LV_USE_LOG 0
JohnnyK 5:071136c3eefa 144 #if LV_USE_LOG
JohnnyK 5:071136c3eefa 145
JohnnyK 5:071136c3eefa 146 /*How important log should be added:
JohnnyK 5:071136c3eefa 147 *LV_LOG_LEVEL_TRACE A lot of logs to give detailed information
JohnnyK 5:071136c3eefa 148 *LV_LOG_LEVEL_INFO Log important events
JohnnyK 5:071136c3eefa 149 *LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem
JohnnyK 5:071136c3eefa 150 *LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
JohnnyK 5:071136c3eefa 151 *LV_LOG_LEVEL_USER Only logs added by the user
JohnnyK 5:071136c3eefa 152 *LV_LOG_LEVEL_NONE Do not log anything*/
JohnnyK 5:071136c3eefa 153 # define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
JohnnyK 5:071136c3eefa 154
JohnnyK 5:071136c3eefa 155 /*1: Print the log with 'printf';
JohnnyK 5:071136c3eefa 156 *0: User need to register a callback with `lv_log_register_print_cb()`*/
JohnnyK 5:071136c3eefa 157 # define LV_LOG_PRINTF 0
JohnnyK 4:4208cec163ef 158
JohnnyK 5:071136c3eefa 159 /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
JohnnyK 5:071136c3eefa 160 # define LV_LOG_TRACE_MEM 1
JohnnyK 5:071136c3eefa 161 # define LV_LOG_TRACE_TIMER 1
JohnnyK 5:071136c3eefa 162 # define LV_LOG_TRACE_INDEV 1
JohnnyK 5:071136c3eefa 163 # define LV_LOG_TRACE_DISP_REFR 1
JohnnyK 5:071136c3eefa 164 # define LV_LOG_TRACE_EVENT 1
JohnnyK 5:071136c3eefa 165 # define LV_LOG_TRACE_OBJ_CREATE 1
JohnnyK 5:071136c3eefa 166 # define LV_LOG_TRACE_LAYOUT 1
JohnnyK 5:071136c3eefa 167 # define LV_LOG_TRACE_ANIM 1
JohnnyK 5:071136c3eefa 168
JohnnyK 5:071136c3eefa 169 #endif /*LV_USE_LOG*/
JohnnyK 5:071136c3eefa 170
JohnnyK 5:071136c3eefa 171 /*-------------
JohnnyK 5:071136c3eefa 172 * Asserts
JohnnyK 5:071136c3eefa 173 *-----------*/
JohnnyK 5:071136c3eefa 174
JohnnyK 5:071136c3eefa 175 /*Enable asserts if an operation is failed or an invalid data is found.
JohnnyK 5:071136c3eefa 176 *If LV_USE_LOG is enabled an error message will be printed on failure*/
JohnnyK 5:071136c3eefa 177 #define LV_USE_ASSERT_NULL 1 /*Check if the parameter is NULL. (Very fast, recommended)*/
JohnnyK 5:071136c3eefa 178 #define LV_USE_ASSERT_MALLOC 1 /*Checks is the memory is successfully allocated or no. (Very fast, recommended)*/
JohnnyK 5:071136c3eefa 179 #define LV_USE_ASSERT_STYLE 0 /*Check if the styles are properly initialized. (Very fast, recommended)*/
JohnnyK 5:071136c3eefa 180 #define LV_USE_ASSERT_MEM_INTEGRITY 0 /*Check the integrity of `lv_mem` after critical operations. (Slow)*/
JohnnyK 5:071136c3eefa 181 #define LV_USE_ASSERT_OBJ 0 /*Check the object's type and existence (e.g. not deleted). (Slow)*/
JohnnyK 5:071136c3eefa 182
JohnnyK 5:071136c3eefa 183 /*Add a custom handler when assert happens e.g. to restart the MCU*/
JohnnyK 5:071136c3eefa 184 #define LV_ASSERT_HANDLER_INCLUDE <stdint.h>
JohnnyK 5:071136c3eefa 185 #define LV_ASSERT_HANDLER while(1); /*Halt by default*/
JohnnyK 5:071136c3eefa 186
JohnnyK 5:071136c3eefa 187 /*-------------
JohnnyK 5:071136c3eefa 188 * Others
JohnnyK 5:071136c3eefa 189 *-----------*/
JohnnyK 4:4208cec163ef 190
JohnnyK 4:4208cec163ef 191 /*1: Show CPU usage and FPS count in the right bottom corner*/
JohnnyK 5:071136c3eefa 192 #define LV_USE_PERF_MONITOR 1
JohnnyK 4:4208cec163ef 193
JohnnyK 5:071136c3eefa 194 /*1: Show the used memory and the memory fragmentation in the left bottom corner
JohnnyK 5:071136c3eefa 195 * Requires LV_MEM_CUSTOM = 0*/
JohnnyK 5:071136c3eefa 196 #define LV_USE_MEM_MONITOR 0
JohnnyK 4:4208cec163ef 197
JohnnyK 5:071136c3eefa 198 /*1: Draw random colored rectangles over the redrawn areas*/
JohnnyK 5:071136c3eefa 199 #define LV_USE_REFR_DEBUG 0
JohnnyK 4:4208cec163ef 200
JohnnyK 5:071136c3eefa 201 /*Change the built in (v)snprintf functions*/
JohnnyK 5:071136c3eefa 202 #define LV_SPRINTF_CUSTOM 0
JohnnyK 5:071136c3eefa 203 #if LV_SPRINTF_CUSTOM
JohnnyK 5:071136c3eefa 204 # define LV_SPRINTF_INCLUDE <stdio.h>
JohnnyK 5:071136c3eefa 205 # define lv_snprintf snprintf
JohnnyK 5:071136c3eefa 206 # define lv_vsnprintf vsnprintf
JohnnyK 5:071136c3eefa 207 #else /*LV_SPRINTF_CUSTOM*/
samdcr 6:22fd049f313b 208 # define LV_SPRINTF_USE_FLOAT 1
JohnnyK 5:071136c3eefa 209 #endif /*LV_SPRINTF_CUSTOM*/
JohnnyK 4:4208cec163ef 210
JohnnyK 5:071136c3eefa 211 #define LV_USE_USER_DATA 1
JohnnyK 4:4208cec163ef 212
JohnnyK 5:071136c3eefa 213 /*Garbage Collector settings
JohnnyK 5:071136c3eefa 214 *Used if lvgl is binded to higher level language and the memory is managed by that language*/
JohnnyK 5:071136c3eefa 215 #define LV_ENABLE_GC 0
JohnnyK 5:071136c3eefa 216 #if LV_ENABLE_GC != 0
JohnnyK 5:071136c3eefa 217 # define LV_GC_INCLUDE "gc.h" /*Include Garbage Collector related things*/
JohnnyK 5:071136c3eefa 218 #endif /*LV_ENABLE_GC*/
JohnnyK 4:4208cec163ef 219
JohnnyK 4:4208cec163ef 220 /*=====================
JohnnyK 5:071136c3eefa 221 * COMPILER SETTINGS
JohnnyK 4:4208cec163ef 222 *====================*/
JohnnyK 4:4208cec163ef 223
JohnnyK 5:071136c3eefa 224 /*For big endian systems set to 1*/
JohnnyK 4:4208cec163ef 225 #define LV_BIG_ENDIAN_SYSTEM 0
JohnnyK 4:4208cec163ef 226
JohnnyK 5:071136c3eefa 227 /*Define a custom attribute to `lv_tick_inc` function*/
JohnnyK 4:4208cec163ef 228 #define LV_ATTRIBUTE_TICK_INC
JohnnyK 4:4208cec163ef 229
JohnnyK 5:071136c3eefa 230 /*Define a custom attribute to `lv_timer_handler` function*/
JohnnyK 5:071136c3eefa 231 #define LV_ATTRIBUTE_TIMER_HANDLER
JohnnyK 4:4208cec163ef 232
JohnnyK 5:071136c3eefa 233 /*Define a custom attribute to `lv_disp_flush_ready` function*/
JohnnyK 4:4208cec163ef 234 #define LV_ATTRIBUTE_FLUSH_READY
JohnnyK 4:4208cec163ef 235
JohnnyK 5:071136c3eefa 236 /*Required alignment size for buffers*/
JohnnyK 4:4208cec163ef 237 #define LV_ATTRIBUTE_MEM_ALIGN_SIZE
JohnnyK 4:4208cec163ef 238
JohnnyK 5:071136c3eefa 239 /*Will be added where memories needs to be aligned (with -Os data might not be aligned to boundary by default).
JohnnyK 5:071136c3eefa 240 * E.g. __attribute__((aligned(4)))*/
JohnnyK 4:4208cec163ef 241 #define LV_ATTRIBUTE_MEM_ALIGN
JohnnyK 4:4208cec163ef 242
JohnnyK 5:071136c3eefa 243 /*Attribute to mark large constant arrays for example font's bitmaps*/
JohnnyK 4:4208cec163ef 244 #define LV_ATTRIBUTE_LARGE_CONST
JohnnyK 4:4208cec163ef 245
JohnnyK 5:071136c3eefa 246 /*Complier prefix for a big array declaration in RAM*/
JohnnyK 5:071136c3eefa 247 #define LV_ATTRIBUTE_LARGE_RAM_ARRAY
JohnnyK 5:071136c3eefa 248
JohnnyK 5:071136c3eefa 249 /*Place performance critical functions into a faster memory (e.g RAM)*/
JohnnyK 4:4208cec163ef 250 #define LV_ATTRIBUTE_FAST_MEM
JohnnyK 4:4208cec163ef 251
JohnnyK 5:071136c3eefa 252 /*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 253 #define LV_ATTRIBUTE_DMA
JohnnyK 4:4208cec163ef 254
JohnnyK 5:071136c3eefa 255 /*Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that
JohnnyK 5:071136c3eefa 256 *should also appear on LVGL binding API such as Micropython.*/
JohnnyK 5:071136c3eefa 257 #define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/
JohnnyK 4:4208cec163ef 258
JohnnyK 5:071136c3eefa 259 /*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/
JohnnyK 5:071136c3eefa 260 #define LV_USE_LARGE_COORD 0
JohnnyK 4:4208cec163ef 261
JohnnyK 4:4208cec163ef 262 /*==================
JohnnyK 5:071136c3eefa 263 * FONT USAGE
JohnnyK 4:4208cec163ef 264 *===================*/
JohnnyK 4:4208cec163ef 265
JohnnyK 5:071136c3eefa 266 /*Montserrat fonts with ASCII range and some symbols using bpp = 4
JohnnyK 5:071136c3eefa 267 *https://fonts.google.com/specimen/Montserrat*/
JohnnyK 4:4208cec163ef 268 #define LV_FONT_MONTSERRAT_8 0
JohnnyK 4:4208cec163ef 269 #define LV_FONT_MONTSERRAT_10 0
JohnnyK 4:4208cec163ef 270 #define LV_FONT_MONTSERRAT_12 0
JohnnyK 4:4208cec163ef 271 #define LV_FONT_MONTSERRAT_14 1
JohnnyK 4:4208cec163ef 272 #define LV_FONT_MONTSERRAT_16 0
JohnnyK 4:4208cec163ef 273 #define LV_FONT_MONTSERRAT_18 0
JohnnyK 4:4208cec163ef 274 #define LV_FONT_MONTSERRAT_20 0
JohnnyK 4:4208cec163ef 275 #define LV_FONT_MONTSERRAT_22 0
JohnnyK 4:4208cec163ef 276 #define LV_FONT_MONTSERRAT_24 0
JohnnyK 4:4208cec163ef 277 #define LV_FONT_MONTSERRAT_26 0
JohnnyK 4:4208cec163ef 278 #define LV_FONT_MONTSERRAT_28 0
JohnnyK 4:4208cec163ef 279 #define LV_FONT_MONTSERRAT_30 0
JohnnyK 4:4208cec163ef 280 #define LV_FONT_MONTSERRAT_32 0
JohnnyK 4:4208cec163ef 281 #define LV_FONT_MONTSERRAT_34 0
JohnnyK 4:4208cec163ef 282 #define LV_FONT_MONTSERRAT_36 0
JohnnyK 4:4208cec163ef 283 #define LV_FONT_MONTSERRAT_38 0
JohnnyK 4:4208cec163ef 284 #define LV_FONT_MONTSERRAT_40 0
JohnnyK 4:4208cec163ef 285 #define LV_FONT_MONTSERRAT_42 0
JohnnyK 4:4208cec163ef 286 #define LV_FONT_MONTSERRAT_44 0
JohnnyK 4:4208cec163ef 287 #define LV_FONT_MONTSERRAT_46 0
JohnnyK 4:4208cec163ef 288 #define LV_FONT_MONTSERRAT_48 0
JohnnyK 4:4208cec163ef 289
JohnnyK 5:071136c3eefa 290 /*Demonstrate special features*/
JohnnyK 4:4208cec163ef 291 #define LV_FONT_MONTSERRAT_12_SUBPX 0
JohnnyK 4:4208cec163ef 292 #define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/
JohnnyK 5:071136c3eefa 293 #define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, Perisan letters and all their forms*/
JohnnyK 4:4208cec163ef 294 #define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/
JohnnyK 4:4208cec163ef 295
JohnnyK 5:071136c3eefa 296 /*Pixel perfect monospace fonts*/
JohnnyK 5:071136c3eefa 297 #define LV_FONT_UNSCII_8 0
JohnnyK 5:071136c3eefa 298 #define LV_FONT_UNSCII_16 0
JohnnyK 4:4208cec163ef 299
JohnnyK 5:071136c3eefa 300 /*Optionally declare custom fonts here.
JohnnyK 5:071136c3eefa 301 *You can use these fonts as default font too and they will be available globally.
JohnnyK 5:071136c3eefa 302 *E.g. #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)*/
JohnnyK 4:4208cec163ef 303 #define LV_FONT_CUSTOM_DECLARE
JohnnyK 4:4208cec163ef 304
JohnnyK 5:071136c3eefa 305 /*Always set a default font*/
JohnnyK 5:071136c3eefa 306 #define LV_FONT_DEFAULT &lv_font_montserrat_14
JohnnyK 5:071136c3eefa 307
JohnnyK 5:071136c3eefa 308 /*Enable handling large font and/or fonts with a lot of characters.
JohnnyK 5:071136c3eefa 309 *The limit depends on the font size, font face and bpp.
JohnnyK 5:071136c3eefa 310 *Compiler error will be triggered if a font needs it.*/
JohnnyK 4:4208cec163ef 311 #define LV_FONT_FMT_TXT_LARGE 0
JohnnyK 4:4208cec163ef 312
JohnnyK 5:071136c3eefa 313 /*Enables/disables support for compressed fonts.*/
JohnnyK 5:071136c3eefa 314 #define LV_USE_FONT_COMPRESSED 0
JohnnyK 4:4208cec163ef 315
JohnnyK 5:071136c3eefa 316 /*Enable subpixel rendering*/
JohnnyK 5:071136c3eefa 317 #define LV_USE_FONT_SUBPX 0
JohnnyK 4:4208cec163ef 318 #if LV_USE_FONT_SUBPX
JohnnyK 5:071136c3eefa 319 /*Set the pixel order of the display. Physical order of RGB channels. Doesn't matter with "normal" fonts.*/
JohnnyK 5:071136c3eefa 320 #define LV_FONT_SUBPX_BGR 0 /*0: RGB; 1:BGR order*/
JohnnyK 4:4208cec163ef 321 #endif
JohnnyK 4:4208cec163ef 322
JohnnyK 4:4208cec163ef 323 /*=================
JohnnyK 5:071136c3eefa 324 * TEXT SETTINGS
JohnnyK 4:4208cec163ef 325 *=================*/
JohnnyK 4:4208cec163ef 326
JohnnyK 5:071136c3eefa 327 /**
JohnnyK 5:071136c3eefa 328 * Select a character encoding for strings.
JohnnyK 4:4208cec163ef 329 * Your IDE or editor should have the same character encoding
JohnnyK 4:4208cec163ef 330 * - LV_TXT_ENC_UTF8
JohnnyK 4:4208cec163ef 331 * - LV_TXT_ENC_ASCII
JohnnyK 5:071136c3eefa 332 */
JohnnyK 4:4208cec163ef 333 #define LV_TXT_ENC LV_TXT_ENC_UTF8
JohnnyK 4:4208cec163ef 334
JohnnyK 4:4208cec163ef 335 /*Can break (wrap) texts on these chars*/
JohnnyK 4:4208cec163ef 336 #define LV_TXT_BREAK_CHARS " ,.;:-_"
JohnnyK 4:4208cec163ef 337
JohnnyK 5:071136c3eefa 338 /*If a word is at least this long, will break wherever "prettiest"
JohnnyK 5:071136c3eefa 339 *To disable, set to a value <= 0*/
JohnnyK 4:4208cec163ef 340 #define LV_TXT_LINE_BREAK_LONG_LEN 0
JohnnyK 4:4208cec163ef 341
JohnnyK 5:071136c3eefa 342 /*Minimum number of characters in a long word to put on a line before a break.
JohnnyK 5:071136c3eefa 343 *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
JohnnyK 4:4208cec163ef 344 #define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
JohnnyK 4:4208cec163ef 345
JohnnyK 5:071136c3eefa 346 /*Minimum number of characters in a long word to put on a line after a break.
JohnnyK 5:071136c3eefa 347 *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
JohnnyK 4:4208cec163ef 348 #define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
JohnnyK 4:4208cec163ef 349
JohnnyK 5:071136c3eefa 350 /*The control character to use for signalling text recoloring.*/
JohnnyK 4:4208cec163ef 351 #define LV_TXT_COLOR_CMD "#"
JohnnyK 4:4208cec163ef 352
JohnnyK 5:071136c3eefa 353 /*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts.
JohnnyK 5:071136c3eefa 354 *The direction will be processed according to the Unicode Bidirectioanl Algorithm:
JohnnyK 5:071136c3eefa 355 *https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
JohnnyK 5:071136c3eefa 356 #define LV_USE_BIDI 0
JohnnyK 4:4208cec163ef 357 #if LV_USE_BIDI
JohnnyK 5:071136c3eefa 358 /*Set the default direction. Supported values:
JohnnyK 5:071136c3eefa 359 *`LV_BASE_DIR_LTR` Left-to-Right
JohnnyK 5:071136c3eefa 360 *`LV_BASE_DIR_RTL` Right-to-Left
JohnnyK 5:071136c3eefa 361 *`LV_BASE_DIR_AUTO` detect texts base direction*/
JohnnyK 5:071136c3eefa 362 #define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
JohnnyK 4:4208cec163ef 363 #endif
JohnnyK 4:4208cec163ef 364
JohnnyK 5:071136c3eefa 365 /*Enable Arabic/Persian processing
JohnnyK 5:071136c3eefa 366 *In these languages characters should be replaced with an other form based on their position in the text*/
JohnnyK 5:071136c3eefa 367 #define LV_USE_ARABIC_PERSIAN_CHARS 0
JohnnyK 4:4208cec163ef 368
JohnnyK 5:071136c3eefa 369 /*==================
JohnnyK 5:071136c3eefa 370 * WIDGET USAGE
JohnnyK 5:071136c3eefa 371 *================*/
JohnnyK 4:4208cec163ef 372
JohnnyK 5:071136c3eefa 373 /*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/
JohnnyK 5:071136c3eefa 374
JohnnyK 5:071136c3eefa 375 #define LV_USE_ARC 1
JohnnyK 4:4208cec163ef 376
JohnnyK 5:071136c3eefa 377 #define LV_USE_ANIMIMG 1
JohnnyK 4:4208cec163ef 378
JohnnyK 5:071136c3eefa 379 #define LV_USE_BAR 1
JohnnyK 4:4208cec163ef 380
JohnnyK 5:071136c3eefa 381 #define LV_USE_BTN 1
JohnnyK 5:071136c3eefa 382
JohnnyK 5:071136c3eefa 383 #define LV_USE_BTNMATRIX 1
JohnnyK 4:4208cec163ef 384
JohnnyK 5:071136c3eefa 385 #define LV_USE_CANVAS 1
JohnnyK 4:4208cec163ef 386
JohnnyK 5:071136c3eefa 387 #define LV_USE_CHECKBOX 1
JohnnyK 5:071136c3eefa 388
JohnnyK 4:4208cec163ef 389
JohnnyK 5:071136c3eefa 390 #define LV_USE_DROPDOWN 1 /*Requires: lv_label*/
JohnnyK 4:4208cec163ef 391
JohnnyK 5:071136c3eefa 392 #define LV_USE_IMG 1 /*Requires: lv_label*/
JohnnyK 4:4208cec163ef 393
JohnnyK 5:071136c3eefa 394 #define LV_USE_LABEL 1
JohnnyK 5:071136c3eefa 395 #if LV_USE_LABEL
JohnnyK 5:071136c3eefa 396 # define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/
JohnnyK 5:071136c3eefa 397 # define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/
JohnnyK 4:4208cec163ef 398 #endif
JohnnyK 4:4208cec163ef 399
JohnnyK 5:071136c3eefa 400 #define LV_USE_LINE 1
JohnnyK 4:4208cec163ef 401
JohnnyK 5:071136c3eefa 402 #define LV_USE_ROLLER 1 /*Requires: lv_label*/
JohnnyK 5:071136c3eefa 403 #if LV_USE_ROLLER
JohnnyK 5:071136c3eefa 404 # define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/
JohnnyK 4:4208cec163ef 405 #endif
JohnnyK 4:4208cec163ef 406
JohnnyK 5:071136c3eefa 407 #define LV_USE_SLIDER 1 /*Requires: lv_bar*/
JohnnyK 4:4208cec163ef 408
JohnnyK 5:071136c3eefa 409 #define LV_USE_SWITCH 1
JohnnyK 4:4208cec163ef 410
JohnnyK 5:071136c3eefa 411 #define LV_USE_TEXTAREA 1 /*Requires: lv_label*/
JohnnyK 4:4208cec163ef 412 #if LV_USE_TEXTAREA != 0
JohnnyK 4:4208cec163ef 413 # define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/
JohnnyK 4:4208cec163ef 414 #endif
JohnnyK 4:4208cec163ef 415
JohnnyK 5:071136c3eefa 416 #define LV_USE_TABLE 1
JohnnyK 5:071136c3eefa 417
JohnnyK 5:071136c3eefa 418 /*==================
JohnnyK 5:071136c3eefa 419 * EXTRA COMPONENTS
JohnnyK 5:071136c3eefa 420 *==================*/
JohnnyK 5:071136c3eefa 421
JohnnyK 5:071136c3eefa 422 /*-----------
JohnnyK 5:071136c3eefa 423 * Widgets
JohnnyK 5:071136c3eefa 424 *----------*/
JohnnyK 5:071136c3eefa 425 #define LV_USE_CALENDAR 1
JohnnyK 5:071136c3eefa 426 #if LV_USE_CALENDAR
JohnnyK 5:071136c3eefa 427 # define LV_CALENDAR_WEEK_STARTS_MONDAY 0
JohnnyK 5:071136c3eefa 428 # if LV_CALENDAR_WEEK_STARTS_MONDAY
JohnnyK 5:071136c3eefa 429 # define LV_CALENDAR_DEFAULT_DAY_NAMES {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"}
JohnnyK 5:071136c3eefa 430 # else
JohnnyK 5:071136c3eefa 431 # define LV_CALENDAR_DEFAULT_DAY_NAMES {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"}
JohnnyK 5:071136c3eefa 432 # endif
JohnnyK 5:071136c3eefa 433
JohnnyK 5:071136c3eefa 434 # define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
JohnnyK 5:071136c3eefa 435 # define LV_USE_CALENDAR_HEADER_ARROW 1
JohnnyK 5:071136c3eefa 436 # define LV_USE_CALENDAR_HEADER_DROPDOWN 1
JohnnyK 5:071136c3eefa 437 #endif /*LV_USE_CALENDAR*/
JohnnyK 5:071136c3eefa 438
JohnnyK 5:071136c3eefa 439 #define LV_USE_CHART 1
JohnnyK 5:071136c3eefa 440
JohnnyK 5:071136c3eefa 441 #define LV_USE_COLORWHEEL 1
JohnnyK 4:4208cec163ef 442
JohnnyK 5:071136c3eefa 443 #define LV_USE_IMGBTN 1
JohnnyK 5:071136c3eefa 444
JohnnyK 5:071136c3eefa 445 #define LV_USE_KEYBOARD 1
JohnnyK 5:071136c3eefa 446
JohnnyK 5:071136c3eefa 447 #define LV_USE_LED 1
JohnnyK 5:071136c3eefa 448
JohnnyK 5:071136c3eefa 449 #define LV_USE_LIST 1
JohnnyK 5:071136c3eefa 450
JohnnyK 5:071136c3eefa 451 #define LV_USE_METER 1
JohnnyK 5:071136c3eefa 452
JohnnyK 5:071136c3eefa 453 #define LV_USE_MSGBOX 1
JohnnyK 5:071136c3eefa 454
JohnnyK 5:071136c3eefa 455 #define LV_USE_SPINBOX 1
JohnnyK 5:071136c3eefa 456
JohnnyK 5:071136c3eefa 457 #define LV_USE_SPINNER 1
JohnnyK 5:071136c3eefa 458
JohnnyK 4:4208cec163ef 459 #define LV_USE_TABVIEW 1
JohnnyK 5:071136c3eefa 460
JohnnyK 5:071136c3eefa 461 #define LV_USE_TILEVIEW 1
JohnnyK 5:071136c3eefa 462
JohnnyK 5:071136c3eefa 463 #define LV_USE_WIN 1
JohnnyK 5:071136c3eefa 464
JohnnyK 5:071136c3eefa 465 #define LV_USE_SPAN 1
JohnnyK 5:071136c3eefa 466 #if LV_USE_SPAN
JohnnyK 5:071136c3eefa 467 /*A line text can contain maximum num of span descriptor */
JohnnyK 5:071136c3eefa 468 # define LV_SPAN_SNIPPET_STACK_SIZE 64
JohnnyK 4:4208cec163ef 469 #endif
JohnnyK 4:4208cec163ef 470
JohnnyK 5:071136c3eefa 471 /*-----------
JohnnyK 5:071136c3eefa 472 * Themes
JohnnyK 5:071136c3eefa 473 *----------*/
JohnnyK 5:071136c3eefa 474 /*A simple, impressive and very complete theme*/
JohnnyK 5:071136c3eefa 475 #define LV_USE_THEME_DEFAULT 1
JohnnyK 5:071136c3eefa 476 #if LV_USE_THEME_DEFAULT
JohnnyK 5:071136c3eefa 477
JohnnyK 5:071136c3eefa 478 /*0: Light mode; 1: Dark mode*/
JohnnyK 5:071136c3eefa 479 # define LV_THEME_DEFAULT_DARK 0
JohnnyK 5:071136c3eefa 480
JohnnyK 5:071136c3eefa 481 /*1: Enable grow on press*/
JohnnyK 5:071136c3eefa 482 # define LV_THEME_DEFAULT_GROW 1
JohnnyK 4:4208cec163ef 483
JohnnyK 5:071136c3eefa 484 /*Default transition time in [ms]*/
JohnnyK 5:071136c3eefa 485 # define LV_THEME_DEFAULT_TRANSITON_TIME 80
JohnnyK 5:071136c3eefa 486 #endif /*LV_USE_THEME_DEFAULT*/
JohnnyK 5:071136c3eefa 487
JohnnyK 5:071136c3eefa 488 /*An very simple them that is a good starting point for a custom theme*/
JohnnyK 5:071136c3eefa 489 #define LV_USE_THEME_BASIC 1
JohnnyK 5:071136c3eefa 490
JohnnyK 5:071136c3eefa 491 /*A theme designed for monochrome displays*/
JohnnyK 5:071136c3eefa 492 #define LV_USE_THEME_MONO 1
JohnnyK 5:071136c3eefa 493
JohnnyK 5:071136c3eefa 494 /*-----------
JohnnyK 5:071136c3eefa 495 * Layouts
JohnnyK 5:071136c3eefa 496 *----------*/
JohnnyK 5:071136c3eefa 497
JohnnyK 5:071136c3eefa 498 /*A layout similar to Flexbox in CSS.*/
JohnnyK 5:071136c3eefa 499 #define LV_USE_FLEX 1
JohnnyK 5:071136c3eefa 500
JohnnyK 5:071136c3eefa 501 /*A layout similar to Grid in CSS.*/
JohnnyK 5:071136c3eefa 502 #define LV_USE_GRID 1
JohnnyK 4:4208cec163ef 503
JohnnyK 4:4208cec163ef 504 /*==================
JohnnyK 5:071136c3eefa 505 * EXAMPLES
JohnnyK 5:071136c3eefa 506 *==================*/
JohnnyK 4:4208cec163ef 507
JohnnyK 5:071136c3eefa 508 /*Enable the examples to be built with the library*/
JohnnyK 5:071136c3eefa 509 #define LV_BUILD_EXAMPLES 1
JohnnyK 4:4208cec163ef 510
JohnnyK 4:4208cec163ef 511 /*--END OF LV_CONF_H--*/
JohnnyK 4:4208cec163ef 512
JohnnyK 4:4208cec163ef 513 #endif /*LV_CONF_H*/
JohnnyK 4:4208cec163ef 514
JohnnyK 5:071136c3eefa 515 #endif /*End of "Content enable"*/