Hi,
I have created a dialog window with 3 custom buttons and used the following code to update the text of one of them constantly.
every thing is good after run and my button text updates fine. but almost after 3 minute my screen become flickering with same rate of reading the uart and nothing works.
What might be causing the problem?
i used LPC1788+ 32MbyteSDRAM+clock is 120mhz+emwin 5.16+keil
here is the code after some simplicty:
#define GUI_SUPPORT_MEMDEV (1)
[b]Dialog_WindowCB{
WM_PAINT:
Button_Text=UART_READ;
break;
}
main{
WM_SetCreateFlags(WM_CF_MEMDEV);
GUI_Init();
while(1){
if (!Timer)
{
SendUART(read_command);
Timer=500ms;
}
if(Uart_Response)
{
HMI_Refresh=1;
Uart_Response=0;
}
if(HMI_Refresh) WM_Invalidate(Dialog_Window);
HMI_Refresh=0;
GUI_Exec();
}}
Please HELP ME........
[/b]
I have created a dialog window with 3 custom buttons and used the following code to update the text of one of them constantly.
every thing is good after run and my button text updates fine. but almost after 3 minute my screen become flickering with same rate of reading the uart and nothing works.
What might be causing the problem?
i used LPC1788+ 32MbyteSDRAM+clock is 120mhz+emwin 5.16+keil
here is the code after some simplicty:
#define GUI_SUPPORT_MEMDEV (1)
[b]Dialog_WindowCB{
WM_PAINT:
Button_Text=UART_READ;
break;
}
main{
WM_SetCreateFlags(WM_CF_MEMDEV);
GUI_Init();
while(1){
if (!Timer)
{
SendUART(read_command);
Timer=500ms;
}
if(Uart_Response)
{
HMI_Refresh=1;
Uart_Response=0;
}
if(HMI_Refresh) WM_Invalidate(Dialog_Window);
HMI_Refresh=0;
GUI_Exec();
}}
Please HELP ME........
[/b]
The post was edited 4 times, last by Mosbat ().