添加了触屏驱动,加入了触屏校准功能

This commit is contained in:
2021-08-07 17:05:35 +08:00
parent 11e983ef98
commit 4e864ed558
18 changed files with 12649 additions and 9122 deletions
+14
View File
@@ -4,12 +4,19 @@
* Created on: Aug 6, 2021
* Author: wuwenfeng
*/
#include "Main_APP.h"
#include "LCD.h"
#include "windows.h"
#include "touch.h"
extern touch_device t0;
task run_loop;//Ö÷Ñ­»·×´Ì¬»ú
void main_app()
{
LCDx_Init();
TP_adjustment();
UI *ui=UI_Init(BLACK);
@@ -22,14 +29,21 @@ void main_app()
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();
}
}