lvgl、freetype移植和编译(zlib、libpng) 2、毫秒级定时实现 /*Set in lv_conf.h as `LV_TICK_CUSTOM_SYS_TIME_EXPR`*/ //LVGL毫秒级定时实现,头文件 #include <sys/time.h> 在lv_conf.h里定义为 extern uint32_t custom_tick_get(void);找到#define LV_TICK_CUSTOM 定义为1 uint32_t custom_tick...
使用目前最新的 Releases 版本 LVGL v8.2.0 ,移植好 freetype2 后测试,发现每次启动程序时会高概率出现屏幕显示全白色背景,无任何内容的问题。打开日志开关,出现问题时会有如下打印:C++ lv_font_get_glyph_bitmap: Asserted at expression: font_p != NULL (NULL pointer) (in lv_font.c line #51)...
lvgl 自带的Log 日志调试功能,在应用lv_conf.h文件使能宏LV_USE_LOG及相关配置: #defineLV_USE_LOG 1#defineLV_LOG_LEVEL LV_LOG_LEVEL_INFO#defineLV_LOG_PRINTF 1 另外在sunxifb.c文件或Makefile中定义宏LV_USE_SUNXIFB_DEBUG,可以 Log 打印出LVGL 实际刷图显示的帧率。 SPI 屏显示 LVGL 画面异常 应用l...
DEPENDS:=+LVGL8_USE_SUNXIFB_G2D:libuapi +LVGL8_USE_SUNXIFB_G2D:kmod-sunxi-g2d \+LVGL8_USE_FREETYPE:libfreetype TITLE:=lvgl 2048endefPKG_CONFIG_DEPENDS:=\ CONFIG_LVGL8_USE_SUNXIFB_DOUBLE_BUFFER \ CONFIG_LVGL8_USE_SUNXIFB_CACHE \ CONFIG_LVGL8_USE_SUNXIFB_G2D \ CONFIG_LVGL8_US...
+LVGL8_USE_FREETYPE:libfreetype TITLE:=lvgl 2048 endef PKG_CONFIG_DEPENDS := \ CONFIG_LVGL8_USE_SUNXIFB_DOUBLE_BUFFER \ CONFIG_LVGL8_USE_SUNXIFB_CACHE \ CONFIG_LVGL8_USE_SUNXIFB_G2D \ CONFIG_LVGL8_USE_SUNXIFB_G2D_ROTATE define Package/$(PKG_NAME)/config ...
A redundant include in lv_freetype.c caught my attention and I found the include logic among the main 3 files needing some clean-up. The clean-up moved #includes so that only just the #includes nee...
[*] lvgl-8.1.0 use sunxifb double buffer (使能双缓冲,解决撕裂问题) [*] lvgl-8.1.0 use sunxifb cache (使能fb cache) [ ] lvgl-8.1.0 use sunxifb g2d (使能G2D硬件加速) [ ] lvgl-8.1.0 use sunxifb g2d rotate (使能G2D硬件旋转) [ ] lvgl-8.1.0 use freetype (使能freetype) ...
*You can use DMA or any hardware acceleration to do this operation in the background but 'lv_disp_flush_ready()' has to be called when finished./ static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) ...
LV_FREETYPE_CACHE_SIZE:maximum memory(bytes) used to cache font bitmap, outline, character maps, etc. 0 means use the system default value, less than 0 means disable cache. Note: that this value does not account for managed FT_Face and FT_Size objects. LV_FREETYPE_CACHE_FT_FACES:...
#define LV_USE_FREETYPE 0 #if LV_USE_FREETYPE /*Let FreeType to use LVGL memory and file porting*/ #define LV_FREETYPE_USE_LVGL_PORT 0 /*Cache count of the glyphs in FreeType. It means the number of glyphs that can be cached. *The higher the value, the more memory will...