Introduction - If you have any usage issues, please Google them yourself
ucOS+ucGUI HMI experimental source,void Task_Touch(void*pdata)
{
GUI_PID_STATE TouchPoint
while(1){
GUI_TOUCH_Exec()
GUI_TOUCH_GetState(&TouchPoint)
if (TouchPoint.Pressed) {
if(TouchFlag == TouchUnPressed){
TouchFlag = TouchPress
}
} else {
if(TouchFlag == TouchPressed){
TouchFlag = TouchUnPress
}
}
OSTimeDly(6)