lv_conf.h 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. /*
  2. * Copyright 2025 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #ifndef LV_CONF_H
  10. #define LV_CONF_H
  11. /*====================
  12. * COLOR SETTINGS
  13. *====================*/
  14. /*Maximal horizontal resolution*/
  15. #define LV_HOR_RES_MAX (480)
  16. /*Maximal vertical resolution*/
  17. #define LV_VER_RES_MAX (480)
  18. /*Color depth: 1 (I1), 8 (L8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888)*/
  19. #define LV_COLOR_DEPTH 16
  20. /*=========================
  21. * STDLIB WRAPPER SETTINGS
  22. *=========================*/
  23. /* Possible values
  24. * - LV_STDLIB_BUILTIN: LVGL's built in implementation
  25. * - LV_STDLIB_CLIB: Standard C functions, like malloc, strlen, etc
  26. * - LV_STDLIB_MICROPYTHON: MicroPython implementation
  27. * - LV_STDLIB_RTTHREAD: RT-Thread implementation
  28. * - LV_STDLIB_CUSTOM: Implement the functions externally
  29. */
  30. #define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
  31. #define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN
  32. #define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN
  33. #define LV_STDINT_INCLUDE <stdint.h>
  34. #define LV_STDDEF_INCLUDE <stddef.h>
  35. #define LV_STDBOOL_INCLUDE <stdbool.h>
  36. #define LV_INTTYPES_INCLUDE <inttypes.h>
  37. #define LV_LIMITS_INCLUDE <limits.h>
  38. #define LV_STDARG_INCLUDE <stdarg.h>
  39. #if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
  40. /*Size of the memory available for `lv_malloc()` in bytes (>= 2kB)*/
  41. #define LV_MEM_SIZE (320U * 1024U)
  42. /*Size of the memory expand for `lv_malloc()` in bytes*/
  43. #define LV_MEM_POOL_EXPAND_SIZE 0
  44. #endif /*LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN*/
  45. /*====================
  46. * HAL SETTINGS
  47. *====================*/
  48. /*Default display refresh, input device read and animation step period[ms].*/
  49. #define LV_DEF_REFR_PERIOD 30
  50. /*Default Dot Per Inch(px/inch). Used to initialize default sizes such as widgets sized, style paddings.
  51. *(Not so important, you can adjust it to modify default sizes and spaces)*/
  52. #define LV_DPI_DEF 130
  53. /*====================
  54. * OPERATING SYSTEM
  55. *====================*/
  56. /*Select an operating system to use. Possible options:
  57. * - LV_OS_NONE
  58. * - LV_OS_PTHREAD
  59. * - LV_OS_FREERTOS
  60. * - LV_OS_CMSIS_RTOS2
  61. * - LV_OS_RTTHREAD
  62. * - LV_OS_WINDOWS
  63. * - LV_OS_MQX
  64. * - LV_OS_CUSTOM */
  65. #define LV_USE_OS LV_OS_NONE
  66. #if LV_USE_OS == LV_OS_CUSTOM
  67. #define LV_OS_CUSTOM_INCLUDE <stdint.h>
  68. #endif
  69. #if LV_USE_OS == LV_OS_FREERTOS
  70. /*
  71. * Unblocking an RTOS task with a direct notification is 45% faster and uses less RAM
  72. * than unblocking a task using an intermediary object such as a binary semaphore.
  73. * RTOS task notifications can only be used when there is only one task that can be the recipient of the event.
  74. */
  75. #define LV_USE_FREERTOS_TASK_NOTIFY 1
  76. #endif
  77. /*=======================
  78. * RENDERING CONFIGURATION
  79. *=======================*/
  80. /*Align the stride of all layers and images to this bytes*/
  81. #define LV_DRAW_BUF_STRIDE_ALIGN 1
  82. /*Align the start address of draw_buf addresses to this bytes*/
  83. #define LV_DRAW_BUF_ALIGN 4
  84. /*Using matrix for transformations.
  85. *Requirements:
  86. `LV_USE_MATRIX = 1`.
  87. The rendering engine needs to support 3x3 matrix transformations.*/
  88. #define LV_DRAW_TRANSFORM_USE_MATRIX 0
  89. /* If a widget has `style_opa < 255` (not `bg_opa`, `text_opa` etc) or not NORMAL blend mode
  90. * it is buffered into a "simple" layer before rendering. The widget can be buffered in smaller chunks.
  91. * "Transformed layers" (if `transform_angle/zoom` are set) use larger buffers
  92. * and can't be drawn in chunks. */
  93. /*The target buffer size[bytes] for simple layer chunks.*/
  94. #define LV_DRAW_LAYER_SIMPLE_BUF_SIZE (24U * 1024U)
  95. /* The stack size of the drawing thread.
  96. * NOTE: If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more.
  97. */
  98. #define LV_DRAW_THREAD_STACK_SIZE (8U * 1024U)
  99. #define LV_USE_DRAW_SW 1
  100. #if LV_USE_DRAW_SW
  101. /*
  102. * Selectively disable color format support in order to reduce code size.
  103. * NOTE: some features use certain color formats internally, e.g.
  104. * - gradients use RGB888
  105. * - bitmaps with transparency may use ARGB8888
  106. */
  107. #define LV_DRAW_SW_SUPPORT_RGB565 1
  108. #define LV_DRAW_SW_SUPPORT_RGB565A8 1
  109. #define LV_DRAW_SW_SUPPORT_RGB888 1
  110. #define LV_DRAW_SW_SUPPORT_XRGB8888 1
  111. #define LV_DRAW_SW_SUPPORT_ARGB8888 1
  112. #define LV_DRAW_SW_SUPPORT_L8 1
  113. #define LV_DRAW_SW_SUPPORT_AL88 1
  114. #define LV_DRAW_SW_SUPPORT_A8 1
  115. #define LV_DRAW_SW_SUPPORT_I1 1
  116. /* Set the number of draw unit.
  117. * > 1 requires an operating system enabled in `LV_USE_OS`
  118. * > 1 means multiply threads will render the screen in parallel */
  119. #define LV_DRAW_SW_DRAW_UNIT_CNT 1
  120. /* Use Arm-2D to accelerate the sw render */
  121. #define LV_USE_DRAW_ARM2D_SYNC 0
  122. /* Enable native helium assembly to be compiled */
  123. #define LV_USE_NATIVE_HELIUM_ASM 0
  124. /* 0: use a simple renderer capable of drawing only simple rectangles with gradient, images, texts, and straight lines only
  125. * 1: use a complex renderer capable of drawing rounded corners, shadow, skew lines, and arcs too */
  126. #define LV_DRAW_SW_COMPLEX 1
  127. #if LV_DRAW_SW_COMPLEX
  128. /*Allow buffering some shadow calculation.
  129. *LV_DRAW_SW_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius`
  130. *Caching has LV_DRAW_SW_SHADOW_CACHE_SIZE^2 RAM cost*/
  131. #define LV_DRAW_SW_SHADOW_CACHE_SIZE 0
  132. /* Set number of maximally cached circle data.
  133. * The circumference of 1/4 circle are saved for anti-aliasing
  134. * radius * 4 bytes are used per circle (the most often used radiuses are saved)
  135. * 0: to disable caching */
  136. #define LV_DRAW_SW_CIRCLE_CACHE_SIZE 4
  137. #endif /* LV_DRAW_SW_COMPLEX */
  138. #define LV_USE_DRAW_SW_ASM LV_DRAW_SW_ASM_NONE
  139. #if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_CUSTOM
  140. #define LV_DRAW_SW_ASM_CUSTOM_INCLUDE ""
  141. #endif /* LV_USE_DRAW_SW_ASM */
  142. /* Enable drawing complex gradients in software: linear at an angle, radial or conical */
  143. #define LV_USE_DRAW_SW_COMPLEX_GRADIENTS 0
  144. #endif /* LV_USE_DRAW_SW */
  145. #if LV_USE_DRAW_VGLITE
  146. /* Enable blit quality degradation workaround recommended for screen's dimension > 352 pixels. */
  147. #define LV_USE_VGLITE_BLIT_SPLIT 0
  148. #if LV_USE_OS
  149. /* Use additional draw thread for VG-Lite processing. */
  150. #define LV_USE_VGLITE_DRAW_THREAD 1
  151. #if LV_USE_VGLITE_DRAW_THREAD
  152. /* Enable VGLite draw async. Queue multiple tasks and flash them once to the GPU. */
  153. #define LV_USE_VGLITE_DRAW_ASYNC 1
  154. #endif /* LV_USE_VGLITE_DRAW_THREAD */
  155. #endif /* LV_USE_OS */
  156. /* Enable VGLite asserts. */
  157. #define LV_USE_VGLITE_ASSERT 0
  158. #endif /* LV_USE_DRAW_VGLITE */
  159. #if LV_USE_PXP
  160. /* Use PXP for drawing.*/
  161. #define LV_USE_DRAW_PXP 1
  162. /* Use PXP to rotate display.*/
  163. #define LV_USE_ROTATE_PXP 0
  164. #if LV_USE_DRAW_PXP && LV_USE_OS
  165. /* Use additional draw thread for PXP processing.*/
  166. #define LV_USE_PXP_DRAW_THREAD 1
  167. #endif /* LV_USE_DRAW_PXP && LV_USE_OS */
  168. /* Enable PXP asserts. */
  169. #define LV_USE_PXP_ASSERT 0
  170. #endif /* LV_USE_PXP */
  171. /* Use Renesas Dave2D on RA platforms. */
  172. #define LV_USE_DRAW_DAVE2D 0
  173. /* Draw using cached SDL textures */
  174. #define LV_USE_DRAW_SDL 0
  175. /* Use VG-Lite GPU. */
  176. #define LV_USE_DRAW_VG_LITE 0
  177. #if LV_USE_DRAW_VG_LITE
  178. /* Enable VG-Lite custom external 'gpu_init()' function */
  179. #define LV_VG_LITE_USE_GPU_INIT 0
  180. /* Enable VG-Lite assert. */
  181. #define LV_VG_LITE_USE_ASSERT 0
  182. /* VG-Lite flush commit trigger threshold. GPU will try to batch these many draw tasks. */
  183. #define LV_VG_LITE_FLUSH_MAX_COUNT 8
  184. /* Enable border to simulate shadow
  185. * NOTE: which usually improves performance,
  186. * but does not guarantee the same rendering quality as the software. */
  187. #define LV_VG_LITE_USE_BOX_SHADOW 0
  188. /* VG-Lite gradient maximum cache number.
  189. * NOTE: The memory usage of a single gradient image is 4K bytes. */
  190. #define LV_VG_LITE_GRAD_CACHE_CNT 32
  191. /* VG-Lite stroke maximum cache number. */
  192. #define LV_VG_LITE_STROKE_CACHE_CNT 32
  193. #endif /* LV_USE_DRAW_VG_LITE */
  194. /*=======================
  195. * FEATURE CONFIGURATION
  196. *=======================*/
  197. /*-------------
  198. * Logging
  199. *-----------*/
  200. /*Enable the log module*/
  201. #define LV_USE_LOG 0
  202. #if LV_USE_LOG
  203. /*How important log should be added:
  204. *LV_LOG_LEVEL_TRACE A lot of logs to give detailed information
  205. *LV_LOG_LEVEL_INFO Log important events
  206. *LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem
  207. *LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
  208. *LV_LOG_LEVEL_USER Only logs added by the user
  209. *LV_LOG_LEVEL_NONE Do not log anything*/
  210. #define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
  211. /*1: Print the log with 'printf';
  212. *0: User need to register a callback with `lv_log_register_print_cb()`*/
  213. #define LV_LOG_PRINTF 0
  214. /*1: Enable print timestamp;
  215. *0: Disable print timestamp*/
  216. #define LV_LOG_USE_TIMESTAMP 1
  217. /*1: Print file and line number of the log;
  218. *0: Do not print file and line number of the log*/
  219. #define LV_LOG_USE_FILE_LINE 1
  220. /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
  221. #define LV_LOG_TRACE_MEM 1
  222. #define LV_LOG_TRACE_TIMER 1
  223. #define LV_LOG_TRACE_INDEV 1
  224. #define LV_LOG_TRACE_DISP_REFR 1
  225. #define LV_LOG_TRACE_EVENT 1
  226. #define LV_LOG_TRACE_OBJ_CREATE 1
  227. #define LV_LOG_TRACE_LAYOUT 1
  228. #define LV_LOG_TRACE_ANIM 1
  229. #define LV_LOG_TRACE_CACHE 1
  230. #endif /* LV_USE_LOG */
  231. /*-------------
  232. * Asserts
  233. *-----------*/
  234. /*Enable asserts if an operation is failed or an invalid data is found.
  235. *If LV_USE_LOG is enabled an error message will be printed on failure*/
  236. /*Check if the parameter is NULL. (Very fast, recommended)*/
  237. #define LV_USE_ASSERT_NULL 1
  238. /*Checks is the memory is successfully allocated or no. (Very fast, recommended)*/
  239. #define LV_USE_ASSERT_MALLOC 1
  240. /*Check if the styles are properly initialized. (Very fast, recommended)*/
  241. #define LV_USE_ASSERT_STYLE 0
  242. /*Check the integrity of `lv_mem` after critical operations. (Slow)*/
  243. #define LV_USE_ASSERT_MEM_INTEGRITY 0
  244. /*Check the object's type and existence (e.g. not deleted). (Slow)*/
  245. #define LV_USE_ASSERT_OBJ 0
  246. /*Add a custom handler when assert happens e.g. to restart the MCU*/
  247. #define LV_ASSERT_HANDLER_INCLUDE <stdint.h>
  248. /*Halt by default*/
  249. #define LV_ASSERT_HANDLER while(1);
  250. /*-------------
  251. * Debug
  252. *-----------*/
  253. /*1: Draw random colored rectangles over the redrawn areas*/
  254. #define LV_USE_REFR_DEBUG 0
  255. /*1: Draw a red overlay for ARGB layers and a green overlay for RGB layers*/
  256. #define LV_USE_LAYER_DEBUG 0
  257. /*1: Draw overlays with different colors for each draw_unit's tasks.
  258. *Also add the index number of the draw unit on white background.
  259. *For layers add the index number of the draw unit on black background.*/
  260. #define LV_USE_PARALLEL_DRAW_DEBUG 0
  261. /*-------------
  262. * Others
  263. *-----------*/
  264. #define LV_ENABLE_GLOBAL_CUSTOM 0
  265. #if LV_ENABLE_GLOBAL_CUSTOM
  266. /*Header to include for the custom 'lv_global' function*/
  267. #define LV_GLOBAL_CUSTOM_INCLUDE <stdint.h>
  268. #endif /* LV_ENABLE_GLOBAL_CUSTOM */
  269. /*Default cache size in bytes.
  270. *Used by image decoders such as `lv_lodepng` to keep the decoded image in the memory.
  271. *If size is not set to 0, the decoder will fail to decode when the cache is full.
  272. *If size is 0, the cache function is not enabled and the decoded mem will be released immediately after use.*/
  273. #define LV_CACHE_DEF_SIZE 0
  274. /*Default number of image header cache entries. The cache is used to store the headers of images
  275. *The main logic is like `LV_CACHE_DEF_SIZE` but for image headers.*/
  276. #define LV_IMAGE_HEADER_CACHE_DEF_CNT 0
  277. /*Number of stops allowed per gradient. Increase this to allow more stops.
  278. *This adds (sizeof(lv_color_t) + 1) bytes per additional stop*/
  279. #define LV_GRADIENT_MAX_STOPS 2
  280. /* Adjust color mix functions rounding. GPUs might calculate color mix (blending) differently.
  281. * 0: round down, 64: round up from x.75, 128: round up from half, 192: round up from x.25, 254: round up */
  282. #define LV_COLOR_MIX_ROUND_OFS 0
  283. /* Add 2 x 32 bit variables to each lv_obj_t to speed up getting style properties */
  284. #define LV_OBJ_STYLE_CACHE 0
  285. /* Add `id` field to `lv_obj_t` */
  286. #define LV_USE_OBJ_ID 0
  287. /* Automatically assign an ID when obj is created */
  288. #define LV_OBJ_ID_AUTO_ASSIGN LV_USE_OBJ_ID
  289. /*Use the builtin obj ID handler functions:
  290. * - lv_obj_assign_id: Called when a widget is created. Use a separate counter for each widget class as an ID.
  291. * - lv_obj_id_compare: Compare the ID to decide if it matches with a requested value.
  292. * - lv_obj_stringify_id: Return e.g. "button3"
  293. * - lv_obj_free_id: Does nothing, as there is no memory allocation for the ID.
  294. * When disabled these functions needs to be implemented by the user.*/
  295. #define LV_USE_OBJ_ID_BUILTIN 1
  296. /*Use obj property set/get API*/
  297. #define LV_USE_OBJ_PROPERTY 0
  298. /*Enable property name support*/
  299. #define LV_USE_OBJ_PROPERTY_NAME 0
  300. /* VG-Lite Simulator */
  301. /* Requires: LV_USE_THORVG_INTERNAL or LV_USE_THORVG_EXTERNAL */
  302. #define LV_USE_VG_LITE_THORVG 0
  303. #if LV_USE_VG_LITE_THORVG
  304. /*Enable LVGL's blend mode support*/
  305. #define LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT 0
  306. /*Enable YUV color format support*/
  307. #define LV_VG_LITE_THORVG_YUV_SUPPORT 0
  308. /*Enable Linear gradient extension support*/
  309. #define LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT 0
  310. /*Enable 16 pixels alignment*/
  311. #define LV_VG_LITE_THORVG_16PIXELS_ALIGN 1
  312. /*Buffer address alignment*/
  313. #define LV_VG_LITE_THORVG_BUF_ADDR_ALIGN 64
  314. /*Enable multi-thread render*/
  315. #define LV_VG_LITE_THORVG_THREAD_RENDER 0
  316. #endif /* LV_USE_VG_LITE_THORVG */
  317. /*====================
  318. * COMPILER SETTINGS
  319. *====================*/
  320. /*For big endian systems set to 1*/
  321. #define LV_BIG_ENDIAN_SYSTEM 0
  322. /*Define a custom attribute to `lv_tick_inc` function*/
  323. #define LV_ATTRIBUTE_TICK_INC
  324. /*Define a custom attribute to `lv_timer_handler` function*/
  325. #define LV_ATTRIBUTE_TIMER_HANDLER
  326. /*Define a custom attribute to `lv_display_flush_ready` function*/
  327. #define LV_ATTRIBUTE_FLUSH_READY
  328. /*Required alignment size for buffers*/
  329. #define LV_ATTRIBUTE_MEM_ALIGN_SIZE 1
  330. /*Will be added where memories needs to be aligned (with -Os data might not be aligned to boundary by default).
  331. * E.g. __attribute__((aligned(4)))*/
  332. #define LV_ATTRIBUTE_MEM_ALIGN
  333. #ifndef LV_ATTRIBUTE_LARGE_CONST
  334. /*Attribute to mark large constant arrays for example font's bitmaps*/
  335. #define LV_ATTRIBUTE_LARGE_CONST
  336. #endif /* LV_ATTRIBUTE_LARGE_CONST */
  337. /*Compiler prefix for a big array declaration in RAM*/
  338. #define LV_ATTRIBUTE_LARGE_RAM_ARRAY
  339. /*Place performance critical functions into a faster memory (e.g RAM)*/
  340. #define LV_ATTRIBUTE_FAST_MEM
  341. /*Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that
  342. *should also appear on LVGL binding API such as Micropython.*/
  343. #define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning
  344. /*Prefix all global extern data with this*/
  345. #define LV_ATTRIBUTE_EXTERN_DATA
  346. /* Use `float` as `lv_value_precise_t` */
  347. #define LV_USE_FLOAT 0
  348. /*Enable matrix support
  349. *Requires `LV_USE_FLOAT = 1`*/
  350. #define LV_USE_MATRIX 0
  351. /*Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default */
  352. #define LV_USE_PRIVATE_API 1
  353. /*====================
  354. * FONT USAGE
  355. *====================*/
  356. /*Montserrat fonts with ASCII range and some symbols using bpp = 4
  357. *https://fonts.google.com/specimen/Montserrat*/
  358. #define LV_FONT_MONTSERRAT_8 0
  359. #define LV_FONT_MONTSERRAT_10 0
  360. #define LV_FONT_MONTSERRAT_12 1
  361. #define LV_FONT_MONTSERRAT_14 1
  362. #define LV_FONT_MONTSERRAT_16 0
  363. #define LV_FONT_MONTSERRAT_18 0
  364. #define LV_FONT_MONTSERRAT_20 0
  365. #define LV_FONT_MONTSERRAT_22 0
  366. #define LV_FONT_MONTSERRAT_24 0
  367. #define LV_FONT_MONTSERRAT_26 0
  368. #define LV_FONT_MONTSERRAT_28 0
  369. #define LV_FONT_MONTSERRAT_30 0
  370. #define LV_FONT_MONTSERRAT_32 0
  371. #define LV_FONT_MONTSERRAT_34 0
  372. #define LV_FONT_MONTSERRAT_36 0
  373. #define LV_FONT_MONTSERRAT_38 0
  374. #define LV_FONT_MONTSERRAT_40 0
  375. #define LV_FONT_MONTSERRAT_42 0
  376. #define LV_FONT_MONTSERRAT_44 0
  377. #define LV_FONT_MONTSERRAT_46 0
  378. #define LV_FONT_MONTSERRAT_48 0
  379. /*Demonstrate special features*/
  380. /*bpp = 3*/
  381. #define LV_FONT_MONTSERRAT_28_COMPRESSED 0
  382. /*Hebrew, Arabic, Persian letters and all their forms*/
  383. #define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0
  384. /*1000 most common CJK radicals*/
  385. #define LV_FONT_SIMSUN_14_CJK 0
  386. /*1000 most common CJK radicals*/
  387. #define LV_FONT_SIMSUN_16_CJK 0
  388. /*Pixel perfect monospace fonts*/
  389. #define LV_FONT_UNSCII_8 0
  390. #define LV_FONT_UNSCII_16 0
  391. /*Optionally declare custom fonts here.
  392. *You can use these fonts as default font too and they will be available globally.
  393. *E.g. #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)*/
  394. #define LV_FONT_CUSTOM_DECLARE
  395. /*Always set a default font*/
  396. #define LV_FONT_DEFAULT &lv_font_montserrat_14
  397. /*Enable handling large font and/or fonts with a lot of characters.
  398. *The limit depends on the font size, font face and bpp.
  399. *Compiler error will be triggered if a font needs it.*/
  400. #define LV_FONT_FMT_TXT_LARGE 0
  401. /*Enables/disables support for compressed fonts.*/
  402. #define LV_USE_FONT_COMPRESSED 0
  403. /*Enable drawing placeholders when glyph dsc is not found*/
  404. #define LV_USE_FONT_PLACEHOLDER 1
  405. /*====================
  406. * TEXT SETTINGS
  407. *====================*/
  408. /**
  409. * Select a character encoding for strings.
  410. * Your IDE or editor should have the same character encoding
  411. * - LV_TXT_ENC_UTF8
  412. * - LV_TXT_ENC_ASCII
  413. */
  414. #define LV_TXT_ENC LV_TXT_ENC_UTF8
  415. /*Can break (wrap) texts on these chars*/
  416. #define LV_TXT_BREAK_CHARS " ,.;:-_)]}"
  417. /*If a word is at least this long, will break wherever "prettiest"
  418. *To disable, set to a value <= 0*/
  419. #define LV_TXT_LINE_BREAK_LONG_LEN 0
  420. /*Minimum number of characters in a long word to put on a line before a break.
  421. *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
  422. #define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
  423. /*Minimum number of characters in a long word to put on a line after a break.
  424. *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/
  425. #define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
  426. /*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts.
  427. *The direction will be processed according to the Unicode Bidirectional Algorithm:
  428. *https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
  429. #define LV_USE_BIDI 0
  430. #if LV_USE_BIDI
  431. /*Set the default direction. Supported values:
  432. *`LV_BASE_DIR_LTR` Left-to-Right
  433. *`LV_BASE_DIR_RTL` Right-to-Left
  434. *`LV_BASE_DIR_AUTO` detect texts base direction*/
  435. #define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
  436. #endif /* LV_USE_BIDI */
  437. /*Enable Arabic/Persian processing
  438. *In these languages characters should be replaced with another form based on their position in the text*/
  439. #define LV_USE_ARABIC_PERSIAN_CHARS 0
  440. /*====================
  441. * WIDGETS
  442. *====================*/
  443. /*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/
  444. #define LV_WIDGETS_HAS_DEFAULT_VALUE 1
  445. #define LV_USE_ANIMIMG 1
  446. #define LV_USE_ARC 1
  447. #define LV_USE_BAR 1
  448. #define LV_USE_BUTTON 1
  449. #define LV_USE_BUTTONMATRIX 1
  450. #define LV_USE_CALENDAR 1
  451. #if LV_USE_CALENDAR
  452. #define LV_CALENDAR_WEEK_STARTS_MONDAY 0
  453. #if LV_CALENDAR_WEEK_STARTS_MONDAY
  454. #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"}
  455. #else /* LV_CALENDAR_WEEK_STARTS_MONDAY */
  456. #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"}
  457. #endif /* LV_CALENDAR_WEEK_STARTS_MONDAY */
  458. #define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
  459. #define LV_USE_CALENDAR_HEADER_ARROW 1
  460. #define LV_USE_CALENDAR_HEADER_DROPDOWN 1
  461. #define LV_USE_CALENDAR_CHINESE 0
  462. #endif /* LV_USE_CALENDAR */
  463. #define LV_USE_CANVAS 1
  464. #define LV_USE_CAROUSEL 1
  465. #define LV_USE_CHART 1
  466. #define LV_USE_CHECKBOX 1
  467. #define LV_USE_DROPDOWN 1
  468. #define LV_USE_IMAGE 1
  469. #define LV_USE_IMAGEBUTTON 1
  470. #define LV_USE_KEYBOARD 1
  471. #define LV_USE_LABEL 1
  472. #if LV_USE_LABEL
  473. /*Enable selecting text of the label*/
  474. #define LV_LABEL_TEXT_SELECTION 1
  475. /*Store some extra info in labels to speed up drawing of very long texts*/
  476. #define LV_LABEL_LONG_TXT_HINT 1
  477. /*The count of wait chart*/
  478. #define LV_LABEL_WAIT_CHAR_COUNT 3
  479. #endif /* LV_USE_LABEL */
  480. #define LV_USE_LED 1
  481. #define LV_USE_LINE 1
  482. #define LV_USE_LIST 1
  483. #define LV_USE_LOTTIE 0
  484. #define LV_USE_MENU 1
  485. #define LV_USE_MSGBOX 1
  486. #define LV_USE_ROLLER 1
  487. #define LV_USE_SCALE 1
  488. #define LV_USE_SLIDER 1
  489. #define LV_USE_SPAN 1
  490. #if LV_USE_SPAN
  491. /*A line text can contain maximum num of span descriptor */
  492. #define LV_SPAN_SNIPPET_STACK_SIZE 64
  493. #endif /* LV_USE_SPAN */
  494. #define LV_USE_SPINBOX 1
  495. #define LV_USE_SPINNER 1
  496. #define LV_USE_SWITCH 1
  497. #define LV_USE_TEXTAREA 1
  498. #if LV_USE_TEXTAREA
  499. #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500
  500. #endif /* LV_USE_TEXTAREA */
  501. #define LV_USE_TABLE 1
  502. #define LV_USE_TABVIEW 1
  503. #define LV_USE_TILEVIEW 1
  504. #define LV_USE_VIDEO 0
  505. #define LV_USE_WIN 1
  506. /*====================
  507. * THEMES
  508. *====================*/
  509. /*A simple, impressive and very complete theme*/
  510. #define LV_USE_THEME_DEFAULT 1
  511. #if LV_USE_THEME_DEFAULT
  512. /*0: Light mode; 1: Dark mode*/
  513. #define LV_THEME_DEFAULT_DARK 0
  514. /*1: Enable grow on press*/
  515. #define LV_THEME_DEFAULT_GROW 1
  516. /*Default transition time in [ms]*/
  517. #define LV_THEME_DEFAULT_TRANSITION_TIME 80
  518. #endif /* LV_USE_THEME_DEFAULT */
  519. /*A very simple theme that is a good starting point for a custom theme*/
  520. #define LV_USE_THEME_SIMPLE 1
  521. /*A theme designed for monochrome displays*/
  522. #define LV_USE_THEME_MONO 1
  523. /*====================
  524. * LAYOUTS
  525. *====================*/
  526. /*A layout similar to Flexbox in CSS.*/
  527. #define LV_USE_FLEX 1
  528. /*A layout similar to Grid in CSS.*/
  529. #define LV_USE_GRID 1
  530. /*====================
  531. * 3RD PARTS LIBRARIES
  532. *====================*/
  533. /*File system interfaces for common APIs */
  534. /*Setting a default driver letter allows skipping the driver prefix in filepaths*/
  535. #define LV_FS_DEFAULT_DRIVE_LETTER '\0'
  536. /*API for fopen, fread, etc*/
  537. #define LV_USE_FS_STDIO 0
  538. #if LV_USE_FS_STDIO
  539. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  540. #define LV_FS_STDIO_LETTER 'E'
  541. /*Set the working directory. File/directory paths will be appended to it.*/
  542. #define LV_FS_STDIO_PATH ""
  543. /*>0 to cache this number of bytes in lv_fs_read()*/
  544. #define LV_FS_STDIO_CACHE_SIZE 0
  545. #endif /* LV_USE_FS_STDIO */
  546. /*API for open, read, etc*/
  547. #define LV_USE_FS_POSIX 0
  548. #if LV_USE_FS_POSIX
  549. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  550. #define LV_FS_POSIX_LETTER '\0'
  551. /*Set the working directory. File/directory paths will be appended to it.*/
  552. #define LV_FS_POSIX_PATH ""
  553. /*>0 to cache this number of bytes in lv_fs_read()*/
  554. #define LV_FS_POSIX_CACHE_SIZE 0
  555. #endif /* LV_USE_FS_POSIX */
  556. /*API for CreateFile, ReadFile, etc*/
  557. #define LV_USE_FS_WIN32 0
  558. #if LV_USE_FS_WIN32
  559. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  560. #define LV_FS_WIN32_LETTER '\0'
  561. /*Set the working directory. File/directory paths will be appended to it.*/
  562. #define LV_FS_WIN32_PATH ""
  563. /*>0 to cache this number of bytes in lv_fs_read()*/
  564. #define LV_FS_WIN32_CACHE_SIZE 0
  565. #endif /* LV_USE_FS_WIN32 */
  566. /*API for FATFS (needs to be added separately). Uses f_open, f_read, etc*/
  567. #define LV_USE_FS_FATFS 0
  568. #if LV_USE_FS_FATFS
  569. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  570. #define LV_FS_FATFS_LETTER '\0'
  571. /*>0 to cache this number of bytes in lv_fs_read()*/
  572. #define LV_FS_FATFS_CACHE_SIZE 0
  573. #endif /* LV_USE_FS_FATFS */
  574. /*API for RAWFS (needs to be added separately).*/
  575. #define LV_USE_FS_RAWFS 0
  576. #if LV_USE_FS_RAWFS
  577. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  578. #define LV_FS_RAWFS_LETTER '\0'
  579. /*use the XIP flash*/
  580. #define LV_FS_RAWFS_XIP 0
  581. #if LV_FS_RAWFS_XIP
  582. /*the XIP flash address where the image binary is placed*/
  583. #define LV_FS_RAWFS_XIP_BASE_ADDR
  584. #endif /* LV_FS_RAWFS_XIP */
  585. #endif /* LV_USE_FS_RAWFS */
  586. /*API for memory-mapped file access.*/
  587. #define LV_USE_FS_MEMFS 0
  588. #if LV_USE_FS_MEMFS
  589. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  590. #define LV_FS_MEMFS_LETTER '\0'
  591. #endif /* LV_USE_FS_MEMFS */
  592. /*API for LittleFs.*/
  593. #define LV_USE_FS_LITTLEFS 0
  594. #if LV_USE_FS_LITTLEFS
  595. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  596. #define LV_FS_LITTLEFS_LETTER '\0'
  597. #endif /* LV_USE_FS_LITTLEFS */
  598. /*API for Arduino LittleFs.*/
  599. #define LV_USE_FS_ARDUINO_ESP_LITTLEFS 0
  600. #if LV_USE_FS_ARDUINO_ESP_LITTLEFS
  601. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  602. #define LV_USE_FS_ARDUINO_ESP_LITTLEFS '\0'
  603. #endif /* LV_USE_FS_ARDUINO_ESP_LITTLEFS */
  604. /*API for Arduino Sd.*/
  605. #define LV_USE_FS_ARDUINO_SD 0
  606. #if LV_USE_FS_ARDUINO_SD
  607. /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  608. #define LV_FS_ARDUINO_SD_LETTER '\0'
  609. #endif /* LV_USE_FS_ARDUINO_SD */
  610. /*LODEPNG decoder library*/
  611. #define LV_USE_LODEPNG 0
  612. /*PNG decoder(libpng) library*/
  613. #define LV_USE_LIBPNG 0
  614. /*BMP decoder library*/
  615. #define LV_USE_BMP 0
  616. /* JPG + split JPG decoder library.
  617. * Split JPG is a custom format optimized for embedded systems. */
  618. #define LV_USE_TJPGD 0
  619. /* libjpeg-turbo decoder library.
  620. * Supports complete JPEG specifications and high-performance JPEG decoding. */
  621. #define LV_USE_LIBJPEG_TURBO 0
  622. /*GIF decoder library*/
  623. #define LV_USE_GIF 0
  624. #if LV_USE_GIF
  625. /*GIF decoder accelerate*/
  626. #define LV_GIF_CACHE_DECODE_DATA 0
  627. #endif /* LV_USE_GIF */
  628. /*Decode bin images to RAM*/
  629. #define LV_BIN_DECODER_RAM_LOAD 0
  630. /*RLE decompress library*/
  631. #define LV_USE_RLE 0
  632. /*QR code library*/
  633. #define LV_USE_QRCODE 1
  634. /*Barcode code library*/
  635. #define LV_USE_BARCODE 1
  636. /*FreeType library*/
  637. #define LV_USE_FREETYPE 0
  638. #if LV_USE_FREETYPE
  639. /*Let FreeType to use LVGL memory and file porting*/
  640. #define LV_FREETYPE_USE_LVGL_PORT 0
  641. /*Cache count of the glyphs in FreeType. It means the number of glyphs that can be cached.
  642. *The higher the value, the more memory will be used.*/
  643. #define LV_FREETYPE_CACHE_FT_GLYPH_CNT 256
  644. #endif /* LV_USE_FREETYPE */
  645. /* Built-in TTF decoder */
  646. #define LV_USE_TINY_TTF 0
  647. #if LV_USE_TINY_TTF
  648. /* Enable loading TTF data from files */
  649. #define LV_TINY_TTF_FILE_SUPPORT 0
  650. #define LV_TINY_TTF_CACHE_GLYPH_CNT 256
  651. #endif /* LV_USE_TINY_TTF */
  652. /*Rlottie library*/
  653. #define LV_USE_RLOTTIE 0
  654. /*Enable Vector Graphic APIs
  655. *Requires `LV_USE_MATRIX = 1`*/
  656. #define LV_USE_VECTOR_GRAPHIC 0
  657. /* Enable ThorVG (vector graphics library) from the src/libs folder */
  658. #define LV_USE_THORVG_INTERNAL 0
  659. /* Enable ThorVG by assuming that its installed and linked to the project */
  660. #define LV_USE_THORVG_EXTERNAL 0
  661. /*Use lvgl built-in LZ4 lib*/
  662. #define LV_USE_LZ4_INTERNAL 0
  663. /*Use external LZ4 library*/
  664. #define LV_USE_LZ4_EXTERNAL 0
  665. /*FFmpeg library for image decoding and playing videos
  666. *Supports all major image formats so do not enable other image decoder with it*/
  667. #define LV_USE_FFMPEG 0
  668. #if LV_USE_FFMPEG
  669. /*Dump input information to stderr*/
  670. #define LV_FFMPEG_DUMP_FORMAT 0
  671. #endif /* LV_USE_FFMPEG */
  672. /*====================
  673. * OTHERS
  674. *====================*/
  675. /*1: Enable API to take snapshot for object*/
  676. #define LV_USE_SNAPSHOT 0
  677. /*1: Enable system monitor component*/
  678. #define LV_USE_SYSMON 1
  679. #if LV_USE_SYSMON
  680. /*Get the idle percentage. E.g. uint32_t my_get_idle(void);*/
  681. #define LV_SYSMON_GET_IDLE lv_timer_get_idle
  682. /*1: Show CPU usage and FPS count
  683. * Requires `LV_USE_SYSMON = 1`*/
  684. #define LV_USE_PERF_MONITOR 0
  685. #if LV_USE_PERF_MONITOR
  686. #define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
  687. /*0: Displays performance data on the screen, 1: Prints performance data using log.*/
  688. #define LV_USE_PERF_MONITOR_LOG_MODE 0
  689. #endif /* LV_USE_PERF_MONITOR */
  690. /*1: Show the used memory and the memory fragmentation
  691. * Requires `LV_USE_STDLIB_MALLOC = LV_STDLIB_BUILTIN`
  692. * Requires `LV_USE_SYSMON = 1`*/
  693. #define LV_USE_MEM_MONITOR 0
  694. #if LV_USE_MEM_MONITOR
  695. #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
  696. #endif /* LV_USE_MEM_MONITOR */
  697. #endif /* LV_USE_SYSMON */
  698. /*1: Enable the runtime performance profiler*/
  699. #define LV_USE_PROFILER 0
  700. #if LV_USE_PROFILER
  701. /*1: Enable the built-in profiler*/
  702. #define LV_USE_PROFILER_BUILTIN 1
  703. #if LV_USE_PROFILER_BUILTIN
  704. /*Default profiler trace buffer size*/
  705. #define LV_PROFILER_BUILTIN_BUF_SIZE (16U * 1024U)
  706. #endif /* LV_USE_PROFILER_BUILTIN */
  707. /*Header to include for the profiler*/
  708. #define LV_PROFILER_INCLUDE lvgl/src/misc/lv_profiler_builtin.h
  709. /*Profiler start point function*/
  710. #define LV_PROFILER_BEGIN LV_PROFILER_BUILTIN_BEGIN
  711. /*Profiler end point function*/
  712. #define LV_PROFILER_END LV_PROFILER_BUILTIN_END
  713. /*Profiler start point function with custom tag*/
  714. #define LV_PROFILER_BEGIN_TAG LV_PROFILER_BUILTIN_BEGIN_TAG
  715. /*Profiler end point function with custom tag*/
  716. #define LV_PROFILER_END_TAG LV_PROFILER_BUILTIN_END_TAG
  717. #endif /* LV_USE_PROFILER */
  718. /*1: Enable Monkey test*/
  719. #define LV_USE_MONKEY 0
  720. /*1: Enable grid navigation*/
  721. #define LV_USE_GRIDNAV 0
  722. /*1: Enable lv_obj fragment*/
  723. #define LV_USE_FRAGMENT 0
  724. /*1: Support using images as font in label or span widgets */
  725. #define LV_USE_IMGFONT 0
  726. /*1: Enable an observer pattern implementation*/
  727. #define LV_USE_OBSERVER 1
  728. /*1: Enable Pinyin input method. Requires: lv_keyboard*/
  729. #define LV_USE_IME_PINYIN 0
  730. #if LV_USE_IME_PINYIN
  731. /*1: Use default thesaurus*/
  732. /*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/
  733. #define LV_IME_PINYIN_USE_DEFAULT_DICT 0
  734. /*Set the maximum number of candidate panels that can be displayed*/
  735. /*This needs to be adjusted according to the size of the screen*/
  736. #define LV_IME_PINYIN_CAND_TEXT_NUM 6
  737. /*Use 9 key input(k9)*/
  738. #define LV_IME_PINYIN_USE_K9_MODE 1
  739. #if LV_IME_PINYIN_USE_K9_MODE
  740. #define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3
  741. #endif /* LV_IME_PINYIN_USE_K9_MODE */
  742. #endif /* LV_USE_IME_PINYIN */
  743. /*1: Enable file explorer*/
  744. /*Requires: lv_table*/
  745. #define LV_USE_FILE_EXPLORER 0
  746. #if LV_USE_FILE_EXPLORER
  747. /*Maximum length of path*/
  748. #define LV_FILE_EXPLORER_PATH_MAX_LEN 128
  749. /*Quick access bar, 1:use, 0:not use*/
  750. /*Requires: lv_list*/
  751. #define LV_FILE_EXPLORER_QUICK_ACCESS 1
  752. #endif /* LV_USE_FILE_EXPLORER */
  753. /*====================
  754. * DEVICES
  755. *====================*/
  756. /*Use SDL to open window on PC and handle mouse and keyboard*/
  757. #define LV_USE_SDL 1
  758. #if LV_USE_SDL
  759. #define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
  760. /*LV_DISPLAY_RENDER_MODE_DIRECT is recommended for best performance*/
  761. #define LV_SDL_RENDER_MODE LV_DISPLAY_RENDER_MODE_DIRECT
  762. /*1 or 2*/
  763. #define LV_SDL_BUF_COUNT 1
  764. /*1: Use hardware acceleration*/
  765. #define LV_SDL_ACCELERATED 0
  766. /*1: Make the window full screen by default*/
  767. #define LV_SDL_FULLSCREEN 0
  768. /*1: Exit the application when all SDL windows are closed*/
  769. #define LV_SDL_DIRECT_EXIT 1
  770. /*LV_SDL_MOUSEWHEEL_MODE_ENCODER/CROWN*/
  771. #define LV_SDL_MOUSEWHEEL_MODE LV_SDL_MOUSEWHEEL_MODE_ENCODER
  772. #endif /* LV_USE_SDL */
  773. /*Use X11 to open window on Linux desktop and handle mouse and keyboard*/
  774. #define LV_USE_X11 0
  775. #if LV_USE_X11
  776. /*Exit the application when all X11 windows have been closed*/
  777. #define LV_X11_DIRECT_EXIT 1
  778. /*Use double buffers for rendering*/
  779. #define LV_X11_DOUBLE_BUFFER 1
  780. /*select only 1 of the following render modes (LV_X11_RENDER_MODE_PARTIAL preferred!)*/
  781. /*Partial render mode (preferred)*/
  782. #define LV_X11_RENDER_MODE_PARTIAL 1
  783. /*direct render mode*/
  784. #define LV_X11_RENDER_MODE_DIRECT 0
  785. /*Full render mode*/
  786. #define LV_X11_RENDER_MODE_FULL 0
  787. #endif /* LV_USE_X11 */
  788. /*Use Wayland to open a window and handle input on Linux or BSD desktops */
  789. #define LV_USE_WAYLAND 0
  790. #if LV_USE_WAYLAND
  791. /*Draw client side window decorations only necessary on Mutter/GNOME*/
  792. #define LV_WAYLAND_WINDOW_DECORATIONS 0
  793. /*Use the legacy wl_shell protocol instead of the default XDG shell*/
  794. #define LV_WAYLAND_WL_SHELL 0
  795. #endif /* LV_USE_WAYLAND */
  796. /*Driver for /dev/fb*/
  797. #define LV_USE_LINUX_FBDEV 0
  798. #if LV_USE_LINUX_FBDEV
  799. #define LV_LINUX_FBDEV_BSD 0
  800. #define LV_LINUX_FBDEV_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL
  801. #define LV_LINUX_FBDEV_BUFFER_COUNT 0
  802. #define LV_LINUX_FBDEV_BUFFER_SIZE 60
  803. #endif /* LV_USE_LINUX_FBDEV */
  804. /*Use Nuttx to open window and handle touchscreen*/
  805. #define LV_USE_NUTTX 0
  806. #if LV_USE_NUTTX
  807. #define LV_USE_NUTTX_LIBUV 0
  808. /*Use Nuttx custom init API to open window and handle touchscreen*/
  809. #define LV_USE_NUTTX_CUSTOM_INIT 0
  810. /*Driver for /dev/lcd*/
  811. #define LV_USE_NUTTX_LCD 0
  812. #if LV_USE_NUTTX_LCD
  813. #define LV_NUTTX_LCD_BUFFER_COUNT 0
  814. #define LV_NUTTX_LCD_BUFFER_SIZE 60
  815. #endif /* LV_USE_NUTTX_LCD */
  816. /*Driver for /dev/input*/
  817. #define LV_USE_NUTTX_TOUCHSCREEN 0
  818. #endif /* LV_USE_NUTTX */
  819. /*Driver for /dev/dri/card*/
  820. #define LV_USE_LINUX_DRM 0
  821. #if LV_USE_LINUX_DRM
  822. #define LV_LINUX_DRM_CARD ""
  823. #endif /* LV_USE_LINUX_DRM */
  824. /*Interface for TFT_eSPI*/
  825. #define LV_USE_TFT_ESPI 0
  826. /*Driver for evdev input devices*/
  827. #define LV_USE_EVDEV 0
  828. #if LV_USE_EVDEV
  829. /*Deafult evdev input device*/
  830. #define LV_EVDEV_DEVICE ""
  831. #endif /* LV_USE_EVDEV */
  832. /*Driver for libinput input devices*/
  833. #define LV_USE_LIBINPUT 0
  834. #if LV_USE_LIBINPUT
  835. #define LV_LIBINPUT_BSD 0
  836. /*Full keyboard support*/
  837. #define LV_LIBINPUT_XKB 0
  838. #if LV_LIBINPUT_XKB
  839. /*"setxkbmap -query" can help find the right values for your keyboard*/
  840. #define LV_LIBINPUT_XKB_KEY_MAP { .rules = NULL, .model = "pc101", .layout = "us", .variant = NULL, .options = NULL }
  841. #endif /* LV_LIBINPUT_XKB */
  842. #endif /* LV_USE_LIBINPUT */
  843. /*Drivers for LCD devices connected via SPI/parallel port*/
  844. #define LV_USE_ST7735 0
  845. #define LV_USE_ST7789 0
  846. #define LV_USE_ST7796 0
  847. #define LV_USE_ILI9341 0
  848. #define LV_USE_GENERIC_MIPI (LV_USE_ST7735 | LV_USE_ST7789 | LV_USE_ST7796 | LV_USE_ILI9341)
  849. /*Driver for Renesas GLCD*/
  850. #define LV_USE_RENESAS_GLCDC 0
  851. /* LVGL Windows backend */
  852. #define LV_USE_WINDOWS 0
  853. /* Use OpenGL to open window on PC and handle mouse and keyboard */
  854. #define LV_USE_OPENGLES 0
  855. #if LV_USE_OPENGLES
  856. /* Enable or disable debug for opengles */
  857. #define LV_USE_OPENGLES_DEBUG 1
  858. #endif /* LV_USE_OPENGLES */
  859. /* QNX Screen display and input drivers */
  860. #define LV_USE_QNX 0
  861. #if LV_USE_QNX
  862. /*1 or 2*/
  863. #define LV_QNX_BUF_COUNT 1
  864. #endif /* LV_USE_QNX */
  865. /*Gui Guider simulator*/
  866. #define LV_USE_GUIDER_SIMULATOR 1
  867. #if LV_USE_GUIDER_SIMULATOR
  868. /* Resize the simulator window. */
  869. #define LV_GUIDER_SIMULATOR_WINDOW_ZOOM 1
  870. /* Enable the FreeMaster integration */
  871. #define LV_USE_FREEMASTER 0
  872. #endif /* LV_USE_GUIDER_SIMULATOR */
  873. #include "lv_conf_ext.h"
  874. #endif