lv_conf.h 19 KB

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