board.h 33 KB

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