ch32v307_lvgl_ili9341: small fixes
This commit is contained in:
parent
43be993923
commit
baa4e08376
@ -148,9 +148,5 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
||||
<configuration configurationName="obj">
|
||||
<resource resourceType="PROJECT" workspacePath="/ch32v307_lvgl_ili9341"/>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
|
||||
</cproject>
|
||||
|
||||
@ -348,7 +348,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
||||
#define LV_FONT_FMT_TXT_LARGE 0
|
||||
|
||||
/*Enables/disables support for compressed fonts.*/
|
||||
#define LV_USE_FONT_COMPRESSED 0
|
||||
#define LV_USE_FONT_COMPRESSED 1
|
||||
|
||||
/*Enable subpixel rendering*/
|
||||
#define LV_USE_FONT_SUBPX 0
|
||||
|
||||
@ -7,12 +7,15 @@ static lv_color_t lvgl_draw_buff2[LVGL_PORT_BUFF_SIZE];
|
||||
|
||||
static void disp_flush(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_t *color_p)
|
||||
{
|
||||
while (bsp_lcd_get_trans_stat() == 0); //等待上次传输完成
|
||||
lv_disp_flush_ready(disp_drv); //通知lvgl传输已完成
|
||||
bsp_lcd_draw_rect(area->x1, area->y1, area->x2, area->y2, color_p); //启动新的传输
|
||||
/* 等待上次传输完成 */
|
||||
while (bsp_lcd_get_trans_stat() == 0);
|
||||
/* 通知lvgl传输已完成 */
|
||||
lv_disp_flush_ready(disp_drv);
|
||||
/* 启动新的传输 */
|
||||
bsp_lcd_draw_rect(area->x1, area->y1, area->x2, area->y2, color_p);
|
||||
}
|
||||
|
||||
void lv_port_disp_init()
|
||||
void lv_port_disp_init(void)
|
||||
{
|
||||
/* 向lvgl注册缓冲区 */
|
||||
static lv_disp_draw_buf_t draw_buf_dsc; //需要全程生命周期,设置为静态变量
|
||||
|
||||
Loading…
Reference in New Issue
Block a user