stm32f429 MCU接口,FMC驱动LCD,按钮切换窗口会有闪烁,怎么解决,谢谢
static const GUI_WIDGET_CREATE_INFO _aDialogCreate0[] =
{
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 0, 240, 320, WM_CF_MEMDEV_ON_REDRAW, 0x0, 0 },
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_0, 17, 45, 97, 70, 0, 0x0, 0 }, //乳酸
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_1, 122, 45,97, 70, 0, 0x0, 0 }, //血酮
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_2, 17, 125, 97, 70, 0, 0x0, 0 }, //总胆固醇
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_3, 122, 125, 97, 70, 0, 0x0, 0 },//尿酸
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_4, 17, 205, 202, 66, 0, 0x0, 0 },//血糖
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_5, 0, 292, 79, 28, 0, 0x0, 0 },//知识百科
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_6, 80, 292, 79, 28, 0, 0x0, 0 },//健康档案
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_7, 160, 292, 80, 28, 0, 0x0, 0 },//设置
// USER START (Optionally insert additional widgets)
// USER END
};
static const GUI_WIDGET_CREATE_INFO _aDialogCreate1[] =
{
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 0, 240, 320, WM_CF_MEMDEV_ON_REDRAW, 0x0, 0 },
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_0, 17, 45, 97, 70, 0, 0x0, 0 }, //乳酸
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_1, 122, 45,97, 70, 0, 0x0, 0 }, //血酮
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_2, 17, 125, 97, 70, 0, 0x0, 0 }, //总胆固醇
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_3, 122, 125, 97, 70, 0, 0x0, 0 },//尿酸
};
void main_task()
{
GUI_Init();
WM_MULTIBUF_Enable(1);
WM_MOTION_Enable(0); //不使能滑动;
GUI_UC_SetEncodeUTF8(); //GUI直接调用汉字字符串
GUI_SetBkColor(GUI_WHITE);
GUI_Clear();
GUI_DrawBitmap(&bmlogo, 62, 107);
GUI_Delay(300);
Win0(WM_HBKWIN);
while(1)
{
GUI_TOUCH_Exec();
GUI_Delay(15);
}
}
|