lv_conf.h 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503
  1. /**
  2. * @file lv_conf.h
  3. * Configuration file for v9.4.0
  4. */
  5. /*
  6. * Copy this file as `lv_conf.h`
  7. * 1. simply next to `lvgl` folder
  8. * 2. or to any other place and
  9. * - define `LV_CONF_INCLUDE_SIMPLE`;
  10. * - add the path as an include path.
  11. */
  12. /* clang-format off */
  13. #if 1 /* Set this to "1" to enable content */
  14. #ifndef LV_CONF_H
  15. #define LV_CONF_H
  16. /* Include platform-specific configuration */
  17. #include "luat_easylvgl_conf.h"
  18. /* If you need to include anything here, do it inside the `__ASSEMBLY__` guard */
  19. #if 0 && defined(__ASSEMBLY__)
  20. #include "my_include.h"
  21. #endif
  22. /*====================
  23. COLOR SETTINGS
  24. *====================*/
  25. /** Color depth: 1 (I1), 8 (L8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888) */
  26. #define LV_COLOR_DEPTH 16
  27. /*=========================
  28. STDLIB WRAPPER SETTINGS
  29. *=========================*/
  30. /** Possible values
  31. * - LV_STDLIB_BUILTIN: LVGL's built in implementation
  32. * - LV_STDLIB_CLIB: Standard C functions, like malloc, strlen, etc
  33. * - LV_STDLIB_MICROPYTHON: MicroPython implementation
  34. * - LV_STDLIB_RTTHREAD: RT-Thread implementation
  35. * - LV_STDLIB_CUSTOM: Implement the functions externally
  36. */
  37. #define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
  38. /** Possible values
  39. * - LV_STDLIB_BUILTIN: LVGL's built in implementation
  40. * - LV_STDLIB_CLIB: Standard C functions, like malloc, strlen, etc
  41. * - LV_STDLIB_MICROPYTHON: MicroPython implementation
  42. * - LV_STDLIB_RTTHREAD: RT-Thread implementation
  43. * - LV_STDLIB_CUSTOM: Implement the functions externally
  44. */
  45. #define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN
  46. /** Possible values
  47. * - LV_STDLIB_BUILTIN: LVGL's built in implementation
  48. * - LV_STDLIB_CLIB: Standard C functions, like malloc, strlen, etc
  49. * - LV_STDLIB_MICROPYTHON: MicroPython implementation
  50. * - LV_STDLIB_RTTHREAD: RT-Thread implementation
  51. * - LV_STDLIB_CUSTOM: Implement the functions externally
  52. */
  53. #define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN
  54. #define LV_STDINT_INCLUDE <stdint.h>
  55. #define LV_STDDEF_INCLUDE <stddef.h>
  56. #define LV_STDBOOL_INCLUDE <stdbool.h>
  57. #define LV_INTTYPES_INCLUDE <inttypes.h>
  58. #define LV_LIMITS_INCLUDE <limits.h>
  59. #define LV_STDARG_INCLUDE <stdarg.h>
  60. #if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
  61. /** Size of memory available for `lv_malloc()` in bytes (>= 2kB) */
  62. #ifndef LV_MEM_SIZE
  63. #define LV_MEM_SIZE (64 * 1024U) /**< [bytes] */
  64. #endif
  65. /** Size of the memory expand for `lv_malloc()` in bytes */
  66. #define LV_MEM_POOL_EXPAND_SIZE 0
  67. /** Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too. */
  68. #define LV_MEM_ADR 0 /**< 0: unused*/
  69. /* Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc */
  70. #if LV_MEM_ADR == 0
  71. #undef LV_MEM_POOL_INCLUDE
  72. #undef LV_MEM_POOL_ALLOC
  73. #endif
  74. #endif /*LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN*/
  75. /*====================
  76. HAL SETTINGS
  77. *====================*/
  78. /** Default display refresh, input device read and animation step period. */
  79. #define LV_DEF_REFR_PERIOD 33 /**< [ms] */
  80. /** Default Dots Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
  81. * (Not so important, you can adjust it to modify default sizes and spaces.) */
  82. #define LV_DPI_DEF 130 /**< [px/inch] */
  83. /*=================
  84. * OPERATING SYSTEM
  85. *=================*/
  86. /** Select operating system to use. Possible options:
  87. * - LV_OS_NONE
  88. * - LV_OS_PTHREAD
  89. * - LV_OS_FREERTOS
  90. * - LV_OS_CMSIS_RTOS2
  91. * - LV_OS_RTTHREAD
  92. * - LV_OS_WINDOWS
  93. * - LV_OS_MQX
  94. * - LV_OS_SDL2
  95. * - LV_OS_CUSTOM */
  96. #ifndef LV_USE_OS
  97. #define LV_USE_OS LV_OS_NONE /* Default: no OS */
  98. #endif
  99. #if LV_USE_OS == LV_OS_CUSTOM
  100. #define LV_OS_CUSTOM_INCLUDE "luat_easylvgl_os.h"
  101. #endif
  102. #if LV_USE_OS == LV_OS_FREERTOS
  103. /*
  104. * Unblocking an RTOS task with a direct notification is 45% faster and uses less RAM
  105. * than unblocking a task using an intermediary object such as a binary semaphore.
  106. * RTOS task notifications can only be used when there is only one task that can be the recipient of the event.
  107. */
  108. #define LV_USE_FREERTOS_TASK_NOTIFY 1
  109. #endif
  110. /*========================
  111. * RENDERING CONFIGURATION
  112. *========================*/
  113. /** Align stride of all layers and images to this bytes */
  114. #define LV_DRAW_BUF_STRIDE_ALIGN 1
  115. /** Align start address of draw_buf addresses to this bytes*/
  116. #define LV_DRAW_BUF_ALIGN 4
  117. /** Using matrix for transformations.
  118. * Requirements:
  119. * - `LV_USE_MATRIX = 1`.
  120. * - Rendering engine needs to support 3x3 matrix transformations. */
  121. #define LV_DRAW_TRANSFORM_USE_MATRIX 0
  122. /* If a widget has `style_opa < 255` (not `bg_opa`, `text_opa` etc) or not NORMAL blend mode
  123. * it is buffered into a "simple" layer before rendering. The widget can be buffered in smaller chunks.
  124. * "Transformed layers" (if `transform_angle/zoom` are set) use larger buffers
  125. * and can't be drawn in chunks. */
  126. /** The target buffer size for simple layer chunks. */
  127. #define LV_DRAW_LAYER_SIMPLE_BUF_SIZE (24 * 1024) /**< [bytes]*/
  128. /* Limit the max allocated memory for simple and transformed layers.
  129. * It should be at least `LV_DRAW_LAYER_SIMPLE_BUF_SIZE` sized but if transformed layers are also used
  130. * it should be enough to store the largest widget too (width x height x 4 area).
  131. * Set it to 0 to have no limit. */
  132. #define LV_DRAW_LAYER_MAX_MEMORY 0 /**< No limit by default [bytes]*/
  133. /** Stack size of drawing thread.
  134. * NOTE: If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more.
  135. */
  136. #define LV_DRAW_THREAD_STACK_SIZE (8 * 1024) /**< [bytes]*/
  137. /** Thread priority of the drawing task.
  138. * Higher values mean higher priority.
  139. * Can use values from lv_thread_prio_t enum in lv_os.h: LV_THREAD_PRIO_LOWEST,
  140. * LV_THREAD_PRIO_LOW, LV_THREAD_PRIO_MID, LV_THREAD_PRIO_HIGH, LV_THREAD_PRIO_HIGHEST
  141. * Make sure the priority value aligns with the OS-specific priority levels.
  142. * On systems with limited priority levels (e.g., FreeRTOS), a higher value can improve
  143. * rendering performance but might cause other tasks to starve. */
  144. #define LV_DRAW_THREAD_PRIO LV_THREAD_PRIO_HIGH
  145. #define LV_USE_DRAW_SW 1
  146. #if LV_USE_DRAW_SW == 1
  147. /*
  148. * Selectively disable color format support in order to reduce code size.
  149. * NOTE: some features use certain color formats internally, e.g.
  150. * - gradients use RGB888
  151. * - bitmaps with transparency may use ARGB8888
  152. */
  153. #define LV_DRAW_SW_SUPPORT_RGB565 1
  154. #define LV_DRAW_SW_SUPPORT_RGB565_SWAPPED 1
  155. #define LV_DRAW_SW_SUPPORT_RGB565A8 1
  156. #define LV_DRAW_SW_SUPPORT_RGB888 1
  157. #define LV_DRAW_SW_SUPPORT_XRGB8888 1
  158. #define LV_DRAW_SW_SUPPORT_ARGB8888 1
  159. #define LV_DRAW_SW_SUPPORT_ARGB8888_PREMULTIPLIED 1
  160. #define LV_DRAW_SW_SUPPORT_L8 1
  161. #define LV_DRAW_SW_SUPPORT_AL88 1
  162. #define LV_DRAW_SW_SUPPORT_A8 1
  163. #define LV_DRAW_SW_SUPPORT_I1 1
  164. /* The threshold of the luminance to consider a pixel as
  165. * active in indexed color format */
  166. #define LV_DRAW_SW_I1_LUM_THRESHOLD 127
  167. /** Set number of draw units.
  168. * - > 1 requires operating system to be enabled in `LV_USE_OS`.
  169. * - > 1 means multiple threads will render the screen in parallel. */
  170. #ifndef LV_DRAW_SW_DRAW_UNIT_CNT
  171. #define LV_DRAW_SW_DRAW_UNIT_CNT 1
  172. #endif
  173. /** Use Arm-2D to accelerate software (sw) rendering. */
  174. #define LV_USE_DRAW_ARM2D_SYNC 0
  175. /** Enable native helium assembly to be compiled. */
  176. #define LV_USE_NATIVE_HELIUM_ASM 0
  177. /**
  178. * - 0: Use a simple renderer capable of drawing only simple rectangles with gradient, images, text, and straight lines only.
  179. * - 1: Use a complex renderer capable of drawing rounded corners, shadow, skew lines, and arcs too. */
  180. #define LV_DRAW_SW_COMPLEX 1
  181. #if LV_DRAW_SW_COMPLEX == 1
  182. /** Allow buffering some shadow calculation.
  183. * LV_DRAW_SW_SHADOW_CACHE_SIZE is the maximum shadow size to buffer, where shadow size is
  184. * `shadow_width + radius`. Caching has LV_DRAW_SW_SHADOW_CACHE_SIZE^2 RAM cost. */
  185. #define LV_DRAW_SW_SHADOW_CACHE_SIZE 0
  186. /** Set number of maximally-cached circle data.
  187. * The circumference of 1/4 circle are saved for anti-aliasing.
  188. * `radius * 4` bytes are used per circle (the most often used radiuses are saved).
  189. * - 0: disables caching */
  190. #define LV_DRAW_SW_CIRCLE_CACHE_SIZE 4
  191. #endif
  192. #define LV_USE_DRAW_SW_ASM LV_DRAW_SW_ASM_NONE
  193. #if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_CUSTOM
  194. #define LV_DRAW_SW_ASM_CUSTOM_INCLUDE ""
  195. #endif
  196. /** Enable drawing complex gradients in software: linear at an angle, radial or conical */
  197. #define LV_USE_DRAW_SW_COMPLEX_GRADIENTS 0
  198. #endif
  199. /*Use TSi's aka (Think Silicon) NemaGFX */
  200. #define LV_USE_NEMA_GFX 0
  201. #if LV_USE_NEMA_GFX
  202. /** Select which NemaGFX HAL to use. Possible options:
  203. * - LV_NEMA_HAL_CUSTOM
  204. * - LV_NEMA_HAL_STM32 */
  205. #define LV_USE_NEMA_HAL LV_NEMA_HAL_CUSTOM
  206. #if LV_USE_NEMA_HAL == LV_NEMA_HAL_STM32
  207. #define LV_NEMA_STM32_HAL_INCLUDE <stm32u5xx_hal.h>
  208. #endif
  209. /*Enable Vector Graphics Operations. Available only if NemaVG library is present*/
  210. #define LV_USE_NEMA_VG 0
  211. #if LV_USE_NEMA_VG
  212. /*Define application's resolution used for VG related buffer allocation */
  213. #define LV_NEMA_GFX_MAX_RESX 800
  214. #define LV_NEMA_GFX_MAX_RESY 600
  215. #endif
  216. #endif
  217. /** Use NXP's PXP on iMX RTxxx platforms. */
  218. #define LV_USE_PXP 0
  219. #if LV_USE_PXP
  220. /** Use PXP for drawing.*/
  221. #define LV_USE_DRAW_PXP 1
  222. /** Use PXP to rotate display.*/
  223. #define LV_USE_ROTATE_PXP 0
  224. #if LV_USE_DRAW_PXP && LV_USE_OS
  225. /** Use additional draw thread for PXP processing.*/
  226. #define LV_USE_PXP_DRAW_THREAD 1
  227. #endif
  228. /** Enable PXP asserts. */
  229. #define LV_USE_PXP_ASSERT 0
  230. #endif
  231. /** Use NXP's G2D on MPU platforms. */
  232. #define LV_USE_G2D 0
  233. #if LV_USE_G2D
  234. /** Use G2D for drawing. **/
  235. #define LV_USE_DRAW_G2D 1
  236. /** Use G2D to rotate display. **/
  237. #define LV_USE_ROTATE_G2D 0
  238. /** Maximum number of buffers that can be stored for G2D draw unit.
  239. * Includes the frame buffers and assets. */
  240. #define LV_G2D_HASH_TABLE_SIZE 50
  241. #if LV_USE_DRAW_G2D && LV_USE_OS
  242. /** Use additional draw thread for G2D processing.*/
  243. #define LV_USE_G2D_DRAW_THREAD 1
  244. #endif
  245. /** Enable G2D asserts. */
  246. #define LV_USE_G2D_ASSERT 0
  247. #endif
  248. /** Use Renesas Dave2D on RA platforms. */
  249. #define LV_USE_DRAW_DAVE2D 0
  250. /** Draw using cached SDL textures*/
  251. #define LV_USE_DRAW_SDL 0
  252. /** Use VG-Lite GPU. */
  253. #define LV_USE_DRAW_VG_LITE 0
  254. #if LV_USE_DRAW_VG_LITE
  255. /** Enable VG-Lite custom external 'gpu_init()' function */
  256. #define LV_VG_LITE_USE_GPU_INIT 0
  257. /** Enable VG-Lite assert. */
  258. #define LV_VG_LITE_USE_ASSERT 0
  259. /** VG-Lite flush commit trigger threshold. GPU will try to batch these many draw tasks. */
  260. #define LV_VG_LITE_FLUSH_MAX_COUNT 8
  261. /** Enable border to simulate shadow.
  262. * NOTE: which usually improves performance,
  263. * but does not guarantee the same rendering quality as the software. */
  264. #define LV_VG_LITE_USE_BOX_SHADOW 1
  265. /** VG-Lite gradient maximum cache number.
  266. * @note The memory usage of a single gradient image is 4K bytes. */
  267. #define LV_VG_LITE_GRAD_CACHE_CNT 32
  268. /** VG-Lite stroke maximum cache number. */
  269. #define LV_VG_LITE_STROKE_CACHE_CNT 32
  270. /** Remove VLC_OP_CLOSE path instruction (Workaround for NXP) **/
  271. #define LV_VG_LITE_DISABLE_VLC_OP_CLOSE 0
  272. /** Disable linear gradient extension for some older versions of drivers. */
  273. #define LV_VG_LITE_DISABLE_LINEAR_GRADIENT_EXT 0
  274. /** Enable usage of the LVGL's built-in vg_lite driver */
  275. #define LV_USE_VG_LITE_DRIVER 0
  276. #if LV_USE_VG_LITE_DRIVER
  277. /** Used to pick the correct GPU series folder valid options are gc255, gc355 and gc555*/
  278. #define LV_VG_LITE_HAL_GPU_SERIES gc255
  279. /** Used to pick the correct GPU revision header it depends on the vendor */
  280. #define LV_VG_LITE_HAL_GPU_REVISION 0x40
  281. /** Base memory address of the GPU IP it depends on SoC,
  282. * default value is for NXP based devices */
  283. #define LV_VG_LITE_HAL_GPU_BASE_ADDRESS 0x40240000
  284. #endif /*LV_USE_VG_LITE_DRIVER*/
  285. /** Use ThorVG (a software vector library) as VG-Lite driver to allow testing VGLite on PC
  286. * Requires: LV_USE_THORVG_INTERNAL or LV_USE_THORVG_EXTERNAL */
  287. #define LV_USE_VG_LITE_THORVG 0
  288. #if LV_USE_VG_LITE_THORVG
  289. /** Enable LVGL's blend mode support */
  290. #define LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT 0
  291. /** Enable YUV color format support */
  292. #define LV_VG_LITE_THORVG_YUV_SUPPORT 0
  293. /** Enable Linear gradient extension support */
  294. #define LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT 0
  295. /** Enable alignment on 16 pixels */
  296. #define LV_VG_LITE_THORVG_16PIXELS_ALIGN 1
  297. /** Buffer address alignment */
  298. #define LV_VG_LITE_THORVG_BUF_ADDR_ALIGN 64
  299. /** Enable multi-thread render */
  300. #define LV_VG_LITE_THORVG_THREAD_RENDER 0
  301. #endif /*LV_USE_VG_LITE_THORVG*/
  302. #endif
  303. /** Accelerate blends, fills, etc. with STM32 DMA2D */
  304. #define LV_USE_DRAW_DMA2D 0
  305. #if LV_USE_DRAW_DMA2D
  306. #define LV_DRAW_DMA2D_HAL_INCLUDE "stm32h7xx_hal.h"
  307. /* if enabled, the user is required to call `lv_draw_dma2d_transfer_complete_interrupt_handler`
  308. * upon receiving the DMA2D global interrupt
  309. */
  310. #define LV_USE_DRAW_DMA2D_INTERRUPT 0
  311. #endif
  312. /** Draw using cached OpenGLES textures. Requires LV_USE_OPENGLES */
  313. #define LV_USE_DRAW_OPENGLES 0
  314. #if LV_USE_DRAW_OPENGLES
  315. #define LV_DRAW_OPENGLES_TEXTURE_CACHE_COUNT 64
  316. #endif
  317. /** Draw using espressif PPA accelerator */
  318. #define LV_USE_PPA 0
  319. #if LV_USE_PPA
  320. #define LV_USE_PPA_IMG 0
  321. #endif
  322. /* Use EVE FT81X GPU. */
  323. #define LV_USE_DRAW_EVE 0
  324. #if LV_USE_DRAW_EVE
  325. /* EVE_GEN value: 2, 3, or 4 */
  326. #define LV_DRAW_EVE_EVE_GENERATION 4
  327. /* The maximum number of bytes to buffer before a single SPI transmission.
  328. * Set it to 0 to disable write buffering.
  329. */
  330. #define LV_DRAW_EVE_WRITE_BUFFER_SIZE 2048
  331. #endif
  332. /*=======================
  333. * FEATURE CONFIGURATION
  334. *=======================*/
  335. /*-------------
  336. * Logging
  337. *-----------*/
  338. /** Enable log module */
  339. #ifndef LV_USE_LOG
  340. #define LV_USE_LOG 0
  341. #endif
  342. #if LV_USE_LOG
  343. /** Set value to one of the following levels of logging detail:
  344. * - LV_LOG_LEVEL_TRACE Log detailed information.
  345. * - LV_LOG_LEVEL_INFO Log important events.
  346. * - LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem.
  347. * - LV_LOG_LEVEL_ERROR Log only critical issues, when system may fail.
  348. * - LV_LOG_LEVEL_USER Log only custom log messages added by the user.
  349. * - LV_LOG_LEVEL_NONE Do not log anything. */
  350. #ifndef LV_LOG_LEVEL
  351. #define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
  352. #endif
  353. /** - 1: Print log with 'printf';
  354. * - 0: User needs to register a callback with `lv_log_register_print_cb()`. */
  355. #define LV_LOG_PRINTF 0
  356. /** Set callback to print logs.
  357. * E.g `my_print`. The prototype should be `void my_print(lv_log_level_t level, const char * buf)`.
  358. * Can be overwritten by `lv_log_register_print_cb`. */
  359. //#define LV_LOG_PRINT_CB
  360. /** - 1: Enable printing timestamp;
  361. * - 0: Disable printing timestamp. */
  362. #define LV_LOG_USE_TIMESTAMP 1
  363. /** - 1: Print file and line number of the log;
  364. * - 0: Do not print file and line number of the log. */
  365. #define LV_LOG_USE_FILE_LINE 1
  366. /* Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs. */
  367. #define LV_LOG_TRACE_MEM 1 /**< Enable/disable trace logs in memory operations. */
  368. #define LV_LOG_TRACE_TIMER 1 /**< Enable/disable trace logs in timer operations. */
  369. #define LV_LOG_TRACE_INDEV 1 /**< Enable/disable trace logs in input device operations. */
  370. #define LV_LOG_TRACE_DISP_REFR 1 /**< Enable/disable trace logs in display re-draw operations. */
  371. #define LV_LOG_TRACE_EVENT 1 /**< Enable/disable trace logs in event dispatch logic. */
  372. #define LV_LOG_TRACE_OBJ_CREATE 1 /**< Enable/disable trace logs in object creation (core `obj` creation plus every widget). */
  373. #define LV_LOG_TRACE_LAYOUT 1 /**< Enable/disable trace logs in flex- and grid-layout operations. */
  374. #define LV_LOG_TRACE_ANIM 1 /**< Enable/disable trace logs in animation logic. */
  375. #define LV_LOG_TRACE_CACHE 1 /**< Enable/disable trace logs in cache operations. */
  376. #endif /*LV_USE_LOG*/
  377. /*-------------
  378. * Asserts
  379. *-----------*/
  380. /* Enable assertion failures if an operation fails or invalid data is found.
  381. * If LV_USE_LOG is enabled, an error message will be printed on failure. */
  382. #define LV_USE_ASSERT_NULL 1 /**< Check if the parameter is NULL. (Very fast, recommended) */
  383. #define LV_USE_ASSERT_MALLOC 1 /**< Checks is the memory is successfully allocated or no. (Very fast, recommended) */
  384. #define LV_USE_ASSERT_STYLE 0 /**< Check if the styles are properly initialized. (Very fast, recommended) */
  385. #define LV_USE_ASSERT_MEM_INTEGRITY 0 /**< Check the integrity of `lv_mem` after critical operations. (Slow) */
  386. #define LV_USE_ASSERT_OBJ 0 /**< Check the object's type and existence (e.g. not deleted). (Slow) */
  387. /** Add a custom handler when assert happens e.g. to restart MCU. */
  388. #define LV_ASSERT_HANDLER_INCLUDE <stdint.h>
  389. #define LV_ASSERT_HANDLER while(1); /**< Halt by default */
  390. /*-------------
  391. * Debug
  392. *-----------*/
  393. /** 1: Draw random colored rectangles over the redrawn areas. */
  394. #define LV_USE_REFR_DEBUG 0
  395. /** 1: Draw a red overlay for ARGB layers and a green overlay for RGB layers*/
  396. #define LV_USE_LAYER_DEBUG 0
  397. /** 1: Adds the following behaviors for debugging:
  398. * - Draw overlays with different colors for each draw_unit's tasks.
  399. * - Draw index number of draw unit on white background.
  400. * - For layers, draws index number of draw unit on black background. */
  401. #ifndef LV_USE_PARALLEL_DRAW_DEBUG
  402. #define LV_USE_PARALLEL_DRAW_DEBUG 0
  403. #endif
  404. /*-------------
  405. * Others
  406. *-----------*/
  407. #define LV_ENABLE_GLOBAL_CUSTOM 0
  408. #if LV_ENABLE_GLOBAL_CUSTOM
  409. /** Header to include for custom 'lv_global' function" */
  410. #define LV_GLOBAL_CUSTOM_INCLUDE <stdint.h>
  411. #endif
  412. /** Default cache size in bytes.
  413. * Used by image decoders such as `lv_lodepng` to keep the decoded image in memory.
  414. * If size is not set to 0, the decoder will fail to decode when the cache is full.
  415. * If size is 0, the cache function is not enabled and the decoded memory will be
  416. * released immediately after use. */
  417. #define LV_CACHE_DEF_SIZE 0
  418. /** Default number of image header cache entries. The cache is used to store the headers of images
  419. * The main logic is like `LV_CACHE_DEF_SIZE` but for image headers. */
  420. #define LV_IMAGE_HEADER_CACHE_DEF_CNT 0
  421. /** Number of stops allowed per gradient. Increase this to allow more stops.
  422. * This adds (sizeof(lv_color_t) + 1) bytes per additional stop. */
  423. #define LV_GRADIENT_MAX_STOPS 2
  424. /** Adjust color mix functions rounding. GPUs might calculate color mix (blending) differently.
  425. * - 0: round down,
  426. * - 64: round up from x.75,
  427. * - 128: round up from half,
  428. * - 192: round up from x.25,
  429. * - 254: round up */
  430. #define LV_COLOR_MIX_ROUND_OFS 0
  431. /** Add 2 x 32-bit variables to each `lv_obj_t` to speed up getting style properties */
  432. #define LV_OBJ_STYLE_CACHE 0
  433. /** Add `id` field to `lv_obj_t` */
  434. #define LV_USE_OBJ_ID 0
  435. /** Enable support widget names*/
  436. #define LV_USE_OBJ_NAME 0
  437. /** Automatically assign an ID when obj is created */
  438. #define LV_OBJ_ID_AUTO_ASSIGN LV_USE_OBJ_ID
  439. /** Use builtin obj ID handler functions:
  440. * - lv_obj_assign_id: Called when a widget is created. Use a separate counter for each widget class as an ID.
  441. * - lv_obj_id_compare: Compare the ID to decide if it matches with a requested value.
  442. * - lv_obj_stringify_id: Return string-ified identifier, e.g. "button3".
  443. * - lv_obj_free_id: Does nothing, as there is no memory allocation for the ID.
  444. * When disabled these functions needs to be implemented by the user.*/
  445. #define LV_USE_OBJ_ID_BUILTIN 1
  446. /** Use obj property set/get API. */
  447. #define LV_USE_OBJ_PROPERTY 0
  448. /** Enable property name support. */
  449. #define LV_USE_OBJ_PROPERTY_NAME 1
  450. /* Enable the multi-touch gesture recognition feature */
  451. /* Gesture recognition requires the use of floats */
  452. #define LV_USE_GESTURE_RECOGNITION 0
  453. /*=====================
  454. * COMPILER SETTINGS
  455. *====================*/
  456. /** For big endian systems set to 1 */
  457. #define LV_BIG_ENDIAN_SYSTEM 0
  458. /** Define a custom attribute for `lv_tick_inc` function */
  459. #define LV_ATTRIBUTE_TICK_INC
  460. /** Define a custom attribute for `lv_timer_handler` function */
  461. #define LV_ATTRIBUTE_TIMER_HANDLER
  462. /** Define a custom attribute for `lv_display_flush_ready` function */
  463. #define LV_ATTRIBUTE_FLUSH_READY
  464. /** Align VG_LITE buffers on this number of bytes.
  465. * @note vglite_src_buf_aligned() uses this value to validate alignment of passed buffer pointers. */
  466. #define LV_ATTRIBUTE_MEM_ALIGN_SIZE 1
  467. /** Will be added where memory needs to be aligned (with -Os data might not be aligned to boundary by default).
  468. * E.g. __attribute__((aligned(4)))*/
  469. #define LV_ATTRIBUTE_MEM_ALIGN
  470. /** Attribute to mark large constant arrays, for example for font bitmaps */
  471. #define LV_ATTRIBUTE_LARGE_CONST
  472. /** Compiler prefix for a large array declaration in RAM */
  473. #define LV_ATTRIBUTE_LARGE_RAM_ARRAY
  474. /** Place performance critical functions into a faster memory (e.g RAM) */
  475. #define LV_ATTRIBUTE_FAST_MEM
  476. /** Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that
  477. * should also appear on LVGL binding API such as MicroPython. */
  478. #define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /**< The default value just prevents GCC warning */
  479. /** Prefix all global extern data with this */
  480. #define LV_ATTRIBUTE_EXTERN_DATA
  481. /** Use `float` as `lv_value_precise_t` */
  482. #define LV_USE_FLOAT 0
  483. /** Enable matrix support
  484. * - Requires `LV_USE_FLOAT = 1` */
  485. #define LV_USE_MATRIX 0
  486. /** Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default */
  487. #ifndef LV_USE_PRIVATE_API
  488. #define LV_USE_PRIVATE_API 0
  489. #endif
  490. /*==================
  491. * FONT USAGE
  492. *===================*/
  493. /* Montserrat fonts with ASCII range and some symbols using bpp = 4
  494. * https://fonts.google.com/specimen/Montserrat */
  495. #define LV_FONT_MONTSERRAT_8 0
  496. #define LV_FONT_MONTSERRAT_10 0
  497. #define LV_FONT_MONTSERRAT_12 0
  498. #define LV_FONT_MONTSERRAT_14 1
  499. #define LV_FONT_MONTSERRAT_16 0
  500. #define LV_FONT_MONTSERRAT_18 0
  501. #define LV_FONT_MONTSERRAT_20 0
  502. #define LV_FONT_MONTSERRAT_22 0
  503. #define LV_FONT_MONTSERRAT_24 0
  504. #define LV_FONT_MONTSERRAT_26 0
  505. #define LV_FONT_MONTSERRAT_28 0
  506. #define LV_FONT_MONTSERRAT_30 0
  507. #define LV_FONT_MONTSERRAT_32 0
  508. #define LV_FONT_MONTSERRAT_34 0
  509. #define LV_FONT_MONTSERRAT_36 0
  510. #define LV_FONT_MONTSERRAT_38 0
  511. #define LV_FONT_MONTSERRAT_40 0
  512. #define LV_FONT_MONTSERRAT_42 0
  513. #define LV_FONT_MONTSERRAT_44 0
  514. #define LV_FONT_MONTSERRAT_46 0
  515. #define LV_FONT_MONTSERRAT_48 0
  516. /* Demonstrate special features */
  517. #define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /**< bpp = 3 */
  518. #define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /**< Hebrew, Arabic, Persian letters and all their forms */
  519. #define LV_FONT_SOURCE_HAN_SANS_SC_14_CJK 0 /**< 1338 most common CJK radicals */
  520. #define LV_FONT_SOURCE_HAN_SANS_SC_16_CJK 0 /**< 1338 most common CJK radicals */
  521. /** Pixel perfect monospaced fonts */
  522. #define LV_FONT_UNSCII_8 0
  523. #define LV_FONT_UNSCII_16 0
  524. /** Optionally declare custom fonts here.
  525. *
  526. * You can use any of these fonts as the default font too and they will be available
  527. * globally. Example:
  528. *
  529. * @code
  530. * #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)
  531. * @endcode
  532. */
  533. #ifndef LV_FONT_CUSTOM_DECLARE
  534. #define LV_FONT_CUSTOM_DECLARE
  535. #endif
  536. /** Always set a default font */
  537. #ifndef LV_FONT_DEFAULT
  538. #define LV_FONT_DEFAULT &lv_font_montserrat_14
  539. #endif
  540. /** Enable handling large font and/or fonts with a lot of characters.
  541. * The limit depends on the font size, font face and bpp.
  542. * A compiler error will be triggered if a font needs it. */
  543. #ifndef LV_FONT_FMT_TXT_LARGE
  544. #define LV_FONT_FMT_TXT_LARGE 0
  545. #endif
  546. /** Enables/disables support for compressed fonts. */
  547. #ifndef LV_USE_FONT_COMPRESSED
  548. #define LV_USE_FONT_COMPRESSED 0
  549. #endif
  550. /** Enable drawing placeholders when glyph dsc is not found. */
  551. #define LV_USE_FONT_PLACEHOLDER 1
  552. /*=================
  553. * TEXT SETTINGS
  554. *=================*/
  555. /**
  556. * Select a character encoding for strings.
  557. * Your IDE or editor should have the same character encoding.
  558. * - LV_TXT_ENC_UTF8
  559. * - LV_TXT_ENC_ASCII
  560. */
  561. #define LV_TXT_ENC LV_TXT_ENC_UTF8
  562. /** While rendering text strings, break (wrap) text on these chars. */
  563. #define LV_TXT_BREAK_CHARS " ,.;:-_)]}"
  564. /** If a word is at least this long, will break wherever "prettiest".
  565. * To disable, set to a value <= 0. */
  566. #define LV_TXT_LINE_BREAK_LONG_LEN 0
  567. /** Minimum number of characters in a long word to put on a line before a break.
  568. * Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
  569. #define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
  570. /** Minimum number of characters in a long word to put on a line after a break.
  571. * Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
  572. #define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
  573. /** Support bidirectional text. Allows mixing Left-to-Right and Right-to-Left text.
  574. * The direction will be processed according to the Unicode Bidirectional Algorithm:
  575. * https://www.w3.org/International/articles/inline-bidi-markup/uba-basics */
  576. #define LV_USE_BIDI 0
  577. #if LV_USE_BIDI
  578. /*Set the default direction. Supported values:
  579. *`LV_BASE_DIR_LTR` Left-to-Right
  580. *`LV_BASE_DIR_RTL` Right-to-Left
  581. *`LV_BASE_DIR_AUTO` detect text base direction*/
  582. #define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
  583. #endif
  584. /** Enable Arabic/Persian processing
  585. * In these languages characters should be replaced with another form based on their position in the text */
  586. #define LV_USE_ARABIC_PERSIAN_CHARS 0
  587. /*The control character to use for signaling text recoloring*/
  588. #define LV_TXT_COLOR_CMD "#"
  589. /*==================
  590. * WIDGETS
  591. *================*/
  592. /* Documentation for widgets can be found here: https://docs.lvgl.io/master/details/widgets/index.html . */
  593. /** 1: Causes these widgets to be given default values at creation time.
  594. * - lv_buttonmatrix_t: Get default maps: {"Btn1", "Btn2", "Btn3", "\n", "Btn4", "Btn5", ""}, else map not set.
  595. * - lv_checkbox_t : String label set to "Check box", else set to empty string.
  596. * - lv_dropdown_t : Options set to "Option 1", "Option 2", "Option 3", else no values are set.
  597. * - lv_roller_t : Options set to "Option 1", "Option 2", "Option 3", "Option 4", "Option 5", else no values are set.
  598. * - lv_label_t : Text set to "Text", else empty string.
  599. * - lv_arclabel_t : Text set to "Arced Text", else empty string.
  600. * */
  601. #define LV_WIDGETS_HAS_DEFAULT_VALUE 1
  602. #define LV_USE_ANIMIMG 1
  603. #define LV_USE_ARC 1
  604. #define LV_USE_ARCLABEL 1
  605. #define LV_USE_BAR 1
  606. #define LV_USE_BUTTON 1
  607. #define LV_USE_BUTTONMATRIX 1
  608. #define LV_USE_CALENDAR 1
  609. #if LV_USE_CALENDAR
  610. #define LV_CALENDAR_WEEK_STARTS_MONDAY 0
  611. #if LV_CALENDAR_WEEK_STARTS_MONDAY
  612. #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"}
  613. #else
  614. #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"}
  615. #endif
  616. #define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
  617. #define LV_USE_CALENDAR_HEADER_ARROW 1
  618. #define LV_USE_CALENDAR_HEADER_DROPDOWN 1
  619. #define LV_USE_CALENDAR_CHINESE 0
  620. #endif /*LV_USE_CALENDAR*/
  621. #define LV_USE_CANVAS 1
  622. #define LV_USE_CHART 1
  623. #define LV_USE_CHECKBOX 1
  624. #define LV_USE_DROPDOWN 1 /**< Requires: lv_label */
  625. #define LV_USE_IMAGE 1 /**< Requires: lv_label */
  626. #define LV_USE_IMAGEBUTTON 1
  627. #define LV_USE_KEYBOARD 1
  628. #define LV_USE_LABEL 1
  629. #if LV_USE_LABEL
  630. #define LV_LABEL_TEXT_SELECTION 1 /**< Enable selecting text of the label */
  631. #define LV_LABEL_LONG_TXT_HINT 1 /**< Store some extra info in labels to speed up drawing of very long text */
  632. #define LV_LABEL_WAIT_CHAR_COUNT 3 /**< The count of wait chart */
  633. #endif
  634. #define LV_USE_LED 1
  635. #define LV_USE_LINE 1
  636. #define LV_USE_LIST 1
  637. #define LV_USE_LOTTIE 0 /**< Requires: lv_canvas, thorvg */
  638. #define LV_USE_MENU 1
  639. #define LV_USE_MSGBOX 1
  640. #define LV_USE_ROLLER 1 /**< Requires: lv_label */
  641. #define LV_USE_SCALE 1
  642. #define LV_USE_SLIDER 1 /**< Requires: lv_bar */
  643. #define LV_USE_SPAN 1
  644. #if LV_USE_SPAN
  645. /** A line of text can contain this maximum number of span descriptors. */
  646. #define LV_SPAN_SNIPPET_STACK_SIZE 64
  647. #endif
  648. #define LV_USE_SPINBOX 1
  649. #define LV_USE_SPINNER 1
  650. #define LV_USE_SWITCH 1
  651. #define LV_USE_TABLE 1
  652. #define LV_USE_TABVIEW 1
  653. #define LV_USE_TEXTAREA 1 /**< Requires: lv_label */
  654. #if LV_USE_TEXTAREA != 0
  655. #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /**< [ms] */
  656. #endif
  657. #define LV_USE_TILEVIEW 1
  658. #define LV_USE_WIN 1
  659. #define LV_USE_3DTEXTURE 0
  660. /*==================
  661. * THEMES
  662. *==================*/
  663. /* Documentation for themes can be found here: https://docs.lvgl.io/master/details/common-widget-features/styles/styles.html#themes . */
  664. /** A simple, impressive and very complete theme */
  665. #define LV_USE_THEME_DEFAULT 1
  666. #if LV_USE_THEME_DEFAULT
  667. /** 0: Light mode; 1: Dark mode */
  668. #define LV_THEME_DEFAULT_DARK 0
  669. /** 1: Enable grow on press */
  670. #define LV_THEME_DEFAULT_GROW 1
  671. /** Default transition time in ms. */
  672. #define LV_THEME_DEFAULT_TRANSITION_TIME 80
  673. #endif /*LV_USE_THEME_DEFAULT*/
  674. /** A very simple theme that is a good starting point for a custom theme */
  675. #define LV_USE_THEME_SIMPLE 1
  676. /** A theme designed for monochrome displays */
  677. #define LV_USE_THEME_MONO 1
  678. /*==================
  679. * LAYOUTS
  680. *==================*/
  681. /* Documentation for layouts can be found here: https://docs.lvgl.io/master/details/common-widget-features/layouts/index.html . */
  682. /** A layout similar to Flexbox in CSS. */
  683. #define LV_USE_FLEX 1
  684. /** A layout similar to Grid in CSS. */
  685. #define LV_USE_GRID 1
  686. /*====================
  687. * 3RD PARTS LIBRARIES
  688. *====================*/
  689. /* Documentation for libraries can be found here: https://docs.lvgl.io/master/details/libs/index.html . */
  690. /* File system interfaces for common APIs */
  691. /** Setting a default driver letter allows skipping the driver prefix in filepaths.
  692. * Documentation about how to use the below driver-identifier letters can be found at
  693. * https://docs.lvgl.io/master/details/main-modules/fs.html#lv-fs-identifier-letters . */
  694. #define LV_FS_DEFAULT_DRIVER_LETTER '\0'
  695. /** API for fopen, fread, etc. */
  696. #define LV_USE_FS_STDIO 0
  697. #if LV_USE_FS_STDIO
  698. #define LV_FS_STDIO_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  699. #define LV_FS_STDIO_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  700. #define LV_FS_STDIO_CACHE_SIZE 0 /**< >0 to cache this number of bytes in lv_fs_read() */
  701. #endif
  702. /** API for open, read, etc. */
  703. #define LV_USE_FS_POSIX 0
  704. #if LV_USE_FS_POSIX
  705. #define LV_FS_POSIX_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  706. #define LV_FS_POSIX_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  707. #define LV_FS_POSIX_CACHE_SIZE 0 /**< >0 to cache this number of bytes in lv_fs_read() */
  708. #endif
  709. /** API for CreateFile, ReadFile, etc. */
  710. #define LV_USE_FS_WIN32 0
  711. #if LV_USE_FS_WIN32
  712. #define LV_FS_WIN32_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  713. #define LV_FS_WIN32_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  714. #define LV_FS_WIN32_CACHE_SIZE 0 /**< >0 to cache this number of bytes in lv_fs_read() */
  715. #endif
  716. /** API for FATFS (needs to be added separately). Uses f_open, f_read, etc. */
  717. #define LV_USE_FS_FATFS 0
  718. #if LV_USE_FS_FATFS
  719. #define LV_FS_FATFS_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  720. #define LV_FS_FATFS_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  721. #define LV_FS_FATFS_CACHE_SIZE 0 /**< >0 to cache this number of bytes in lv_fs_read() */
  722. #endif
  723. /** API for memory-mapped file access. */
  724. #define LV_USE_FS_MEMFS 0
  725. #if LV_USE_FS_MEMFS
  726. #define LV_FS_MEMFS_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  727. #endif
  728. /** API for LittleFs. */
  729. #define LV_USE_FS_LITTLEFS 0
  730. #if LV_USE_FS_LITTLEFS
  731. #define LV_FS_LITTLEFS_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  732. #define LV_FS_LITTLEFS_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  733. #endif
  734. /** API for Arduino LittleFs. */
  735. #define LV_USE_FS_ARDUINO_ESP_LITTLEFS 0
  736. #if LV_USE_FS_ARDUINO_ESP_LITTLEFS
  737. #define LV_FS_ARDUINO_ESP_LITTLEFS_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  738. #define LV_FS_ARDUINO_ESP_LITTLEFS_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  739. #endif
  740. /** API for Arduino Sd. */
  741. #define LV_USE_FS_ARDUINO_SD 0
  742. #if LV_USE_FS_ARDUINO_SD
  743. #define LV_FS_ARDUINO_SD_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  744. #define LV_FS_ARDUINO_SD_PATH "" /**< Set the working directory. File/directory paths will be appended to it. */
  745. #endif
  746. /** API for UEFI */
  747. #define LV_USE_FS_UEFI 0
  748. #if LV_USE_FS_UEFI
  749. #define LV_FS_UEFI_LETTER '\0' /**< Set an upper-case driver-identifier letter for this driver (e.g. 'A'). */
  750. #endif
  751. #define LV_USE_FS_FROGFS 0
  752. #if LV_USE_FS_FROGFS
  753. #define LV_FS_FROGFS_LETTER '\0'
  754. #endif
  755. /** LODEPNG decoder library */
  756. #ifndef LV_USE_LODEPNG
  757. #define LV_USE_LODEPNG 0
  758. #endif
  759. /** PNG decoder(libpng) library */
  760. #define LV_USE_LIBPNG 0
  761. /** BMP decoder library */
  762. #define LV_USE_BMP 0
  763. /** JPG + split JPG decoder library.
  764. * Split JPG is a custom format optimized for embedded systems. */
  765. #ifndef LV_USE_TJPGD
  766. #define LV_USE_TJPGD 0
  767. #endif
  768. /** libjpeg-turbo decoder library.
  769. * - Supports complete JPEG specifications and high-performance JPEG decoding. */
  770. #define LV_USE_LIBJPEG_TURBO 0
  771. /** GIF decoder library */
  772. #define LV_USE_GIF 0
  773. #if LV_USE_GIF
  774. /** GIF decoder accelerate */
  775. #define LV_GIF_CACHE_DECODE_DATA 0
  776. #endif
  777. /** GStreamer library */
  778. #define LV_USE_GSTREAMER 0
  779. /** Decode bin images to RAM */
  780. #define LV_BIN_DECODER_RAM_LOAD 0
  781. /** RLE decompress library */
  782. #define LV_USE_RLE 0
  783. /** QR code library */
  784. #define LV_USE_QRCODE 0
  785. /** Barcode code library */
  786. #define LV_USE_BARCODE 0
  787. /** FreeType library */
  788. #define LV_USE_FREETYPE 0
  789. #if LV_USE_FREETYPE
  790. /** Let FreeType use LVGL memory and file porting */
  791. #define LV_FREETYPE_USE_LVGL_PORT 0
  792. /** Cache count of glyphs in FreeType, i.e. number of glyphs that can be cached.
  793. * The higher the value, the more memory will be used. */
  794. #define LV_FREETYPE_CACHE_FT_GLYPH_CNT 256
  795. #endif
  796. /** Built-in TTF decoder */
  797. #define LV_USE_TINY_TTF 0
  798. #if LV_USE_TINY_TTF
  799. /* Enable loading TTF data from files */
  800. #define LV_TINY_TTF_FILE_SUPPORT 0
  801. #define LV_TINY_TTF_CACHE_GLYPH_CNT 128
  802. #define LV_TINY_TTF_CACHE_KERNING_CNT 256
  803. #endif
  804. /** Rlottie library */
  805. #define LV_USE_RLOTTIE 0
  806. /** Requires `LV_USE_3DTEXTURE = 1` */
  807. #define LV_USE_GLTF 0
  808. /** Enable Vector Graphic APIs
  809. * Requires `LV_USE_MATRIX = 1` */
  810. #define LV_USE_VECTOR_GRAPHIC 0
  811. /** Enable ThorVG (vector graphics library) from the src/libs folder.
  812. * Requires LV_USE_VECTOR_GRAPHIC */
  813. #define LV_USE_THORVG_INTERNAL 0
  814. /** Enable ThorVG by assuming that its installed and linked to the project
  815. * Requires LV_USE_VECTOR_GRAPHIC */
  816. #define LV_USE_THORVG_EXTERNAL 0
  817. /** Use lvgl built-in LZ4 lib */
  818. #define LV_USE_LZ4_INTERNAL 0
  819. /** Use external LZ4 library */
  820. #define LV_USE_LZ4_EXTERNAL 0
  821. /*SVG library
  822. * - Requires `LV_USE_VECTOR_GRAPHIC = 1` */
  823. #define LV_USE_SVG 0
  824. #define LV_USE_SVG_ANIMATION 0
  825. #define LV_USE_SVG_DEBUG 0
  826. /** FFmpeg library for image decoding and playing videos.
  827. * Supports all major image formats so do not enable other image decoder with it. */
  828. #define LV_USE_FFMPEG 0
  829. #if LV_USE_FFMPEG
  830. /** Dump input information to stderr */
  831. #define LV_FFMPEG_DUMP_FORMAT 0
  832. /** Use lvgl file path in FFmpeg Player widget
  833. * You won't be able to open URLs after enabling this feature.
  834. * Note that FFmpeg image decoder will always use lvgl file system. */
  835. #define LV_FFMPEG_PLAYER_USE_LV_FS 0
  836. #endif
  837. /*==================
  838. * OTHERS
  839. *==================*/
  840. /* Documentation for several of the below items can be found here: https://docs.lvgl.io/master/details/auxiliary-modules/index.html . */
  841. /** 1: Enable API to take snapshot for object */
  842. #define LV_USE_SNAPSHOT 0
  843. /** 1: Enable system monitor component */
  844. #define LV_USE_SYSMON 0
  845. #if LV_USE_SYSMON
  846. /** Get the idle percentage. E.g. uint32_t my_get_idle(void); */
  847. #define LV_SYSMON_GET_IDLE lv_os_get_idle_percent
  848. /** 1: Enable usage of lv_os_get_proc_idle_percent.*/
  849. #define LV_SYSMON_PROC_IDLE_AVAILABLE 0
  850. #if LV_SYSMON_PROC_IDLE_AVAILABLE
  851. /** Get the applications idle percentage.
  852. * - Requires `LV_USE_OS == LV_OS_PTHREAD` */
  853. #define LV_SYSMON_GET_PROC_IDLE lv_os_get_proc_idle_percent
  854. #endif
  855. /** 1: Show CPU usage and FPS count.
  856. * - Requires `LV_USE_SYSMON = 1` */
  857. #define LV_USE_PERF_MONITOR 0
  858. #if LV_USE_PERF_MONITOR
  859. #define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
  860. /** 0: Displays performance data on the screen; 1: Prints performance data using log. */
  861. #define LV_USE_PERF_MONITOR_LOG_MODE 0
  862. #endif
  863. /** 1: Show used memory and memory fragmentation.
  864. * - Requires `LV_USE_STDLIB_MALLOC = LV_STDLIB_BUILTIN`
  865. * - Requires `LV_USE_SYSMON = 1`*/
  866. #define LV_USE_MEM_MONITOR 0
  867. #if LV_USE_MEM_MONITOR
  868. #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
  869. #endif
  870. #endif /*LV_USE_SYSMON*/
  871. /** 1: Enable runtime performance profiler */
  872. #define LV_USE_PROFILER 1
  873. #if LV_USE_PROFILER
  874. /** 1: Enable the built-in profiler */
  875. #define LV_USE_PROFILER_BUILTIN 1
  876. #if LV_USE_PROFILER_BUILTIN
  877. /** Default profiler trace buffer size */
  878. #define LV_PROFILER_BUILTIN_BUF_SIZE (16 * 1024) /**< [bytes] */
  879. #define LV_PROFILER_BUILTIN_DEFAULT_ENABLE 1
  880. #define LV_USE_PROFILER_BUILTIN_POSIX 0 /**< Enable POSIX profiler port */
  881. #endif
  882. /** Header to include for profiler */
  883. #define LV_PROFILER_INCLUDE "lvgl9/src/misc/lv_profiler_builtin.h"
  884. /** Profiler start point function */
  885. #define LV_PROFILER_BEGIN LV_PROFILER_BUILTIN_BEGIN
  886. /** Profiler end point function */
  887. #define LV_PROFILER_END LV_PROFILER_BUILTIN_END
  888. /** Profiler start point function with custom tag */
  889. #define LV_PROFILER_BEGIN_TAG LV_PROFILER_BUILTIN_BEGIN_TAG
  890. /** Profiler end point function with custom tag */
  891. #define LV_PROFILER_END_TAG LV_PROFILER_BUILTIN_END_TAG
  892. /*Enable layout profiler*/
  893. #define LV_PROFILER_LAYOUT 0
  894. /*Enable disp refr profiler*/
  895. #define LV_PROFILER_REFR 0
  896. /*Enable draw profiler*/
  897. #define LV_PROFILER_DRAW 0
  898. /*Enable indev profiler*/
  899. #define LV_PROFILER_INDEV 0
  900. /*Enable decoder profiler*/
  901. #define LV_PROFILER_DECODER 1
  902. /*Enable font profiler*/
  903. #define LV_PROFILER_FONT 0
  904. /*Enable fs profiler*/
  905. #define LV_PROFILER_FS 0
  906. /*Enable style profiler*/
  907. #define LV_PROFILER_STYLE 0
  908. /*Enable timer profiler*/
  909. #define LV_PROFILER_TIMER 0
  910. /*Enable cache profiler*/
  911. #define LV_PROFILER_CACHE 0
  912. /*Enable event profiler*/
  913. #define LV_PROFILER_EVENT 0
  914. #endif
  915. /** 1: Enable Monkey test */
  916. #define LV_USE_MONKEY 0
  917. /** 1: Enable grid navigation */
  918. #define LV_USE_GRIDNAV 0
  919. /** 1: Enable `lv_obj` fragment logic */
  920. #define LV_USE_FRAGMENT 0
  921. /** 1: Support using images as font in label or span widgets */
  922. #define LV_USE_IMGFONT 0
  923. /** 1: Enable an observer pattern implementation */
  924. #define LV_USE_OBSERVER 1
  925. /** 1: Enable Pinyin input method
  926. * - Requires: lv_keyboard */
  927. #define LV_USE_IME_PINYIN 0
  928. #if LV_USE_IME_PINYIN
  929. /** 1: Use default thesaurus.
  930. * @note If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesaurus. */
  931. #define LV_IME_PINYIN_USE_DEFAULT_DICT 1
  932. /** Set maximum number of candidate panels that can be displayed.
  933. * @note This needs to be adjusted according to size of screen. */
  934. #define LV_IME_PINYIN_CAND_TEXT_NUM 6
  935. /** Use 9-key input (k9). */
  936. #define LV_IME_PINYIN_USE_K9_MODE 1
  937. #if LV_IME_PINYIN_USE_K9_MODE == 1
  938. #define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3
  939. #endif /*LV_IME_PINYIN_USE_K9_MODE*/
  940. #endif
  941. /** 1: Enable file explorer.
  942. * - Requires: lv_table */
  943. #define LV_USE_FILE_EXPLORER 0
  944. #if LV_USE_FILE_EXPLORER
  945. /** Maximum length of path */
  946. #define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
  947. /** Quick access bar, 1:use, 0:do not use.
  948. * - Requires: lv_list */
  949. #define LV_FILE_EXPLORER_QUICK_ACCESS 1
  950. #endif
  951. /** 1: Enable Font manager */
  952. #define LV_USE_FONT_MANAGER 0
  953. #if LV_USE_FONT_MANAGER
  954. /**Font manager name max length*/
  955. #define LV_FONT_MANAGER_NAME_MAX_LEN 32
  956. #endif
  957. /** Enable emulated input devices, time emulation, and screenshot compares. */
  958. #define LV_USE_TEST 0
  959. #if LV_USE_TEST
  960. /** Enable `lv_test_screenshot_compare`.
  961. * Requires lodepng and a few MB of extra RAM. */
  962. #define LV_USE_TEST_SCREENSHOT_COMPARE 0
  963. #endif /*LV_USE_TEST*/
  964. /** Enable loading XML UIs runtime */
  965. #define LV_USE_XML 0
  966. /** 1: Enable text translation support */
  967. #define LV_USE_TRANSLATION 0
  968. /*1: Enable color filter style*/
  969. #define LV_USE_COLOR_FILTER 0
  970. /*==================
  971. * DEVICES
  972. *==================*/
  973. /** Use SDL to open window on PC and handle mouse and keyboard. */
  974. #define LV_USE_SDL 0
  975. #if LV_USE_SDL
  976. #define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
  977. #define LV_SDL_RENDER_MODE LV_DISPLAY_RENDER_MODE_DIRECT /**< LV_DISPLAY_RENDER_MODE_DIRECT is recommended for best performance */
  978. #define LV_SDL_BUF_COUNT 1 /**< 1 or 2 */
  979. #define LV_SDL_ACCELERATED 1 /**< 1: Use hardware acceleration*/
  980. #define LV_SDL_FULLSCREEN 0 /**< 1: Make the window full screen by default */
  981. #define LV_SDL_DIRECT_EXIT 1 /**< 1: Exit the application when all SDL windows are closed */
  982. #define LV_SDL_MOUSEWHEEL_MODE LV_SDL_MOUSEWHEEL_MODE_ENCODER /*LV_SDL_MOUSEWHEEL_MODE_ENCODER/CROWN*/
  983. #endif
  984. /** Use X11 to open window on Linux desktop and handle mouse and keyboard */
  985. #define LV_USE_X11 0
  986. #if LV_USE_X11
  987. #define LV_X11_DIRECT_EXIT 1 /**< Exit application when all X11 windows have been closed */
  988. #define LV_X11_DOUBLE_BUFFER 1 /**< Use double buffers for rendering */
  989. /* Select only 1 of the following render modes (LV_X11_RENDER_MODE_PARTIAL preferred!). */
  990. #define LV_X11_RENDER_MODE_PARTIAL 1 /**< Partial render mode (preferred) */
  991. #define LV_X11_RENDER_MODE_DIRECT 0 /**< Direct render mode */
  992. #define LV_X11_RENDER_MODE_FULL 0 /**< Full render mode */
  993. #endif
  994. /** Use Wayland to open a window and handle input on Linux or BSD desktops */
  995. #define LV_USE_WAYLAND 0
  996. #if LV_USE_WAYLAND
  997. #define LV_WAYLAND_BUF_COUNT 1 /**< Use 1 for single buffer with partial render mode or 2 for double buffer with full render mode*/
  998. #define LV_WAYLAND_USE_DMABUF 0 /**< Use DMA buffers for frame buffers. Requires LV_DRAW_USE_G2D */
  999. #define LV_WAYLAND_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL /**< DMABUF supports LV_DISPLAY_RENDER_MODE_FULL and LV_DISPLAY_RENDER_MODE_DIRECT*/
  1000. /**< When LV_WAYLAND_USE_DMABUF is disabled, only LV_DISPLAY_RENDER_MODE_PARTIAL is supported*/
  1001. #define LV_WAYLAND_WINDOW_DECORATIONS 0 /**< Draw client side window decorations only necessary on Mutter/GNOME. Not supported using DMABUF*/
  1002. #endif
  1003. /** Driver for /dev/fb */
  1004. #define LV_USE_LINUX_FBDEV 0
  1005. #if LV_USE_LINUX_FBDEV
  1006. #define LV_LINUX_FBDEV_BSD 0
  1007. #define LV_LINUX_FBDEV_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL
  1008. #define LV_LINUX_FBDEV_BUFFER_COUNT 0
  1009. #define LV_LINUX_FBDEV_BUFFER_SIZE 60
  1010. #define LV_LINUX_FBDEV_MMAP 1
  1011. #endif
  1012. /** Use Nuttx to open window and handle touchscreen */
  1013. #define LV_USE_NUTTX 0
  1014. #if LV_USE_NUTTX
  1015. #define LV_USE_NUTTX_INDEPENDENT_IMAGE_HEAP 0
  1016. /** Use independent image heap for default draw buffer */
  1017. #define LV_NUTTX_DEFAULT_DRAW_BUF_USE_INDEPENDENT_IMAGE_HEAP 0
  1018. #define LV_USE_NUTTX_LIBUV 0
  1019. /** Use Nuttx custom init API to open window and handle touchscreen */
  1020. #define LV_USE_NUTTX_CUSTOM_INIT 0
  1021. /** Driver for /dev/lcd */
  1022. #define LV_USE_NUTTX_LCD 0
  1023. #if LV_USE_NUTTX_LCD
  1024. #define LV_NUTTX_LCD_BUFFER_COUNT 0
  1025. #define LV_NUTTX_LCD_BUFFER_SIZE 60
  1026. #endif
  1027. /** Driver for /dev/input */
  1028. #define LV_USE_NUTTX_TOUCHSCREEN 0
  1029. /** Touchscreen cursor size in pixels(<=0: disable cursor) */
  1030. #define LV_NUTTX_TOUCHSCREEN_CURSOR_SIZE 0
  1031. /** Driver for /dev/mouse */
  1032. #define LV_USE_NUTTX_MOUSE 0
  1033. /** Mouse movement step (pixels) */
  1034. #define LV_USE_NUTTX_MOUSE_MOVE_STEP 1
  1035. /*NuttX trace file and its path*/
  1036. #define LV_USE_NUTTX_TRACE_FILE 0
  1037. #if LV_USE_NUTTX_TRACE_FILE
  1038. #define LV_NUTTX_TRACE_FILE_PATH "/data/lvgl-trace.log"
  1039. #endif
  1040. #endif
  1041. /** Driver for /dev/dri/card */
  1042. #define LV_USE_LINUX_DRM 0
  1043. #if LV_USE_LINUX_DRM
  1044. /* Use the MESA GBM library to allocate DMA buffers that can be
  1045. * shared across sub-systems and libraries using the Linux DMA-BUF API.
  1046. * The GBM library aims to provide a platform independent memory management system
  1047. * it supports the major GPU vendors - This option requires linking with libgbm */
  1048. #define LV_USE_LINUX_DRM_GBM_BUFFERS 0
  1049. #define LV_LINUX_DRM_USE_EGL 0
  1050. #endif
  1051. /** Interface for TFT_eSPI */
  1052. #define LV_USE_TFT_ESPI 0
  1053. /** Interface for Lovyan_GFX */
  1054. #define LV_USE_LOVYAN_GFX 0
  1055. #if LV_USE_LOVYAN_GFX
  1056. #define LV_LGFX_USER_INCLUDE "lv_lgfx_user.hpp"
  1057. #endif /*LV_USE_LOVYAN_GFX*/
  1058. /** Driver for evdev input devices */
  1059. #define LV_USE_EVDEV 0
  1060. /** Driver for libinput input devices */
  1061. #define LV_USE_LIBINPUT 0
  1062. #if LV_USE_LIBINPUT
  1063. #define LV_LIBINPUT_BSD 0
  1064. /** Full keyboard support */
  1065. #define LV_LIBINPUT_XKB 0
  1066. #if LV_LIBINPUT_XKB
  1067. /** "setxkbmap -query" can help find the right values for your keyboard */
  1068. #define LV_LIBINPUT_XKB_KEY_MAP { .rules = NULL, .model = "pc101", .layout = "us", .variant = NULL, .options = NULL }
  1069. #endif
  1070. #endif
  1071. /* Drivers for LCD devices connected via SPI/parallel port */
  1072. #define LV_USE_ST7735 0
  1073. #define LV_USE_ST7789 0
  1074. #define LV_USE_ST7796 0
  1075. #define LV_USE_ILI9341 0
  1076. #define LV_USE_FT81X 0
  1077. #define LV_USE_NV3007 0
  1078. #if (LV_USE_ST7735 | LV_USE_ST7789 | LV_USE_ST7796 | LV_USE_ILI9341 | LV_USE_NV3007)
  1079. #define LV_USE_GENERIC_MIPI 1
  1080. #else
  1081. #define LV_USE_GENERIC_MIPI 0
  1082. #endif
  1083. /** Driver for Renesas GLCD */
  1084. #define LV_USE_RENESAS_GLCDC 0
  1085. /** Driver for ST LTDC */
  1086. #define LV_USE_ST_LTDC 0
  1087. #if LV_USE_ST_LTDC
  1088. /* Only used for partial. */
  1089. #define LV_ST_LTDC_USE_DMA2D_FLUSH 0
  1090. #endif
  1091. /** Driver for NXP ELCDIF */
  1092. #define LV_USE_NXP_ELCDIF 0
  1093. /** LVGL Windows backend */
  1094. #define LV_USE_WINDOWS 0
  1095. /** LVGL UEFI backend */
  1096. #define LV_USE_UEFI 0
  1097. #if LV_USE_UEFI
  1098. #define LV_USE_UEFI_INCLUDE "myefi.h" /**< Header that hides the actual framework (EDK2, gnu-efi, ...) */
  1099. #define LV_UEFI_USE_MEMORY_SERVICES 0 /**< Use the memory functions from the boot services table */
  1100. #endif
  1101. /** Use a generic OpenGL driver that can be used to embed in other applications or used with GLFW/EGL */
  1102. #define LV_USE_OPENGLES 0
  1103. #if LV_USE_OPENGLES
  1104. #define LV_USE_OPENGLES_DEBUG 1 /**< Enable or disable debug for opengles */
  1105. #endif
  1106. /** Use GLFW to open window on PC and handle mouse and keyboard. Requires*/
  1107. #define LV_USE_GLFW 0
  1108. /** QNX Screen display and input drivers */
  1109. #define LV_USE_QNX 0
  1110. #if LV_USE_QNX
  1111. #define LV_QNX_BUF_COUNT 1 /**< 1 or 2 */
  1112. #endif
  1113. /*=====================
  1114. * BUILD OPTIONS
  1115. *======================*/
  1116. /** Enable examples to be built with the library. */
  1117. #define LV_BUILD_EXAMPLES 1
  1118. /** Build the demos */
  1119. #define LV_BUILD_DEMOS 1
  1120. /*===================
  1121. * DEMO USAGE
  1122. ====================*/
  1123. #if LV_BUILD_DEMOS
  1124. /** Show some widgets. This might be required to increase `LV_MEM_SIZE`. */
  1125. #define LV_USE_DEMO_WIDGETS 0
  1126. /** Demonstrate usage of encoder and keyboard. */
  1127. #define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
  1128. /** Benchmark your system */
  1129. #define LV_USE_DEMO_BENCHMARK 0
  1130. #if LV_USE_DEMO_BENCHMARK
  1131. /** Use fonts where bitmaps are aligned 16 byte and has Nx16 byte stride */
  1132. #define LV_DEMO_BENCHMARK_ALIGNED_FONTS 0
  1133. #endif
  1134. /** Render test for each primitive.
  1135. * - Requires at least 480x272 display. */
  1136. #define LV_USE_DEMO_RENDER 0
  1137. /** Stress test for LVGL */
  1138. #define LV_USE_DEMO_STRESS 0
  1139. /** Music player demo */
  1140. #define LV_USE_DEMO_MUSIC 0
  1141. #if LV_USE_DEMO_MUSIC
  1142. #define LV_DEMO_MUSIC_SQUARE 0
  1143. #define LV_DEMO_MUSIC_LANDSCAPE 0
  1144. #define LV_DEMO_MUSIC_ROUND 0
  1145. #define LV_DEMO_MUSIC_LARGE 0
  1146. #define LV_DEMO_MUSIC_AUTO_PLAY 0
  1147. #endif
  1148. /** Vector graphic demo */
  1149. #define LV_USE_DEMO_VECTOR_GRAPHIC 0
  1150. /** GLTF demo */
  1151. #define LV_USE_DEMO_GLTF 0
  1152. /*---------------------------
  1153. * Demos from lvgl/lv_demos
  1154. ---------------------------*/
  1155. /** Flex layout demo */
  1156. #define LV_USE_DEMO_FLEX_LAYOUT 0
  1157. /** Smart-phone like multi-language demo */
  1158. #define LV_USE_DEMO_MULTILANG 0
  1159. /** Widget transformation demo */
  1160. #define LV_USE_DEMO_TRANSFORM 0
  1161. /** Demonstrate scroll settings */
  1162. #define LV_USE_DEMO_SCROLL 0
  1163. /*E-bike demo with Lottie animations (if LV_USE_LOTTIE is enabled)*/
  1164. #define LV_USE_DEMO_EBIKE 0
  1165. #if LV_USE_DEMO_EBIKE
  1166. #define LV_DEMO_EBIKE_PORTRAIT 0 /*0: for 480x270..480x320, 1: for 480x800..720x1280*/
  1167. #endif
  1168. /** High-resolution demo */
  1169. #define LV_USE_DEMO_HIGH_RES 0
  1170. /* Smart watch demo */
  1171. #define LV_USE_DEMO_SMARTWATCH 0
  1172. #endif /* LV_BUILD_DEMOS */
  1173. /*--END OF LV_CONF_H--*/
  1174. #endif /*LV_CONF_H*/
  1175. #endif /*End of "Content enable"*/