lv_conf.h 36 KB

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