Skip to content

Conversation

@pioneerAlone
Copy link

为lvgl package 添加了一些宏配置,便于启用一些功能,涉及的宏如下:

#define LV_TICK_CUSTOM 0
#define LV_MEM_CUSTOM 0
#define LV_COLOR_16_SWAP 0
#define LV_USE_FS_STDIO 0
#define LV_USE_FREETYPE 0

/*Use STM32's DMA2D (aka Chrom Art) GPU*/
#define LV_USE_GPU_STM32_DMA2D 0
#if LV_USE_GPU_STM32_DMA2D
    /*Must be defined to include path of CMSIS header of target processor
    e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
    #define LV_GPU_DMA2D_CMSIS_INCLUDE
#endif

/*Change the built in (v)snprintf functions*/
#define LV_SPRINTF_CUSTOM 0
#if LV_SPRINTF_CUSTOM
    #define LV_SPRINTF_INCLUDE <stdio.h>
    #define lv_snprintf  snprintf
    #define lv_vsnprintf vsnprintf
#else   /*LV_SPRINTF_CUSTOM*/
#define LV_SPRINTF_USE_FLOAT 0

#endif /LV_SPRINTF_CUSTOM/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant