Page screensaver2 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Locked : no Swide up page ID : disabled Swide down page ID : disabled Swide left page ID : disabled Swide right page ID : disabled Events Preinitialize Event recmod=1 baud=115200 vis tInstruction,0 vis tTmp,0 vis p0,0 vis tNotifyHead,0 vis tNotifyText,0 //load gloabl time string from pageIcons //tTime.txt=vaTime.txt spstr pageIcons.vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1 if(tAMPM.txt=="") { vis tAMPM,0 } tDate.txt=pageIcons.vaDate.txt dim=dimValue vis tSend,0 //page open event // clear weather elements, to keep example content in HMI Postinitialize Event click m0,1 Variable (string) strCommand Attributes Scope : local Text : Max. Text Size: 1979 Variable (string) strTmp Attributes Scope : local Text : Max. Text Size: 2 Variable (string) tId Attributes Scope : local Text : Max. Text Size: 25 Variable (string) tInstruction Attributes Scope : local Text : Max. Text Size: 50 Variable (string) tSend Attributes Scope : local Text : Max. Text Size: 50 Variable (string) tTmp Attributes Scope : local Text : Max. Text Size: 50 Variable (int32) vaTap Attributes Scope: local Value: 0 Variable (int32) xc1 Attributes Scope: local Value: 0 Variable (int32) xc2 Attributes Scope: local Value: 0 Variable (int32) xcR Attributes Scope: local Value: 0 Variable (int32) yc1 Attributes Scope: local Value: 0 Variable (int32) yc2 Attributes Scope: local Value: 0 Variable (int32) ycR Attributes Scope: local Value: 0 Text d1Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text d1Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : XXXXXXX Max. Text Size : 10 Text d2Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text d2Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : XXXXXXX Max. Text Size : 10 Text d3Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text d3Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : XXXXXXX Max. Text Size : 10 Text e1Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 4 Text e1Name Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e1Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e2Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 4 Text e2Name Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e2Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e3Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 4 Text e3Name Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e3Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e4Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 4 Text e4Name Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e4Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e5Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 4 Text e5Name Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e5Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e6Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 4 Text e6Name Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text e6Val Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text f1Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text f2Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text f3Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text f4Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text f5Icon Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : X Max. Text Size : 4 Text m0 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Events Touch Press Event tTmp.txt="change model conf to us-l/p " strlen tTmp.txt,sys1 sya1=sys1*11+m0.h-48/2 for(sys0=0;sys01) { bufferPos=0 while(bufferPos-125&&xcR.val<125) { //tStatusNew.txt="x low, -> y" // check if below minimum value (change is negative) if(ycR.val<-80) { //tDirNew.txt="down" tSend.txt="event,buttonPress2,screensaver,swipeDown" }else if(ycR.val>80) { //tDirNew.txt="up" tSend.txt="event,buttonPress2,screensaver,swipeUp" }else { //tDirNew.txt="invalid" } // y difference between -125 and 125 (swipe on x-axis) }else if(ycR.val>-125&&ycR.val<125) { //tStatusNew.txt="y low, -> x" if(xcR.val<-80) { //tDirNew.txt="right" tSend.txt="event,buttonPress2,screensaver,swipeRight" }else if(xcR.val>80) { //tDirNew.txt="left" tSend.txt="event,buttonPress2,screensaver,swipeLeft" }else { //tDirNew.txt="invalid" } //diagonal swipe invalid }else { //tStatusNew.txt="invalid" //tDirNew.txt="diagonal" } } //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2