lv_conf_template.h 36 KB

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