Probleme char input

Dependencies:   TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG lvgl_RB FastPWM millis

Committer:
becanromain
Date:
Thu Feb 27 23:18:20 2020 +0000
Revision:
6:519d681050af
Parent:
5:cab3e2179cbf

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
becanromain 0:cf6b1eca3e67 1 /**
becanromain 0:cf6b1eca3e67 2 * @file lv_conf.h
becanromain 0:cf6b1eca3e67 3 *
becanromain 0:cf6b1eca3e67 4 */
becanromain 0:cf6b1eca3e67 5
becanromain 0:cf6b1eca3e67 6 /*
becanromain 0:cf6b1eca3e67 7 * COPY THIS FILE AS `lv_conf.h` NEXT TO the `lvgl` FOLDER
becanromain 0:cf6b1eca3e67 8 */
becanromain 0:cf6b1eca3e67 9
becanromain 0:cf6b1eca3e67 10 #if 1 /*Set it to "1" to enable content*/
becanromain 0:cf6b1eca3e67 11
becanromain 0:cf6b1eca3e67 12 #ifndef LV_CONF_H
becanromain 0:cf6b1eca3e67 13 #define LV_CONF_H
becanromain 0:cf6b1eca3e67 14 /* clang-format off */
becanromain 0:cf6b1eca3e67 15
becanromain 0:cf6b1eca3e67 16 #include <stdint.h>
becanromain 0:cf6b1eca3e67 17
becanromain 0:cf6b1eca3e67 18 /*====================
becanromain 0:cf6b1eca3e67 19 Graphical settings
becanromain 0:cf6b1eca3e67 20 *====================*/
becanromain 0:cf6b1eca3e67 21
becanromain 0:cf6b1eca3e67 22 /* Maximal horizontal and vertical resolution to support by the library.*/
becanromain 0:cf6b1eca3e67 23 #define LV_HOR_RES_MAX 480
becanromain 0:cf6b1eca3e67 24 #define LV_VER_RES_MAX 272
becanromain 0:cf6b1eca3e67 25
becanromain 0:cf6b1eca3e67 26 /* Color depth:
becanromain 0:cf6b1eca3e67 27 * - 1: 1 byte per pixel
becanromain 0:cf6b1eca3e67 28 * - 8: RGB233
becanromain 0:cf6b1eca3e67 29 * - 16: RGB565
becanromain 0:cf6b1eca3e67 30 * - 32: ARGB8888
becanromain 0:cf6b1eca3e67 31 */
becanromain 0:cf6b1eca3e67 32 #define LV_COLOR_DEPTH 32
becanromain 0:cf6b1eca3e67 33
becanromain 0:cf6b1eca3e67 34 /* Swap the 2 bytes of RGB565 color.
becanromain 0:cf6b1eca3e67 35 * Useful if the display has a 8 bit interface (e.g. SPI)*/
becanromain 0:cf6b1eca3e67 36 #define LV_COLOR_16_SWAP 0
becanromain 0:cf6b1eca3e67 37
becanromain 0:cf6b1eca3e67 38 /* 1: Enable screen transparency.
becanromain 0:cf6b1eca3e67 39 * Useful for OSD or other overlapping GUIs.
becanromain 0:cf6b1eca3e67 40 * Requires `LV_COLOR_DEPTH = 32` colors and the screen's style should be modified: `style.body.opa = ...`*/
becanromain 0:cf6b1eca3e67 41 #define LV_COLOR_SCREEN_TRANSP 0
becanromain 0:cf6b1eca3e67 42
becanromain 0:cf6b1eca3e67 43 /*Images pixels with this color will not be drawn (with chroma keying)*/
becanromain 0:cf6b1eca3e67 44 #define LV_COLOR_TRANSP LV_COLOR_LIME /*LV_COLOR_LIME: pure green*/
becanromain 0:cf6b1eca3e67 45
becanromain 0:cf6b1eca3e67 46 /* Enable anti-aliasing (lines, and radiuses will be smoothed) */
becanromain 0:cf6b1eca3e67 47 #define LV_ANTIALIAS 1
becanromain 0:cf6b1eca3e67 48
becanromain 0:cf6b1eca3e67 49 /* Default display refresh period.
becanromain 0:cf6b1eca3e67 50 * Can be changed in the display driver (`lv_disp_drv_t`).*/
becanromain 0:cf6b1eca3e67 51 #define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/
becanromain 0:cf6b1eca3e67 52
becanromain 0:cf6b1eca3e67 53 /* Dot Per Inch: used to initialize default sizes.
becanromain 0:cf6b1eca3e67 54 * E.g. a button with width = LV_DPI / 2 -> half inch wide
becanromain 0:cf6b1eca3e67 55 * (Not so important, you can adjust it to modify default sizes and spaces)*/
becanromain 0:cf6b1eca3e67 56 #define LV_DPI 100 /*[px]*/
becanromain 0:cf6b1eca3e67 57
becanromain 0:cf6b1eca3e67 58 /* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
becanromain 0:cf6b1eca3e67 59 typedef int16_t lv_coord_t;
becanromain 0:cf6b1eca3e67 60
becanromain 0:cf6b1eca3e67 61 /*=========================
becanromain 0:cf6b1eca3e67 62 Memory manager settings
becanromain 0:cf6b1eca3e67 63 *=========================*/
becanromain 0:cf6b1eca3e67 64
becanromain 0:cf6b1eca3e67 65 /* LittelvGL's internal memory manager's settings.
becanromain 0:cf6b1eca3e67 66 * The graphical objects and other related data are stored here. */
becanromain 0:cf6b1eca3e67 67
becanromain 0:cf6b1eca3e67 68 /* 1: use custom malloc/free, 0: use the built-in `lv_mem_alloc` and `lv_mem_free` */
becanromain 0:cf6b1eca3e67 69 #define LV_MEM_CUSTOM 0
becanromain 0:cf6b1eca3e67 70 #if LV_MEM_CUSTOM == 0
becanromain 0:cf6b1eca3e67 71 /* Size of the memory used by `lv_mem_alloc` in bytes (>= 2kB)*/
becanromain 0:cf6b1eca3e67 72 # define LV_MEM_SIZE (32U * 1024U)
becanromain 0:cf6b1eca3e67 73
becanromain 0:cf6b1eca3e67 74 /* Complier prefix for a big array declaration */
becanromain 0:cf6b1eca3e67 75 # define LV_MEM_ATTR
becanromain 0:cf6b1eca3e67 76
becanromain 0:cf6b1eca3e67 77 /* Set an address for the memory pool instead of allocating it as an array.
becanromain 0:cf6b1eca3e67 78 * Can be in external SRAM too. */
becanromain 0:cf6b1eca3e67 79 # define LV_MEM_ADR 0
becanromain 0:cf6b1eca3e67 80
becanromain 0:cf6b1eca3e67 81 /* Automatically defrag. on free. Defrag. means joining the adjacent free cells. */
becanromain 0:cf6b1eca3e67 82 # define LV_MEM_AUTO_DEFRAG 1
becanromain 0:cf6b1eca3e67 83 #else /*LV_MEM_CUSTOM*/
becanromain 0:cf6b1eca3e67 84 # define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
becanromain 0:cf6b1eca3e67 85 # define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/
becanromain 0:cf6b1eca3e67 86 # define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/
becanromain 0:cf6b1eca3e67 87 #endif /*LV_MEM_CUSTOM*/
becanromain 0:cf6b1eca3e67 88
becanromain 0:cf6b1eca3e67 89 /* Garbage Collector settings
becanromain 0:cf6b1eca3e67 90 * Used if lvgl is binded to higher level language and the memory is managed by that language */
becanromain 0:cf6b1eca3e67 91 #define LV_ENABLE_GC 0
becanromain 0:cf6b1eca3e67 92 #if LV_ENABLE_GC != 0
becanromain 0:cf6b1eca3e67 93 # define LV_GC_INCLUDE "gc.h" /*Include Garbage Collector related things*/
becanromain 0:cf6b1eca3e67 94 # define LV_MEM_CUSTOM_REALLOC your_realloc /*Wrapper to realloc*/
becanromain 0:cf6b1eca3e67 95 # define LV_MEM_CUSTOM_GET_SIZE your_mem_get_size /*Wrapper to lv_mem_get_size*/
becanromain 0:cf6b1eca3e67 96 #endif /* LV_ENABLE_GC */
becanromain 0:cf6b1eca3e67 97
becanromain 0:cf6b1eca3e67 98 /*=======================
becanromain 0:cf6b1eca3e67 99 Input device settings
becanromain 0:cf6b1eca3e67 100 *=======================*/
becanromain 0:cf6b1eca3e67 101
becanromain 0:cf6b1eca3e67 102 /* Input device default settings.
becanromain 0:cf6b1eca3e67 103 * Can be changed in the Input device driver (`lv_indev_drv_t`)*/
becanromain 0:cf6b1eca3e67 104
becanromain 0:cf6b1eca3e67 105 /* Input device read period in milliseconds */
becanromain 0:cf6b1eca3e67 106 #define LV_INDEV_DEF_READ_PERIOD 30
becanromain 0:cf6b1eca3e67 107
becanromain 0:cf6b1eca3e67 108 /* Drag threshold in pixels */
becanromain 0:cf6b1eca3e67 109 #define LV_INDEV_DEF_DRAG_LIMIT 10
becanromain 0:cf6b1eca3e67 110
becanromain 0:cf6b1eca3e67 111 /* Drag throw slow-down in [%]. Greater value -> faster slow-down */
becanromain 0:cf6b1eca3e67 112 #define LV_INDEV_DEF_DRAG_THROW 20
becanromain 0:cf6b1eca3e67 113
becanromain 0:cf6b1eca3e67 114 /* Long press time in milliseconds.
becanromain 0:cf6b1eca3e67 115 * Time to send `LV_EVENT_LONG_PRESSSED`) */
becanromain 0:cf6b1eca3e67 116 #define LV_INDEV_DEF_LONG_PRESS_TIME 400
becanromain 0:cf6b1eca3e67 117
becanromain 0:cf6b1eca3e67 118 /* Repeated trigger period in long press [ms]
becanromain 0:cf6b1eca3e67 119 * Time between `LV_EVENT_LONG_PRESSED_REPEAT */
becanromain 0:cf6b1eca3e67 120 #define LV_INDEV_DEF_LONG_PRESS_REP_TIME 100
becanromain 0:cf6b1eca3e67 121
becanromain 0:cf6b1eca3e67 122 /*==================
becanromain 0:cf6b1eca3e67 123 * Feature usage
becanromain 0:cf6b1eca3e67 124 *==================*/
becanromain 0:cf6b1eca3e67 125
becanromain 0:cf6b1eca3e67 126 /*1: Enable the Animations */
becanromain 0:cf6b1eca3e67 127 #define LV_USE_ANIMATION 1
becanromain 0:cf6b1eca3e67 128 #if LV_USE_ANIMATION
becanromain 0:cf6b1eca3e67 129
becanromain 0:cf6b1eca3e67 130 /*Declare the type of the user data of animations (can be e.g. `void *`, `int`, `struct`)*/
becanromain 0:cf6b1eca3e67 131 typedef void * lv_anim_user_data_t;
becanromain 0:cf6b1eca3e67 132
becanromain 0:cf6b1eca3e67 133 #endif
becanromain 0:cf6b1eca3e67 134
becanromain 0:cf6b1eca3e67 135 /* 1: Enable shadow drawing*/
becanromain 0:cf6b1eca3e67 136 #define LV_USE_SHADOW 1
becanromain 0:cf6b1eca3e67 137
becanromain 0:cf6b1eca3e67 138 /* 1: Enable object groups (for keyboard/encoder navigation) */
becanromain 0:cf6b1eca3e67 139 #define LV_USE_GROUP 1
becanromain 0:cf6b1eca3e67 140 #if LV_USE_GROUP
becanromain 0:cf6b1eca3e67 141 typedef void * lv_group_user_data_t;
becanromain 0:cf6b1eca3e67 142 #endif /*LV_USE_GROUP*/
becanromain 0:cf6b1eca3e67 143
becanromain 0:cf6b1eca3e67 144 /* 1: Enable GPU interface*/
becanromain 0:cf6b1eca3e67 145 #define LV_USE_GPU 1
becanromain 0:cf6b1eca3e67 146
becanromain 0:cf6b1eca3e67 147 /* 1: Enable file system (might be required for images */
becanromain 0:cf6b1eca3e67 148 #define LV_USE_FILESYSTEM 1
becanromain 0:cf6b1eca3e67 149 #if LV_USE_FILESYSTEM
becanromain 0:cf6b1eca3e67 150 /*Declare the type of the user data of file system drivers (can be e.g. `void *`, `int`, `struct`)*/
becanromain 0:cf6b1eca3e67 151 typedef void * lv_fs_drv_user_data_t;
becanromain 0:cf6b1eca3e67 152 #endif
becanromain 0:cf6b1eca3e67 153
becanromain 0:cf6b1eca3e67 154 /*1: Add a `user_data` to drivers and objects*/
becanromain 6:519d681050af 155 #define LV_USE_USER_DATA 1
becanromain 0:cf6b1eca3e67 156
becanromain 0:cf6b1eca3e67 157 /*========================
becanromain 0:cf6b1eca3e67 158 * Image decoder and cache
becanromain 0:cf6b1eca3e67 159 *========================*/
becanromain 0:cf6b1eca3e67 160
becanromain 0:cf6b1eca3e67 161 /* 1: Enable indexed (palette) images */
becanromain 0:cf6b1eca3e67 162 #define LV_IMG_CF_INDEXED 1
becanromain 0:cf6b1eca3e67 163
becanromain 0:cf6b1eca3e67 164 /* 1: Enable alpha indexed images */
becanromain 0:cf6b1eca3e67 165 #define LV_IMG_CF_ALPHA 1
becanromain 0:cf6b1eca3e67 166
becanromain 0:cf6b1eca3e67 167 /* Default image cache size. Image caching keeps the images opened.
becanromain 0:cf6b1eca3e67 168 * If only the built-in image formats are used there is no real advantage of caching.
becanromain 0:cf6b1eca3e67 169 * (I.e. no new image decoder is added)
becanromain 0:cf6b1eca3e67 170 * With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
becanromain 0:cf6b1eca3e67 171 * However the opened images might consume additional RAM.
becanromain 0:cf6b1eca3e67 172 * LV_IMG_CACHE_DEF_SIZE must be >= 1 */
becanromain 0:cf6b1eca3e67 173 #define LV_IMG_CACHE_DEF_SIZE 1
becanromain 0:cf6b1eca3e67 174
becanromain 0:cf6b1eca3e67 175 /*Declare the type of the user data of image decoder (can be e.g. `void *`, `int`, `struct`)*/
becanromain 0:cf6b1eca3e67 176 typedef void * lv_img_decoder_user_data_t;
becanromain 0:cf6b1eca3e67 177
becanromain 0:cf6b1eca3e67 178 /*=====================
becanromain 0:cf6b1eca3e67 179 * Compiler settings
becanromain 0:cf6b1eca3e67 180 *====================*/
becanromain 0:cf6b1eca3e67 181 /* Define a custom attribute to `lv_tick_inc` function */
becanromain 0:cf6b1eca3e67 182 #define LV_ATTRIBUTE_TICK_INC
becanromain 0:cf6b1eca3e67 183
becanromain 0:cf6b1eca3e67 184 /* Define a custom attribute to `lv_task_handler` function */
becanromain 0:cf6b1eca3e67 185 #define LV_ATTRIBUTE_TASK_HANDLER
becanromain 0:cf6b1eca3e67 186
becanromain 0:cf6b1eca3e67 187 /* With size optimization (-Os) the compiler might not align data to
becanromain 0:cf6b1eca3e67 188 * 4 or 8 byte boundary. This alignment will be explicitly applied where needed.
becanromain 0:cf6b1eca3e67 189 * E.g. __attribute__((aligned(4))) */
becanromain 0:cf6b1eca3e67 190 #define LV_ATTRIBUTE_MEM_ALIGN
becanromain 0:cf6b1eca3e67 191
becanromain 0:cf6b1eca3e67 192 /* Attribute to mark large constant arrays for example
becanromain 0:cf6b1eca3e67 193 * font's bitmaps */
becanromain 0:cf6b1eca3e67 194 #define LV_ATTRIBUTE_LARGE_CONST
becanromain 0:cf6b1eca3e67 195
becanromain 0:cf6b1eca3e67 196 /*===================
becanromain 0:cf6b1eca3e67 197 * HAL settings
becanromain 0:cf6b1eca3e67 198 *==================*/
becanromain 0:cf6b1eca3e67 199
becanromain 0:cf6b1eca3e67 200 /* 1: use a custom tick source.
becanromain 0:cf6b1eca3e67 201 * It removes the need to manually update the tick with `lv_tick_inc`) */
becanromain 0:cf6b1eca3e67 202 #define LV_TICK_CUSTOM 0
becanromain 0:cf6b1eca3e67 203 #if LV_TICK_CUSTOM == 1
becanromain 0:cf6b1eca3e67 204 #define LV_TICK_CUSTOM_INCLUDE "something.h" /*Header for the sys time function*/
becanromain 0:cf6b1eca3e67 205 #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current systime in ms*/
becanromain 0:cf6b1eca3e67 206 #endif /*LV_TICK_CUSTOM*/
becanromain 0:cf6b1eca3e67 207
becanromain 0:cf6b1eca3e67 208 typedef void * lv_disp_drv_user_data_t; /*Type of user data in the display driver*/
becanromain 0:cf6b1eca3e67 209 typedef void * lv_indev_drv_user_data_t; /*Type of user data in the input device driver*/
becanromain 0:cf6b1eca3e67 210
becanromain 0:cf6b1eca3e67 211 /*================
becanromain 0:cf6b1eca3e67 212 * Log settings
becanromain 0:cf6b1eca3e67 213 *===============*/
becanromain 0:cf6b1eca3e67 214
becanromain 0:cf6b1eca3e67 215 /*1: Enable the log module*/
becanromain 0:cf6b1eca3e67 216 #define LV_USE_LOG 0
becanromain 0:cf6b1eca3e67 217 #if LV_USE_LOG
becanromain 0:cf6b1eca3e67 218 /* How important log should be added:
becanromain 0:cf6b1eca3e67 219 * LV_LOG_LEVEL_TRACE A lot of logs to give detailed information
becanromain 0:cf6b1eca3e67 220 * LV_LOG_LEVEL_INFO Log important events
becanromain 0:cf6b1eca3e67 221 * LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem
becanromain 0:cf6b1eca3e67 222 * LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
becanromain 0:cf6b1eca3e67 223 * LV_LOG_LEVEL_NONE Do not log anything
becanromain 0:cf6b1eca3e67 224 */
becanromain 0:cf6b1eca3e67 225 # define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
becanromain 0:cf6b1eca3e67 226
becanromain 0:cf6b1eca3e67 227 /* 1: Print the log with 'printf';
becanromain 0:cf6b1eca3e67 228 * 0: user need to register a callback with `lv_log_register_print_cb`*/
becanromain 0:cf6b1eca3e67 229 # define LV_LOG_PRINTF 0
becanromain 0:cf6b1eca3e67 230 #endif /*LV_USE_LOG*/
becanromain 0:cf6b1eca3e67 231
becanromain 0:cf6b1eca3e67 232 /*================
becanromain 0:cf6b1eca3e67 233 * THEME USAGE
becanromain 0:cf6b1eca3e67 234 *================*/
becanromain 0:cf6b1eca3e67 235 #define LV_THEME_LIVE_UPDATE 1 /*1: Allow theme switching at run time. Uses 8..10 kB of RAM*/
becanromain 0:cf6b1eca3e67 236
becanromain 0:cf6b1eca3e67 237 #define LV_USE_THEME_TEMPL 1 /*Just for test*/
becanromain 0:cf6b1eca3e67 238 #define LV_USE_THEME_DEFAULT 1 /*Built mainly from the built-in styles. Consumes very few RAM*/
becanromain 0:cf6b1eca3e67 239 #define LV_USE_THEME_ALIEN 1 /*Dark futuristic theme*/
becanromain 0:cf6b1eca3e67 240 #define LV_USE_THEME_NIGHT 1 /*Dark elegant theme*/
becanromain 0:cf6b1eca3e67 241 #define LV_USE_THEME_MONO 1 /*Mono color theme for monochrome displays*/
becanromain 0:cf6b1eca3e67 242 #define LV_USE_THEME_MATERIAL 1 /*Flat theme with bold colors and light shadows*/
becanromain 0:cf6b1eca3e67 243 #define LV_USE_THEME_ZEN 1 /*Peaceful, mainly light theme */
becanromain 0:cf6b1eca3e67 244 #define LV_USE_THEME_NEMO 1 /*Water-like theme based on the movie "Finding Nemo"*/
becanromain 0:cf6b1eca3e67 245
becanromain 0:cf6b1eca3e67 246 /*==================
becanromain 0:cf6b1eca3e67 247 * FONT USAGE
becanromain 0:cf6b1eca3e67 248 *===================*/
becanromain 0:cf6b1eca3e67 249
becanromain 0:cf6b1eca3e67 250 /* The built-in fonts contains the ASCII range and some Symbols with 4 bit-per-pixel.
becanromain 0:cf6b1eca3e67 251 * The symbols are available via `LV_SYMBOL_...` defines
becanromain 0:cf6b1eca3e67 252 * More info about fonts: https://docs.littlevgl.com/#Fonts
becanromain 0:cf6b1eca3e67 253 * To create a new font go to: https://littlevgl.com/ttf-font-to-c-array
becanromain 0:cf6b1eca3e67 254 */
becanromain 0:cf6b1eca3e67 255
becanromain 0:cf6b1eca3e67 256 /* Robot fonts with bpp = 4
becanromain 0:cf6b1eca3e67 257 * https://fonts.google.com/specimen/Roboto */
becanromain 6:519d681050af 258 #define LV_FONT_ROBOTO_12 0
becanromain 6:519d681050af 259 #define LV_FONT_ROBOTO_16 0
becanromain 6:519d681050af 260 #define LV_FONT_ROBOTO_22 0
becanromain 6:519d681050af 261 #define LV_FONT_ROBOTO_28 0
becanromain 0:cf6b1eca3e67 262
becanromain 0:cf6b1eca3e67 263 /*Pixel perfect monospace font
becanromain 0:cf6b1eca3e67 264 * http://pelulamu.net/unscii/ */
becanromain 0:cf6b1eca3e67 265 #define LV_FONT_UNSCII_8 0
becanromain 0:cf6b1eca3e67 266
becanromain 0:cf6b1eca3e67 267 /* Optionally declare your custom fonts here.
becanromain 0:cf6b1eca3e67 268 * You can use these fonts as default font too
becanromain 0:cf6b1eca3e67 269 * and they will be available globally. E.g.
becanromain 0:cf6b1eca3e67 270 * #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \
becanromain 0:cf6b1eca3e67 271 * LV_FONT_DECLARE(my_font_2)
becanromain 0:cf6b1eca3e67 272 */
becanromain 6:519d681050af 273 #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(RB_lv_font_roboto_10) \
becanromain 6:519d681050af 274 LV_FONT_DECLARE(RB_lv_font_roboto_12) \
becanromain 6:519d681050af 275 LV_FONT_DECLARE(RB_lv_font_roboto_16) \
becanromain 6:519d681050af 276 LV_FONT_DECLARE(RB_lv_font_roboto_18) \
becanromain 6:519d681050af 277 LV_FONT_DECLARE(RB_lv_font_roboto_22) \
becanromain 6:519d681050af 278 LV_FONT_DECLARE(RB_lv_font_roboto_bold_12) \
becanromain 6:519d681050af 279 LV_FONT_DECLARE(RB_lv_font_roboto_bold_16) \
becanromain 6:519d681050af 280 LV_FONT_DECLARE(RB_lv_font_roboto_bold_18) \
becanromain 6:519d681050af 281 LV_FONT_DECLARE(RB_lv_font_roboto_bold_22)
becanromain 0:cf6b1eca3e67 282
becanromain 0:cf6b1eca3e67 283 /*Always set a default font from the built-in fonts*/
becanromain 6:519d681050af 284 #define LV_FONT_DEFAULT &RB_lv_font_roboto_16
becanromain 4:6a3d12663549 285 //#define LV_FONT_DEFAULT &RB_lv_font_roboto_16 //GABOR
becanromain 0:cf6b1eca3e67 286
becanromain 0:cf6b1eca3e67 287 /* Enable it if you have fonts with a lot of characters.
becanromain 0:cf6b1eca3e67 288 * The limit depends on the font size, font face and bpp
becanromain 0:cf6b1eca3e67 289 * but with > 10,000 characters if you see issues probably you need to enable it.*/
becanromain 0:cf6b1eca3e67 290 #define LV_FONT_FMT_TXT_LARGE 0
becanromain 0:cf6b1eca3e67 291
becanromain 0:cf6b1eca3e67 292 /*Declare the type of the user data of fonts (can be e.g. `void *`, `int`, `struct`)*/
becanromain 0:cf6b1eca3e67 293 typedef void * lv_font_user_data_t;
becanromain 0:cf6b1eca3e67 294
becanromain 0:cf6b1eca3e67 295 /*=================
becanromain 0:cf6b1eca3e67 296 * Text settings
becanromain 0:cf6b1eca3e67 297 *=================*/
becanromain 0:cf6b1eca3e67 298
becanromain 0:cf6b1eca3e67 299 /* Select a character encoding for strings.
becanromain 0:cf6b1eca3e67 300 * Your IDE or editor should have the same character encoding
becanromain 0:cf6b1eca3e67 301 * - LV_TXT_ENC_UTF8
becanromain 0:cf6b1eca3e67 302 * - LV_TXT_ENC_ASCII
becanromain 0:cf6b1eca3e67 303 * */
becanromain 0:cf6b1eca3e67 304 #define LV_TXT_ENC LV_TXT_ENC_UTF8
becanromain 0:cf6b1eca3e67 305
becanromain 0:cf6b1eca3e67 306 /*Can break (wrap) texts on these chars*/
becanromain 0:cf6b1eca3e67 307 #define LV_TXT_BREAK_CHARS " ,.;:-_"
becanromain 0:cf6b1eca3e67 308
becanromain 0:cf6b1eca3e67 309 /*===================
becanromain 0:cf6b1eca3e67 310 * LV_OBJ SETTINGS
becanromain 0:cf6b1eca3e67 311 *==================*/
becanromain 0:cf6b1eca3e67 312
becanromain 0:cf6b1eca3e67 313 /*Declare the type of the user data of object (can be e.g. `void *`, `int`, `struct`)*/
becanromain 6:519d681050af 314 typedef void *lv_obj_user_data_t;
becanromain 0:cf6b1eca3e67 315
becanromain 0:cf6b1eca3e67 316 /*1: enable `lv_obj_realaign()` based on `lv_obj_align()` parameters*/
becanromain 0:cf6b1eca3e67 317 #define LV_USE_OBJ_REALIGN 1
becanromain 0:cf6b1eca3e67 318
becanromain 0:cf6b1eca3e67 319 /* Enable to make the object clickable on a larger area.
becanromain 0:cf6b1eca3e67 320 * LV_EXT_CLICK_AREA_OFF or 0: Disable this feature
becanromain 0:cf6b1eca3e67 321 * LV_EXT_CLICK_AREA_TINY: The extra area can be adjusted horizontally and vertically (0..255 px)
becanromain 0:cf6b1eca3e67 322 * LV_EXT_CLICK_AREA_FULL: The extra area can be adjusted in all 4 directions (-32k..+32k px)
becanromain 0:cf6b1eca3e67 323 */
becanromain 0:cf6b1eca3e67 324 #define LV_USE_EXT_CLICK_AREA LV_EXT_CLICK_AREA_OFF
becanromain 0:cf6b1eca3e67 325
becanromain 0:cf6b1eca3e67 326 /*==================
becanromain 0:cf6b1eca3e67 327 * LV OBJ X USAGE
becanromain 0:cf6b1eca3e67 328 *================*/
becanromain 0:cf6b1eca3e67 329 /*
becanromain 0:cf6b1eca3e67 330 * Documentation of the object types: https://docs.littlevgl.com/#Object-types
becanromain 0:cf6b1eca3e67 331 */
becanromain 0:cf6b1eca3e67 332
becanromain 0:cf6b1eca3e67 333 /*Arc (dependencies: -)*/
becanromain 0:cf6b1eca3e67 334 #define LV_USE_ARC 1
becanromain 0:cf6b1eca3e67 335
becanromain 0:cf6b1eca3e67 336 /*Bar (dependencies: -)*/
becanromain 0:cf6b1eca3e67 337 #define LV_USE_BAR 1
becanromain 0:cf6b1eca3e67 338
becanromain 0:cf6b1eca3e67 339 /*Button (dependencies: lv_cont*/
becanromain 0:cf6b1eca3e67 340 #define LV_USE_BTN 1
becanromain 0:cf6b1eca3e67 341 #if LV_USE_BTN != 0
becanromain 0:cf6b1eca3e67 342 /*Enable button-state animations - draw a circle on click (dependencies: LV_USE_ANIMATION)*/
becanromain 0:cf6b1eca3e67 343 # define LV_BTN_INK_EFFECT 1
becanromain 0:cf6b1eca3e67 344 #endif
becanromain 0:cf6b1eca3e67 345
becanromain 0:cf6b1eca3e67 346 /*Button matrix (dependencies: -)*/
becanromain 0:cf6b1eca3e67 347 #define LV_USE_BTNM 1
becanromain 0:cf6b1eca3e67 348
becanromain 0:cf6b1eca3e67 349 /*Calendar (dependencies: -)*/
becanromain 0:cf6b1eca3e67 350 #define LV_USE_CALENDAR 1
becanromain 0:cf6b1eca3e67 351
becanromain 0:cf6b1eca3e67 352 /*Canvas (dependencies: lv_img)*/
becanromain 0:cf6b1eca3e67 353 #define LV_USE_CANVAS 1
becanromain 0:cf6b1eca3e67 354
becanromain 0:cf6b1eca3e67 355 /*Check box (dependencies: lv_btn, lv_label)*/
becanromain 0:cf6b1eca3e67 356 #define LV_USE_CB 1
becanromain 0:cf6b1eca3e67 357
becanromain 0:cf6b1eca3e67 358 /*Chart (dependencies: -)*/
becanromain 0:cf6b1eca3e67 359 #define LV_USE_CHART 1
becanromain 0:cf6b1eca3e67 360 #if LV_USE_CHART
becanromain 0:cf6b1eca3e67 361 # define LV_CHART_AXIS_TICK_LABEL_MAX_LEN 20
becanromain 0:cf6b1eca3e67 362 #endif
becanromain 0:cf6b1eca3e67 363
becanromain 0:cf6b1eca3e67 364 /*Container (dependencies: -*/
becanromain 0:cf6b1eca3e67 365 #define LV_USE_CONT 1
becanromain 0:cf6b1eca3e67 366
becanromain 0:cf6b1eca3e67 367 /*Drop down list (dependencies: lv_page, lv_label, lv_symbol_def.h)*/
becanromain 0:cf6b1eca3e67 368 #define LV_USE_DDLIST 1
becanromain 0:cf6b1eca3e67 369 #if LV_USE_DDLIST != 0
becanromain 0:cf6b1eca3e67 370 /*Open and close default animation time [ms] (0: no animation)*/
becanromain 0:cf6b1eca3e67 371 # define LV_DDLIST_DEF_ANIM_TIME 200
becanromain 0:cf6b1eca3e67 372 #endif
becanromain 0:cf6b1eca3e67 373
becanromain 0:cf6b1eca3e67 374 /*Gauge (dependencies:lv_bar, lv_lmeter)*/
becanromain 0:cf6b1eca3e67 375 #define LV_USE_GAUGE 1
becanromain 0:cf6b1eca3e67 376
becanromain 0:cf6b1eca3e67 377 /*Image (dependencies: lv_label*/
becanromain 0:cf6b1eca3e67 378 #define LV_USE_IMG 1
becanromain 0:cf6b1eca3e67 379
becanromain 0:cf6b1eca3e67 380 /*Image Button (dependencies: lv_btn*/
becanromain 0:cf6b1eca3e67 381 #define LV_USE_IMGBTN 1
becanromain 0:cf6b1eca3e67 382 #if LV_USE_IMGBTN
becanromain 0:cf6b1eca3e67 383 /*1: The imgbtn requires left, mid and right parts and the width can be set freely*/
becanromain 0:cf6b1eca3e67 384 # define LV_IMGBTN_TILED 0
becanromain 0:cf6b1eca3e67 385 #endif
becanromain 0:cf6b1eca3e67 386
becanromain 0:cf6b1eca3e67 387 /*Keyboard (dependencies: lv_btnm)*/
becanromain 0:cf6b1eca3e67 388 #define LV_USE_KB 1
becanromain 0:cf6b1eca3e67 389
becanromain 0:cf6b1eca3e67 390 /*Label (dependencies: -*/
becanromain 0:cf6b1eca3e67 391 #define LV_USE_LABEL 1
becanromain 0:cf6b1eca3e67 392 #if LV_USE_LABEL != 0
becanromain 0:cf6b1eca3e67 393 /*Hor, or ver. scroll speed [px/sec] in 'LV_LABEL_LONG_ROLL/ROLL_CIRC' mode*/
becanromain 0:cf6b1eca3e67 394 # define LV_LABEL_DEF_SCROLL_SPEED 25
becanromain 0:cf6b1eca3e67 395
becanromain 0:cf6b1eca3e67 396 /* Waiting period at beginning/end of animation cycle */
becanromain 0:cf6b1eca3e67 397 # define LV_LABEL_WAIT_CHAR_COUNT 3
becanromain 0:cf6b1eca3e67 398
becanromain 0:cf6b1eca3e67 399 /*Enable selecting text of the label */
becanromain 0:cf6b1eca3e67 400 # define LV_LABEL_TEXT_SEL 0
becanromain 0:cf6b1eca3e67 401
becanromain 0:cf6b1eca3e67 402 /*Store extra some info in labels (12 bytes) to speed up drawing of very long texts*/
becanromain 0:cf6b1eca3e67 403 # define LV_LABEL_LONG_TXT_HINT 0
becanromain 0:cf6b1eca3e67 404 #endif
becanromain 0:cf6b1eca3e67 405
becanromain 0:cf6b1eca3e67 406 /*LED (dependencies: -)*/
becanromain 0:cf6b1eca3e67 407 #define LV_USE_LED 1
becanromain 0:cf6b1eca3e67 408
becanromain 0:cf6b1eca3e67 409 /*Line (dependencies: -*/
becanromain 0:cf6b1eca3e67 410 #define LV_USE_LINE 1
becanromain 0:cf6b1eca3e67 411
becanromain 0:cf6b1eca3e67 412 /*List (dependencies: lv_page, lv_btn, lv_label, (lv_img optionally for icons ))*/
becanromain 0:cf6b1eca3e67 413 #define LV_USE_LIST 1
becanromain 0:cf6b1eca3e67 414 #if LV_USE_LIST != 0
becanromain 0:cf6b1eca3e67 415 /*Default animation time of focusing to a list element [ms] (0: no animation) */
becanromain 0:cf6b1eca3e67 416 # define LV_LIST_DEF_ANIM_TIME 100
becanromain 0:cf6b1eca3e67 417 #endif
becanromain 0:cf6b1eca3e67 418
becanromain 0:cf6b1eca3e67 419 /*Line meter (dependencies: *;)*/
becanromain 0:cf6b1eca3e67 420 #define LV_USE_LMETER 1
becanromain 0:cf6b1eca3e67 421
becanromain 0:cf6b1eca3e67 422 /*Message box (dependencies: lv_rect, lv_btnm, lv_label)*/
becanromain 0:cf6b1eca3e67 423 #define LV_USE_MBOX 1
becanromain 0:cf6b1eca3e67 424
becanromain 0:cf6b1eca3e67 425 /*Page (dependencies: lv_cont)*/
becanromain 0:cf6b1eca3e67 426 #define LV_USE_PAGE 1
becanromain 0:cf6b1eca3e67 427 #if LV_USE_PAGE != 0
becanromain 0:cf6b1eca3e67 428 /*Focus default animation time [ms] (0: no animation)*/
becanromain 0:cf6b1eca3e67 429 # define LV_PAGE_DEF_ANIM_TIME 400
becanromain 0:cf6b1eca3e67 430 #endif
becanromain 0:cf6b1eca3e67 431
becanromain 0:cf6b1eca3e67 432 /*Preload (dependencies: lv_arc, lv_anim)*/
becanromain 0:cf6b1eca3e67 433 #define LV_USE_PRELOAD 1
becanromain 0:cf6b1eca3e67 434 #if LV_USE_PRELOAD != 0
becanromain 0:cf6b1eca3e67 435 # define LV_PRELOAD_DEF_ARC_LENGTH 60 /*[deg]*/
becanromain 0:cf6b1eca3e67 436 # define LV_PRELOAD_DEF_SPIN_TIME 1000 /*[ms]*/
becanromain 0:cf6b1eca3e67 437 # define LV_PRELOAD_DEF_ANIM LV_PRELOAD_TYPE_SPINNING_ARC
becanromain 0:cf6b1eca3e67 438 #endif
becanromain 0:cf6b1eca3e67 439
becanromain 0:cf6b1eca3e67 440 /*Roller (dependencies: lv_ddlist)*/
becanromain 0:cf6b1eca3e67 441 #define LV_USE_ROLLER 1
becanromain 0:cf6b1eca3e67 442 #if LV_USE_ROLLER != 0
becanromain 0:cf6b1eca3e67 443 /*Focus animation time [ms] (0: no animation)*/
becanromain 0:cf6b1eca3e67 444 # define LV_ROLLER_DEF_ANIM_TIME 200
becanromain 0:cf6b1eca3e67 445
becanromain 0:cf6b1eca3e67 446 /*Number of extra "pages" when the roller is infinite*/
becanromain 0:cf6b1eca3e67 447 # define LV_ROLLER_INF_PAGES 7
becanromain 0:cf6b1eca3e67 448 #endif
becanromain 0:cf6b1eca3e67 449
becanromain 0:cf6b1eca3e67 450 /*Slider (dependencies: lv_bar)*/
becanromain 0:cf6b1eca3e67 451 #define LV_USE_SLIDER 1
becanromain 0:cf6b1eca3e67 452
becanromain 0:cf6b1eca3e67 453 /*Spinbox (dependencies: lv_ta)*/
becanromain 0:cf6b1eca3e67 454 #define LV_USE_SPINBOX 1
becanromain 0:cf6b1eca3e67 455
becanromain 0:cf6b1eca3e67 456 /*Switch (dependencies: lv_slider)*/
becanromain 0:cf6b1eca3e67 457 #define LV_USE_SW 1
becanromain 0:cf6b1eca3e67 458
becanromain 0:cf6b1eca3e67 459 /*Text area (dependencies: lv_label, lv_page)*/
becanromain 0:cf6b1eca3e67 460 #define LV_USE_TA 1
becanromain 0:cf6b1eca3e67 461 #if LV_USE_TA != 0
becanromain 0:cf6b1eca3e67 462 # define LV_TA_DEF_CURSOR_BLINK_TIME 400 /*ms*/
becanromain 0:cf6b1eca3e67 463 # define LV_TA_DEF_PWD_SHOW_TIME 1500 /*ms*/
becanromain 0:cf6b1eca3e67 464 #endif
becanromain 0:cf6b1eca3e67 465
becanromain 0:cf6b1eca3e67 466 /*Table (dependencies: lv_label)*/
becanromain 0:cf6b1eca3e67 467 #define LV_USE_TABLE 1
becanromain 0:cf6b1eca3e67 468 #if LV_USE_TABLE
becanromain 0:cf6b1eca3e67 469 # define LV_TABLE_COL_MAX 12
becanromain 0:cf6b1eca3e67 470 #endif
becanromain 0:cf6b1eca3e67 471
becanromain 0:cf6b1eca3e67 472 /*Tab (dependencies: lv_page, lv_btnm)*/
becanromain 0:cf6b1eca3e67 473 #define LV_USE_TABVIEW 1
becanromain 0:cf6b1eca3e67 474 # if LV_USE_TABVIEW != 0
becanromain 0:cf6b1eca3e67 475 /*Time of slide animation [ms] (0: no animation)*/
becanromain 0:cf6b1eca3e67 476 # define LV_TABVIEW_DEF_ANIM_TIME 300
becanromain 0:cf6b1eca3e67 477 #endif
becanromain 0:cf6b1eca3e67 478
becanromain 0:cf6b1eca3e67 479 /*Tileview (dependencies: lv_page) */
becanromain 0:cf6b1eca3e67 480 #define LV_USE_TILEVIEW 1
becanromain 0:cf6b1eca3e67 481 #if LV_USE_TILEVIEW
becanromain 0:cf6b1eca3e67 482 /*Time of slide animation [ms] (0: no animation)*/
becanromain 0:cf6b1eca3e67 483 # define LV_TILEVIEW_DEF_ANIM_TIME 300
becanromain 0:cf6b1eca3e67 484 #endif
becanromain 0:cf6b1eca3e67 485
becanromain 0:cf6b1eca3e67 486 /*Window (dependencies: lv_cont, lv_btn, lv_label, lv_img, lv_page)*/
becanromain 0:cf6b1eca3e67 487 #define LV_USE_WIN 1
becanromain 0:cf6b1eca3e67 488
becanromain 0:cf6b1eca3e67 489 /*==================
becanromain 0:cf6b1eca3e67 490 * Non-user section
becanromain 0:cf6b1eca3e67 491 *==================*/
becanromain 0:cf6b1eca3e67 492
becanromain 0:cf6b1eca3e67 493 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) /* Disable warnings for Visual Studio*/
becanromain 0:cf6b1eca3e67 494 # define _CRT_SECURE_NO_WARNINGS
becanromain 0:cf6b1eca3e67 495 #endif
becanromain 0:cf6b1eca3e67 496
becanromain 0:cf6b1eca3e67 497 /*--END OF LV_CONF_H--*/
becanromain 0:cf6b1eca3e67 498
becanromain 0:cf6b1eca3e67 499 /*Be sure every define has a default value*/
becanromain 0:cf6b1eca3e67 500 #include "lvgl/src/lv_conf_checker.h"
becanromain 0:cf6b1eca3e67 501
becanromain 0:cf6b1eca3e67 502 #endif /*LV_CONF_H*/
becanromain 0:cf6b1eca3e67 503
becanromain 0:cf6b1eca3e67 504 #endif /*End of "Content enable"*/