添加了触屏驱动,加入了触屏校准功能
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
#ifndef MAIN_APP_H_
|
||||
#define MAIN_APP_H_
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int sw;
|
||||
char change_flag;
|
||||
}task;
|
||||
|
||||
void main_app();
|
||||
|
||||
#endif /* MAIN_APP_H_ */
|
||||
|
||||
Reference in New Issue
Block a user