Kconfig 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  1. # Kconfig file for LVGL v8.0
  2. menu "LVGL configuration"
  3. # Define CONFIG_LV_CONF_SKIP so we can use LVGL
  4. # without lv_conf.h file, the lv_conf_internal.h and
  5. # lv_conf_kconfig.h files are used instead.
  6. config LV_CONF_SKIP
  7. bool
  8. default y
  9. config LV_CONF_MINIMAL
  10. bool "LVGL minimal configuration."
  11. menu "Color settings"
  12. choice
  13. prompt "Color depth."
  14. default LV_COLOR_DEPTH_16
  15. help
  16. Color depth to be used.
  17. config LV_COLOR_DEPTH_32
  18. bool "32: ARGB8888"
  19. config LV_COLOR_DEPTH_16
  20. bool "16: RGB565"
  21. config LV_COLOR_DEPTH_8
  22. bool "8: RGB232"
  23. config LV_COLOR_DEPTH_1
  24. bool "1: 1 byte per pixel"
  25. endchoice
  26. config LV_COLOR_DEPTH
  27. int
  28. default 1 if LV_COLOR_DEPTH_1
  29. default 8 if LV_COLOR_DEPTH_8
  30. default 16 if LV_COLOR_DEPTH_16
  31. default 32 if LV_COLOR_DEPTH_32
  32. config LV_COLOR_16_SWAP
  33. bool "Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)."
  34. depends on LV_COLOR_DEPTH_16
  35. config LV_COLOR_SCREEN_TRANSP
  36. bool "Enable more complex drawing routines to manage screens transparency."
  37. depends on LV_COLOR_DEPTH_32
  38. help
  39. Can be used if the UI is above another layer, e.g. an OSD menu or video player.
  40. Requires `LV_COLOR_DEPTH = 32` colors and the screen's `bg_opa` should be set to
  41. non LV_OPA_COVER value
  42. config LV_COLOR_MIX_ROUND_OFS
  43. int "Adjust color mix functions rounding"
  44. default 128 if !LV_COLOR_DEPTH_32
  45. default 0 if LV_COLOR_DEPTH_32
  46. range 0 254
  47. help
  48. 0: no adjustment, get the integer part of the result (round down)
  49. 64: round up from x.75
  50. 128: round up from half
  51. 192: round up from x.25
  52. 254: round up
  53. config LV_COLOR_CHROMA_KEY_HEX
  54. hex "Images pixels with this color will not be drawn (if they are chroma keyed)."
  55. range 0x000000 0xFFFFFF
  56. default 0x00FF00
  57. help
  58. See misc/lv_color.h for some color values examples.
  59. endmenu
  60. menu "Memory settings"
  61. config LV_MEM_CUSTOM
  62. bool "If true use custom malloc/free, otherwise use the built-in `lv_mem_alloc()` and `lv_mem_free()`"
  63. config LV_MEM_SIZE_KILOBYTES
  64. int "Size of the memory used by `lv_mem_alloc` in kilobytes (>= 2kB)"
  65. range 2 128
  66. default 32
  67. depends on !LV_MEM_CUSTOM
  68. config LV_MEM_ADDR
  69. hex "Address for the memory pool instead of allocating it as a normal array"
  70. default 0x0
  71. depends on !LV_MEM_CUSTOM
  72. config LV_MEM_CUSTOM_INCLUDE
  73. string "Header to include for the custom memory function"
  74. default "stdlib.h"
  75. depends on LV_MEM_CUSTOM
  76. config LV_MEM_BUF_MAX_NUM
  77. int "Number of the memory buffer"
  78. default 16
  79. help
  80. Number of the intermediate memory buffer used during rendering and other
  81. internal processing mechanisms. You will see an error log message if
  82. there wasn't enough buffers.
  83. config LV_MEMCPY_MEMSET_STD
  84. bool "Use the standard memcpy and memset instead of LVGL's own functions"
  85. endmenu
  86. menu "HAL Settings"
  87. config LV_DISP_DEF_REFR_PERIOD
  88. int "Default display refresh period (ms)."
  89. default 30
  90. help
  91. Can be changed in the display driver (`lv_disp_drv_t`).
  92. config LV_INDEV_DEF_READ_PERIOD
  93. int "Input device read period [ms]."
  94. default 30
  95. config LV_TICK_CUSTOM
  96. bool "Use a custom tick source"
  97. config LV_TICK_CUSTOM_INCLUDE
  98. string "Header for the system time function"
  99. default "Arduino.h"
  100. depends on LV_TICK_CUSTOM
  101. config LV_DPI_DEF
  102. int "Default Dots Per Inch (in px)."
  103. default 130
  104. help
  105. Used to initialize default sizes such as widgets sized, style paddings.
  106. (Not so important, you can adjust it to modify default sizes and spaces)
  107. endmenu
  108. menu "Feature configuration"
  109. menu "Drawing"
  110. config LV_DRAW_COMPLEX
  111. bool "Enable complex draw engine"
  112. default y
  113. help
  114. Required to draw shadow, gradient, rounded corners, circles, arc, skew lines,
  115. image transformations or any masks.
  116. config LV_SHADOW_CACHE_SIZE
  117. int "Allow buffering some shadow calculation"
  118. depends on LV_DRAW_COMPLEX
  119. default 0
  120. help
  121. LV_SHADOW_CACHE_SIZE is the max shadow size to buffer, where
  122. shadow size is `shadow_width + radius`.
  123. Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost.
  124. config LV_CIRCLE_CACHE_SIZE
  125. int "Set number of maximally cached circle data"
  126. depends on LV_DRAW_COMPLEX
  127. default 4
  128. help
  129. The circumference of 1/4 circle are saved for anti-aliasing
  130. radius * 4 bytes are used per circle (the most often used
  131. radiuses are saved).
  132. Set to 0 to disable caching.
  133. config LV_IMG_CACHE_DEF_SIZE
  134. int "Default image cache size. 0 to disable caching."
  135. default 0
  136. help
  137. If only the built-in image formats are used there is no real advantage of caching.
  138. (I.e. no new image decoder is added).
  139. With complex image decoders (e.g. PNG or JPG) caching can
  140. save the continuous open/decode of images.
  141. However the opened images might consume additional RAM.
  142. config LV_DISP_ROT_MAX_BUF
  143. int "Maximum buffer size to allocate for rotation"
  144. default 10240
  145. help
  146. Only used if software rotation is enabled in the display driver.
  147. endmenu
  148. menu "GPU"
  149. config LV_USE_EXTERNAL_RENDERER
  150. bool
  151. config LV_USE_GPU_STM32_DMA2D
  152. bool "Enable STM32 DMA2D (aka Chrom Art) GPU."
  153. config LV_GPU_DMA2D_CMSIS_INCLUDE
  154. string "include path of CMSIS header of target processor"
  155. depends on LV_USE_GPU_STM32_DMA2D
  156. default ""
  157. help
  158. Must be defined to include path of CMSIS header of target processor
  159. e.g. "stm32f769xx.h" or "stm32f429xx.h"
  160. config LV_USE_GPU_NXP_PXP
  161. bool "Use NXP's PXP GPU iMX RTxxx platforms."
  162. config LV_USE_GPU_NXP_PXP_AUTO_INIT
  163. bool "Call lv_gpu_nxp_pxp_init() automatically or manually."
  164. depends on LV_USE_GPU_NXP_PXP
  165. help
  166. 1: Add default bare metal and FreeRTOS interrupt handling
  167. routines for PXP (lv_gpu_nxp_pxp_osa.c) and call
  168. lv_gpu_nxp_pxp_init() automatically during lv_init().
  169. Note that symbol SDK_OS_FREE_RTOS has to be defined in order
  170. to use FreeRTOS OSA, otherwise bare-metal implementation is
  171. selected.
  172. 0: lv_gpu_nxp_pxp_init() has to be called manually before
  173. lv_init().
  174. config LV_USE_GPU_NXP_VG_LITE
  175. bool "Use NXP's VG-Lite GPU iMX RTxxx platforms."
  176. config LV_USE_GPU_SDL
  177. bool "Use SDL renderer API"
  178. select LV_USE_EXTERNAL_RENDERER
  179. default n
  180. config LV_GPU_SDL_INCLUDE_PATH
  181. string "include path of SDL header"
  182. depends on LV_USE_GPU_SDL
  183. default "SDL2/SDL.h"
  184. endmenu
  185. menu "Logging"
  186. config LV_USE_LOG
  187. bool "Enable the log module"
  188. choice
  189. bool "Default log verbosity" if LV_USE_LOG
  190. default LV_LOG_LEVEL_WARN
  191. help
  192. Specify how important log should be added.
  193. config LV_LOG_LEVEL_TRACE
  194. bool "A lot of logs to give detailed information"
  195. config LV_LOG_LEVEL_INFO
  196. bool "Log important events"
  197. config LV_LOG_LEVEL_WARN
  198. bool "Log if something unwanted happened but didn't cause a problem"
  199. config LV_LOG_LEVEL_ERROR
  200. bool "Only critical issues, when the system may fail"
  201. config LV_LOG_LEVEL_USER
  202. bool "Only logs added by the user"
  203. config LV_LOG_LEVEL_NONE
  204. bool "Do not log anything"
  205. endchoice
  206. config LV_LOG_LEVEL
  207. int
  208. default 0 if LV_LOG_LEVEL_TRACE
  209. default 1 if LV_LOG_LEVEL_INFO
  210. default 2 if LV_LOG_LEVEL_WARN
  211. default 3 if LV_LOG_LEVEL_ERROR
  212. default 4 if LV_LOG_LEVEL_USER
  213. default 5 if LV_LOG_LEVEL_NONE
  214. config LV_LOG_PRINTF
  215. bool "Print the log with 'printf'" if LV_USE_LOG
  216. help
  217. Use printf for log output.
  218. If not set the user needs to register a callback with `lv_log_register_print_cb`.
  219. config LV_LOG_TRACE_MEM
  220. bool "Enable/Disable LV_LOG_TRACE in mem module"
  221. default y
  222. depends on LV_USE_LOG
  223. config LV_LOG_TRACE_TIMER
  224. bool "Enable/Disable LV_LOG_TRACE in timer module"
  225. default y
  226. depends on LV_USE_LOG
  227. config LV_LOG_TRACE_INDEV
  228. bool "Enable/Disable LV_LOG_TRACE in indev module"
  229. default y
  230. depends on LV_USE_LOG
  231. config LV_LOG_TRACE_DISP_REFR
  232. bool "Enable/Disable LV_LOG_TRACE in disp refr module"
  233. default y
  234. depends on LV_USE_LOG
  235. config LV_LOG_TRACE_EVENT
  236. bool "Enable/Disable LV_LOG_TRACE in event module"
  237. default y
  238. depends on LV_USE_LOG
  239. config LV_LOG_TRACE_OBJ_CREATE
  240. bool "Enable/Disable LV_LOG_TRACE in obj create module"
  241. default y
  242. depends on LV_USE_LOG
  243. config LV_LOG_TRACE_LAYOUT
  244. bool "Enable/Disable LV_LOG_TRACE in layout module"
  245. default y
  246. depends on LV_USE_LOG
  247. config LV_LOG_TRACE_ANIM
  248. bool "Enable/Disable LV_LOG_TRACE in anim module"
  249. default y
  250. depends on LV_USE_LOG
  251. endmenu
  252. menu "Asserts"
  253. config LV_USE_ASSERT_NULL
  254. bool "Check if the parameter is NULL. (Very fast, recommended)"
  255. default y if !LV_CONF_MINIMAL
  256. config LV_USE_ASSERT_MALLOC
  257. bool "Checks if the memory is successfully allocated or no. (Very fast, recommended)"
  258. default y if !LV_CONF_MINIMAL
  259. config LV_USE_ASSERT_STYLE
  260. bool "Check if the styles are properly initialized. (Very fast, recommended)"
  261. config LV_USE_ASSERT_MEM_INTEGRITY
  262. bool "Check the integrity of `lv_mem` after critical operations. (Slow)"
  263. config LV_USE_ASSERT_OBJ
  264. bool "Check NULL, the object's type and existence (e.g. not deleted). (Slow)."
  265. config LV_ASSERT_HANDLER_INCLUDE
  266. string "Header to include for the custom assert function"
  267. default "assert.h"
  268. endmenu
  269. menu "Others"
  270. config LV_USE_PERF_MONITOR
  271. bool "Show CPU usage and FPS count in the right bottom corner."
  272. config LV_USE_MEM_MONITOR
  273. bool "Show the used memory and the memory fragmentation in the left bottom corner."
  274. depends on !LV_MEM_CUSTOM
  275. config LV_USE_REFR_DEBUG
  276. bool "Draw random colored rectangles over the redrawn areas."
  277. config LV_SPRINTF_CUSTOM
  278. bool "Change the built-in (v)snprintf functions"
  279. config LV_SPRINTF_INCLUDE
  280. string "Header to include for the custom sprintf function"
  281. depends on LV_SPRINTF_CUSTOM
  282. default "stdio.h"
  283. config LV_SPRINTF_USE_FLOAT
  284. bool "Enable float in built-in (v)snprintf functions"
  285. depends on !LV_SPRINTF_CUSTOM
  286. config LV_USE_USER_DATA
  287. bool "Add a 'user_data' to drivers and objects."
  288. default y
  289. config LV_ENABLE_GC
  290. bool "Enable garbage collector"
  291. config LV_GC_INCLUDE
  292. string "Header to include for the garbage collector related things"
  293. depends on LV_ENABLE_GC
  294. default "gc.h"
  295. endmenu
  296. menu "Compiler settings"
  297. config LV_BIG_ENDIAN_SYSTEM
  298. bool "For big endian systems set to 1"
  299. config LV_ATTRIBUTE_MEM_ALIGN_SIZE
  300. int "Required alignment size for buffers"
  301. default 1
  302. config LV_ATTRIBUTE_FAST_MEM_USE_IRAM
  303. bool "Set IRAM as LV_ATTRIBUTE_FAST_MEM"
  304. help
  305. Set this option to configure IRAM as LV_ATTRIBUTE_FAST_MEM
  306. config LV_USE_LARGE_COORD
  307. bool "Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t"
  308. endmenu
  309. endmenu
  310. menu "Font usage"
  311. menu "Enable built-in fonts"
  312. config LV_FONT_MONTSERRAT_8
  313. bool "Enable Montserrat 8"
  314. config LV_FONT_MONTSERRAT_10
  315. bool "Enable Montserrat 10"
  316. config LV_FONT_MONTSERRAT_12
  317. bool "Enable Montserrat 12"
  318. config LV_FONT_MONTSERRAT_14
  319. bool "Enable Montserrat 14"
  320. default y if !LV_CONF_MINIMAL
  321. config LV_FONT_MONTSERRAT_16
  322. bool "Enable Montserrat 16"
  323. config LV_FONT_MONTSERRAT_18
  324. bool "Enable Montserrat 18"
  325. config LV_FONT_MONTSERRAT_20
  326. bool "Enable Montserrat 20"
  327. config LV_FONT_MONTSERRAT_22
  328. bool "Enable Montserrat 22"
  329. config LV_FONT_MONTSERRAT_24
  330. bool "Enable Montserrat 24"
  331. config LV_FONT_MONTSERRAT_26
  332. bool "Enable Montserrat 26"
  333. config LV_FONT_MONTSERRAT_28
  334. bool "Enable Montserrat 28"
  335. config LV_FONT_MONTSERRAT_30
  336. bool "Enable Montserrat 30"
  337. config LV_FONT_MONTSERRAT_32
  338. bool "Enable Montserrat 32"
  339. config LV_FONT_MONTSERRAT_34
  340. bool "Enable Montserrat 34"
  341. config LV_FONT_MONTSERRAT_36
  342. bool "Enable Montserrat 36"
  343. config LV_FONT_MONTSERRAT_38
  344. bool "Enable Montserrat 38"
  345. config LV_FONT_MONTSERRAT_40
  346. bool "Enable Montserrat 40"
  347. config LV_FONT_MONTSERRAT_42
  348. bool "Enable Montserrat 42"
  349. config LV_FONT_MONTSERRAT_44
  350. bool "Enable Montserrat 44"
  351. config LV_FONT_MONTSERRAT_46
  352. bool "Enable Montserrat 46"
  353. config LV_FONT_MONTSERRAT_48
  354. bool "Enable Montserrat 48"
  355. config LV_FONT_MONTSERRAT_12_SUBPX
  356. bool "Enable Montserrat 12 sub-pixel"
  357. config LV_FONT_MONTSERRAT_28_COMPRESSED
  358. bool "Enable Montserrat 28 compressed"
  359. config LV_FONT_DEJAVU_16_PERSIAN_HEBREW
  360. bool "Enable Dejavu 16 Persian, Hebrew, Arabic letters"
  361. config LV_FONT_SIMSUN_16_CJK
  362. bool "Enable Simsun 16 CJK"
  363. config LV_FONT_UNSCII_8
  364. bool "Enable UNSCII 8 (Perfect monospace font)"
  365. default y if LV_CONF_MINIMAL
  366. config LV_FONT_UNSCII_16
  367. bool "Enable UNSCII 16 (Perfect monospace font)"
  368. config LV_FONT_CUSTOM
  369. bool "Enable the custom font"
  370. config LV_FONT_CUSTOM_DECLARE
  371. string "Header to include for the custom font"
  372. depends on LV_FONT_CUSTOM
  373. endmenu
  374. choice LV_FONT_DEFAULT
  375. prompt "Select theme default title font"
  376. default LV_FONT_DEFAULT_MONTSERRAT_14 if !LV_CONF_MINIMAL
  377. default LV_FONT_DEFAULT_UNSCII_8 if LV_CONF_MINIMAL
  378. help
  379. Select theme default title font
  380. config LV_FONT_DEFAULT_MONTSERRAT_8
  381. bool "Montserrat 8"
  382. select LV_FONT_MONTSERRAT_8
  383. config LV_FONT_DEFAULT_MONTSERRAT_12
  384. bool "Montserrat 12"
  385. select LV_FONT_MONTSERRAT_12
  386. config LV_FONT_DEFAULT_MONTSERRAT_14
  387. bool "Montserrat 14"
  388. select LV_FONT_MONTSERRAT_14
  389. config LV_FONT_DEFAULT_MONTSERRAT_16
  390. bool "Montserrat 16"
  391. select LV_FONT_MONTSERRAT_16
  392. config LV_FONT_DEFAULT_MONTSERRAT_18
  393. bool "Montserrat 18"
  394. select LV_FONT_MONTSERRAT_18
  395. config LV_FONT_DEFAULT_MONTSERRAT_20
  396. bool "Montserrat 20"
  397. select LV_FONT_MONTSERRAT_20
  398. config LV_FONT_DEFAULT_MONTSERRAT_22
  399. bool "Montserrat 22"
  400. select LV_FONT_MONTSERRAT_22
  401. config LV_FONT_DEFAULT_MONTSERRAT_24
  402. bool "Montserrat 24"
  403. select LV_FONT_MONTSERRAT_24
  404. config LV_FONT_DEFAULT_MONTSERRAT_26
  405. bool "Montserrat 26"
  406. select LV_FONT_MONTSERRAT_26
  407. config LV_FONT_DEFAULT_MONTSERRAT_28
  408. bool "Montserrat 28"
  409. select LV_FONT_MONTSERRAT_28
  410. config LV_FONT_DEFAULT_MONTSERRAT_30
  411. bool "Montserrat 30"
  412. select LV_FONT_MONTSERRAT_30
  413. config LV_FONT_DEFAULT_MONTSERRAT_32
  414. bool "Montserrat 32"
  415. select LV_FONT_MONTSERRAT_32
  416. config LV_FONT_DEFAULT_MONTSERRAT_34
  417. bool "Montserrat 34"
  418. select LV_FONT_MONTSERRAT_34
  419. config LV_FONT_DEFAULT_MONTSERRAT_36
  420. bool "Montserrat 36"
  421. select LV_FONT_MONTSERRAT_36
  422. config LV_FONT_DEFAULT_MONTSERRAT_38
  423. bool "Montserrat 38"
  424. select LV_FONT_MONTSERRAT_38
  425. config LV_FONT_DEFAULT_MONTSERRAT_40
  426. bool "Montserrat 40"
  427. select LV_FONT_MONTSERRAT_40
  428. config LV_FONT_DEFAULT_MONTSERRAT_42
  429. bool "Montserrat 42"
  430. select LV_FONT_MONTSERRAT_42
  431. config LV_FONT_DEFAULT_MONTSERRAT_44
  432. bool "Montserrat 44"
  433. select LV_FONT_MONTSERRAT_44
  434. config LV_FONT_DEFAULT_MONTSERRAT_46
  435. bool "Montserrat 46"
  436. select LV_FONT_MONTSERRAT_46
  437. config LV_FONT_DEFAULT_MONTSERRAT_48
  438. bool "Montserrat 48"
  439. select LV_FONT_MONTSERRAT_48
  440. config LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX
  441. bool "Montserrat 12 sub-pixel"
  442. select LV_FONT_MONTSERRAT_12_SUBPX
  443. config LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED
  444. bool "Montserrat 28 compressed"
  445. select LV_FONT_MONTSERRAT_28_COMPRESSED
  446. config LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW
  447. bool "Dejavu 16 Persian, Hebrew, Arabic letters"
  448. select LV_FONT_DEJAVU_16_PERSIAN_HEBREW
  449. config LV_FONT_DEFAULT_SIMSUN_16_CJK
  450. bool "Simsun 16 CJK"
  451. select LV_FONT_SIMSUN_16_CJK
  452. config LV_FONT_DEFAULT_UNSCII_8
  453. bool "UNSCII 8 (Perfect monospace font)"
  454. select LV_FONT_UNSCII_8
  455. config LV_FONT_DEFAULT_UNSCII_16
  456. bool "UNSCII 16 (Perfect monospace font)"
  457. select LV_FONT_UNSCII_16
  458. endchoice
  459. config LV_FONT_FMT_TXT_LARGE
  460. bool "Enable it if you have fonts with a lot of characters."
  461. help
  462. The limit depends on the font size, font face and bpp
  463. but with > 10,000 characters if you see issues probably you
  464. need to enable it.
  465. config LV_USE_FONT_COMPRESSED
  466. bool "Sets support for compressed fonts."
  467. config LV_USE_FONT_SUBPX
  468. bool "Enable subpixel rendering."
  469. config LV_FONT_SUBPX_BGR
  470. bool "Use BGR instead RGB for sub-pixel rendering."
  471. depends on LV_USE_FONT_SUBPX
  472. help
  473. Set the pixel order of the display.
  474. Important only if "subpx fonts" are used.
  475. With "normal" font it doesn't matter.
  476. endmenu
  477. menu "Text Settings"
  478. choice LV_TXT_ENC
  479. prompt "Select a character encoding for strings"
  480. help
  481. Select a character encoding for strings. Your IDE or editor should have the same character encoding.
  482. default LV_TXT_ENC_UTF8 if !LV_CONF_MINIMAL
  483. default LV_TXT_ENC_ASCII if LV_CONF_MINIMAL
  484. config LV_TXT_ENC_UTF8
  485. bool "UTF8"
  486. config LV_TXT_ENC_ASCII
  487. bool "ASCII"
  488. endchoice
  489. config LV_TXT_BREAK_CHARS
  490. string "Can break (wrap) texts on these chars"
  491. default " ,.;:-_"
  492. config LV_TXT_LINE_BREAK_LONG_LEN
  493. int "Line break long length"
  494. default 0
  495. help
  496. If a word is at least this long, will break wherever 'prettiest'.
  497. To disable, set to a value <= 0.
  498. config LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN
  499. int "Min num chars before break"
  500. default 3
  501. depends on LV_TXT_LINE_BREAK_LONG_LEN > 0
  502. help
  503. Minimum number of characters in a long word to put on a line before a break.
  504. config LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN
  505. int "Min num chars after break"
  506. default 3
  507. depends on LV_TXT_LINE_BREAK_LONG_LEN > 0
  508. help
  509. Minimum number of characters in a long word to put on a line after a break.
  510. config LV_TXT_COLOR_CMD
  511. string "The control character to use for signalling text recoloring"
  512. default "#"
  513. config LV_USE_BIDI
  514. bool "Support bidirectional texts"
  515. help
  516. Allows mixing Left-to-Right and Right-to-Left texts.
  517. The direction will be processed according to the Unicode Bidirectional Algorithm:
  518. https://www.w3.org/International/articles/inline-bidi-markup/uba-basics
  519. choice
  520. prompt "Set the default BIDI direction"
  521. default LV_BIDI_DIR_AUTO
  522. depends on LV_USE_BIDI
  523. config LV_BIDI_DIR_LTR
  524. bool "Left-to-Right"
  525. config LV_BIDI_DIR_RTL
  526. bool "Right-to-Left"
  527. config LV_BIDI_DIR_AUTO
  528. bool "Detect texts base direction"
  529. endchoice
  530. config LV_USE_ARABIC_PERSIAN_CHARS
  531. bool "Enable Arabic/Persian processing"
  532. help
  533. In these languages characters should be replaced with
  534. an other form based on their position in the text.
  535. endmenu
  536. menu "Widget usage"
  537. config LV_USE_ARC
  538. bool "Arc."
  539. default y if !LV_CONF_MINIMAL
  540. config LV_USE_BAR
  541. bool "Bar."
  542. default y if !LV_CONF_MINIMAL
  543. config LV_USE_BTN
  544. bool "Button."
  545. default y if !LV_CONF_MINIMAL
  546. config LV_USE_BTNMATRIX
  547. bool "Button matrix."
  548. default y if !LV_CONF_MINIMAL
  549. config LV_USE_CANVAS
  550. bool "Canvas. Dependencies: lv_img."
  551. default y if !LV_CONF_MINIMAL
  552. config LV_USE_CHECKBOX
  553. bool "Check Box"
  554. default y if !LV_CONF_MINIMAL
  555. config LV_USE_DROPDOWN
  556. bool "Drop down list. Requires: lv_label."
  557. select LV_USE_LABEL
  558. default y if !LV_CONF_MINIMAL
  559. config LV_USE_IMG
  560. bool "Image. Requires: lv_label."
  561. select LV_USE_LABEL
  562. default y if !LV_CONF_MINIMAL
  563. config LV_USE_LABEL
  564. bool "Label."
  565. default y if !LV_CONF_MINIMAL
  566. config LV_LABEL_TEXT_SELECTION
  567. bool "Enable selecting text of the label."
  568. depends on LV_USE_LABEL
  569. default y
  570. config LV_LABEL_LONG_TXT_HINT
  571. bool "Store extra some info in labels (12 bytes) to speed up drawing of very long texts."
  572. depends on LV_USE_LABEL
  573. default y
  574. config LV_USE_LINE
  575. bool "Line."
  576. default y if !LV_CONF_MINIMAL
  577. config LV_USE_ROLLER
  578. bool "Roller. Requires: lv_label."
  579. select LV_USE_LABEL
  580. default y if !LV_CONF_MINIMAL
  581. config LV_ROLLER_INF_PAGES
  582. int "Number of extra 'pages' when the controller is infinite."
  583. default 7
  584. depends on LV_USE_ROLLER
  585. config LV_USE_SLIDER
  586. bool "Slider. Requires: lv_bar."
  587. select LV_USE_BAR
  588. default y if !LV_CONF_MINIMAL
  589. config LV_USE_SWITCH
  590. bool "Switch."
  591. default y if !LV_CONF_MINIMAL
  592. config LV_USE_TEXTAREA
  593. bool "Text area. Requires: lv_label."
  594. select LV_USE_LABEL
  595. default y if !LV_CONF_MINIMAL
  596. config LV_TEXTAREA_DEF_PWD_SHOW_TIME
  597. int "Text area def. pwd show time [ms]."
  598. default 1500
  599. depends on LV_USE_TEXTAREA
  600. config LV_USE_TABLE
  601. bool "Table."
  602. default y if !LV_CONF_MINIMAL
  603. endmenu
  604. menu "Extra Widgets"
  605. config LV_USE_ANIMIMG
  606. bool "Anim image."
  607. default y if !LV_CONF_MINIMAL
  608. config LV_USE_CALENDAR
  609. bool "Calendar."
  610. default y if !LV_CONF_MINIMAL
  611. config LV_CALENDAR_WEEK_STARTS_MONDAY
  612. bool "Calendar week starts monday."
  613. depends on LV_USE_CALENDAR
  614. config LV_USE_CALENDAR_HEADER_ARROW
  615. bool "Use calendar header arrow"
  616. depends on LV_USE_CALENDAR
  617. default y
  618. config LV_USE_CALENDAR_HEADER_DROPDOWN
  619. bool "Use calendar header dropdown"
  620. depends on LV_USE_CALENDAR
  621. default y
  622. config LV_USE_CHART
  623. bool "Chart."
  624. default y if !LV_CONF_MINIMAL
  625. config LV_USE_COLORWHEEL
  626. bool "Colorwheel."
  627. default y if !LV_CONF_MINIMAL
  628. config LV_USE_IMGBTN
  629. bool "Imgbtn."
  630. default y if !LV_CONF_MINIMAL
  631. config LV_USE_KEYBOARD
  632. bool "Keyboard."
  633. default y if !LV_CONF_MINIMAL
  634. config LV_USE_LED
  635. bool "LED."
  636. default y if !LV_CONF_MINIMAL
  637. config LV_USE_LIST
  638. bool "List."
  639. default y if !LV_CONF_MINIMAL
  640. config LV_USE_METER
  641. bool "Meter."
  642. default y if !LV_CONF_MINIMAL
  643. config LV_USE_MSGBOX
  644. bool "Msgbox."
  645. default y if !LV_CONF_MINIMAL
  646. config LV_USE_SPINBOX
  647. bool "Spinbox."
  648. default y if !LV_CONF_MINIMAL
  649. config LV_USE_SPINNER
  650. bool "Spinner."
  651. default y if !LV_CONF_MINIMAL
  652. config LV_USE_TABVIEW
  653. bool "Tabview."
  654. default y if !LV_CONF_MINIMAL
  655. config LV_USE_TILEVIEW
  656. bool "Tileview"
  657. default y if !LV_CONF_MINIMAL
  658. config LV_USE_WIN
  659. bool "Win"
  660. default y if !LV_CONF_MINIMAL
  661. config LV_USE_SPAN
  662. bool "span"
  663. default y if !LV_CONF_MINIMAL
  664. config LV_SPAN_SNIPPET_STACK_SIZE
  665. int "Maximum number of span descriptor"
  666. default 64
  667. depends on LV_USE_SPAN
  668. endmenu
  669. menu "Themes"
  670. config LV_USE_THEME_DEFAULT
  671. bool "A simple, impressive and very complete theme"
  672. default y if !LV_CONF_MINIMAL
  673. config LV_THEME_DEFAULT_DARK
  674. bool "Yes to set dark mode, No to set light mode"
  675. depends on LV_USE_THEME_DEFAULT
  676. config LV_THEME_DEFAULT_GROW
  677. bool "Enable grow on press"
  678. default y
  679. depends on LV_USE_THEME_DEFAULT
  680. config LV_THEME_DEFAULT_TRANSITION_TIME
  681. int "Default transition time in [ms]"
  682. default 80
  683. depends on LV_USE_THEME_DEFAULT
  684. config LV_USE_THEME_BASIC
  685. bool "A very simple theme that is a good starting point for a custom theme"
  686. default y if !LV_CONF_MINIMAL
  687. endmenu
  688. menu "Layouts"
  689. config LV_USE_FLEX
  690. bool "A layout similar to Flexbox in CSS."
  691. default y if !LV_CONF_MINIMAL
  692. config LV_USE_GRID
  693. bool "A layout similar to Grid in CSS."
  694. default y if !LV_CONF_MINIMAL
  695. endmenu
  696. menu "3rd Party Libraries"
  697. config LV_USE_FS_STDIO
  698. int "File system on top of stdio API"
  699. default 0
  700. config LV_FS_STDIO_PATH
  701. string "Set the working directory"
  702. depends on LV_USE_FS_STDIO
  703. config LV_USE_FS_POSIX
  704. int "File system on top of posix API"
  705. default 0
  706. config LV_FS_POSIX_PATH
  707. string "Set the working directory"
  708. depends on LV_USE_FS_POSIX
  709. config LV_USE_FS_WIN32
  710. int "File system on top of Win32 API"
  711. default 0
  712. config LV_FS_WIN32_PATH
  713. string "Set the working directory"
  714. depends on LV_USE_FS_WIN32
  715. config LV_USE_FS_FATFS
  716. int "File system on top of FatFS"
  717. default 0
  718. config LV_USE_PNG
  719. bool "PNG decoder library"
  720. config LV_USE_BMP
  721. bool "BMP decoder library"
  722. config LV_USE_SJPG
  723. bool "JPG + split JPG decoder library"
  724. config LV_USE_GIF
  725. bool "GIF decoder library"
  726. config LV_USE_QRCODE
  727. bool "QR code library"
  728. config LV_USE_FREETYPE
  729. bool "FreeType library"
  730. config LV_FREETYPE_CACHE_SIZE
  731. int "Memory used by FreeType to cache characters [bytes] (-1: no caching)"
  732. depends on LV_USE_FREETYPE
  733. default 16384
  734. config LV_USE_RLOTTIE
  735. bool "Lottie library"
  736. endmenu
  737. menu "Others"
  738. config LV_USE_SNAPSHOT
  739. bool "Enable API to take snapshot"
  740. default y if !LV_CONF_MINIMAL
  741. endmenu
  742. menu "Examples"
  743. config LV_BUILD_EXAMPLES
  744. bool "Enable the examples to be built"
  745. default y if !LV_CONF_MINIMAL
  746. endmenu
  747. config LV_BUILD_EXAMPLES
  748. bool "Enable the examples to be built with the library."
  749. default y
  750. endmenu