Add 'show windows' code
This commit is contained in:
@@ -5,15 +5,31 @@
|
||||
* Author: wuwenfeng
|
||||
*/
|
||||
#include "LCD.h"
|
||||
#include "windows.h"
|
||||
|
||||
void main_app()
|
||||
{
|
||||
LCDx_Init();
|
||||
|
||||
UI *ui=UI_Init(BLACK);
|
||||
|
||||
New_Window(ui,10,10,100,100,WHITE,"WHITE");
|
||||
New_Window(ui,25,30,150,100,GREEN,"GREEN");
|
||||
New_Window(ui,80,80,60,90,YELLOW,"YELLOW");
|
||||
New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA");
|
||||
|
||||
ui->refresh_ui_flag=1;
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
||||
|
||||
if(ui->refresh_ui_flag==1)
|
||||
{
|
||||
ui->refresh_ui_flag=0;
|
||||
Refresh_UI(ui);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user