56 lines
773 B
C
56 lines
773 B
C
/*
|
|
* Main_APP.c
|
|
*
|
|
* Created on: Aug 6, 2021
|
|
* Author: wuwenfeng
|
|
*/
|
|
#include "Main_APP.h"
|
|
#include "LCD.h"
|
|
#include "windows.h"
|
|
#include "touch.h"
|
|
#include "eeprom.h"
|
|
|
|
extern touch_device t0;
|
|
|
|
task run_loop;//Ö÷Ñ»·×´Ì¬»ú
|
|
|
|
void main_app()
|
|
{
|
|
LCDx_Init();
|
|
EPPROM_SLOWWRITE_INIT();
|
|
|
|
TP_adjustment();
|
|
|
|
|
|
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)
|
|
{
|
|
LCD_set_dot(t0.pix_x, t0.pix_y, RED);
|
|
/*
|
|
switch(run_loop.sw)
|
|
{
|
|
|
|
|
|
}
|
|
*/
|
|
if(ui->refresh_ui_flag==1)
|
|
{
|
|
ui->refresh_ui_flag=0;
|
|
Refresh_UI(ui);
|
|
|
|
}
|
|
TP_Server();
|
|
EEPROM_SLOWWRITE_SERVER();
|
|
}
|
|
|
|
}
|
|
|