Record and print values of an MPU6050

Dependencies:   LCD_DISCO_F746NG GRecorder BSP_DISCO_F746NG

Committer:
nathanld
Date:
Thu Jun 16 08:57:35 2022 +0000
Revision:
6:09e7353d7e54
Parent:
5:071136c3eefa
Code

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