8000 Update LVGL · shankezh/lv_binding_micropython@973c9fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 973c9fd

Browse files
committed
Update LVGL
1 parent f82f337 commit 973c9fd

File tree

2 files changed

+41
-20
lines changed

2 files changed

+41
-20
lines changed

lv_conf.h

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
/*Size of the memory available for `lv_malloc()` in bytes (>= 2kB)*/
4141
#define LV_MEM_SIZE (128U * 1024U) /*[bytes]*/
4242

43+
/*Size of the memory expand for `lv_malloc()` in bytes*/
44+
#define LV_MEM_POOL_EXPAND_SIZE 0
45+
4346
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
4447
#define LV_MEM_ADR 0 /*0: unused*/
4548
/*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/
@@ -59,6 +62,8 @@
5962
#endif /*LV_USE_BUILTIN_SNPRINTF*/
6063

6164
#define LV_STDLIB_INCLUDE "include/lv_mp_mem_custom_include.h"
65+
#define LV_STDIO_INCLUDE <stdint.h>
66+
#define LV_STRING_INCLUDE <stdint.h>
6267
#define LV_MALLOC m_malloc
6368
#define LV_REALLOC m_realloc
6469
#define LV_FREE m_free
@@ -79,6 +84,9 @@
7984
#if LV_TICK_CUSTOM
8085
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
8186
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
87+
/*If using lvgl as ESP32 component*/
88+
// #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h"
89+
// #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL))
8290
#endif /*LV_TICK_CUSTOM*/
8391

8492
/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
@@ -173,6 +181,14 @@
173181
#define LV_GPU_DMA2D_CMSIS_INCLUDE
174182
#endif
175183

184+
/*Use GD32 IPA GPU
185+
* This adds support for Image Processing Accelerator on GD32F450 and GD32F470 series MCUs
186+
*
187+
* NOTE: IPA on GD32F450 has a bug where the fill operation overwrites data beyond the
188+
* framebuffer. This driver works around it by saving and restoring affected memory, but
189+
* this makes it not thread-safe. GD32F470 is not affected. */
190+
#define LV_USE_GPU_GD32_IPA 0
191+
176192
/*Use NXP's PXP GPU iMX RTxxx platforms*/
177193
#define LV_USE_GPU_NXP_PXP 0
178194
#if LV_USE_GPU_NXP_PXP
@@ -231,6 +247,7 @@
231247
#define LV_LOG_TRACE_OBJ_CREATE 1
232248
#define LV_LOG_TRACE_LAYOUT 1
233249
#define LV_LOG_TRACE_ANIM 1
250+
#define LV_LOG_TRACE_MSG 1
234251

235252
#endif /*LV_USE_LOG*/
236253

@@ -633,27 +650,28 @@
633650
#endif
634651

635652
#if LV_USE_FREETYPE
636-
/*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/
637-
#define LV_FREETYPE_CACHE_SIZE (16 * 1024)
638-
#if LV_FREETYPE_CACHE_SIZE >= 0
639-
/* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */
640-
/* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */
641-
/* if font size >= 256, must be configured as image cache */
642-
#define LV_FREETYPE_SBIT_CACHE 0
643-
/* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */
644-
/* (0:use system defaults) */
645-
#define LV_FREETYPE_CACHE_FT_FACES 0
646-
#define LV_FREETYPE_CACHE_FT_SIZES 0
647-
#endif
653+
/*Memory used by FreeType to cache characters [bytes]*/
654+
#define LV_FREETYPE_CACHE_SIZE (64 * 1024)
655+
656+
/*Let FreeType to use LVGL memory and file porting*/
657+
#define LV_FREETYPE_USE_LVGL_PORT 0
658+
659+
/* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */
660+
/* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */
661+
/* if font size >= 256, must be configured as image cache */
662+
#define LV_FREETYPE_SBIT_CACHE 0
663+
664+
/* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */
665+
/* (0:use system defaults) */
666+
#define LV_FREETYPE_CACHE_FT_FACES 4
667+
#define LV_FREETYPE_CACHE_FT_SIZES 4
648668
#endif
649669

650670
/* Built-in TTF decoder */
651-
#ifndef LV_USE_TINY_TTF
652-
#define LV_USE_TINY_TTF 1
653-
#if LV_USE_TINY_TTF
654-
/* Enable loading TTF data from files */
655-
#define LV_TINY_TTF_FILE_SUPPORT 1
656-
#endif
671+
#define LV_USE_TINY_TTF 1
672+
#if LV_USE_TINY_TTF
673+
/* Enable loading TTF data from files */
674+
#define LV_TINY_TTF_FILE_SUPPORT 1
657675
#endif
658676

659677
/*Rlottie library*/
@@ -732,7 +750,7 @@
732750
/*Quick access bar, 1:use, 0:not use*/
733751
/*Requires: lv_list*/
734752
#define LV_FILE_EXPLORER_QUICK_ACCESS 1
735-
#endif
753+
#endif
736754

737755
/*==================
738756
* EXAMPLES
@@ -774,6 +792,9 @@
774792
#define LV_DEMO_MUSIC_AUTO_PLAY 0
775793
#endif
776794

795+
/*Flex layout demo*/
796+
#define LV_USE_DEMO_FLEX_LAYOUT 0
797+
777798
/*--END OF LV_CONF_H--*/
778799

779800
#endif /*LV_CONF_H*/

lvgl

Submodule lvgl updated 360 files

0 commit comments

Comments
 (0)
0