diff --git a/HMI/US/landscape/n2t-out/Program.s.txt b/HMI/US/landscape/n2t-out/Program.s.txt deleted file mode 100644 index 194b9009..00000000 --- a/HMI/US/landscape/n2t-out/Program.s.txt +++ /dev/null @@ -1,16 +0,0 @@ -Program.s - //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data - int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement - int bufferPos=0 - int recvCrc=0 - int payloadLength=0 - int par0=0,par1=0 - // sleep timeout in s - int sleepTimeout=20 - int sleepValue=0 - // dim value - int dimValue=40 - int dimValueNormal=100 - //color vars - int defaultFontColor=65535 - int defaultBcoColor=6371 diff --git a/HMI/US/landscape/n2t-out/arm1.txt b/HMI/US/landscape/n2t-out/arm1.txt deleted file mode 100644 index 31de7a2c..00000000 --- a/HMI/US/landscape/n2t-out/arm1.txt +++ /dev/null @@ -1,921 +0,0 @@ -Page cardAlarm - 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 - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tInstruction,0 - vis tTmp,0 - vis tId,0 - vis arm1,0 - vis arm2,0 - vis arm3,0 - vis arm4,0 - vis b0,0 - vis b1,0 - vis b2,0 - vis b3,0 - vis b4,0 - vis b5,0 - vis b6,0 - vis b7,0 - vis b8,0 - vis b9,0 - vis b10,0 - vis b11,0 - vis tCode,0 - vis bPrev,0 - vis bNext,0 - cardAlarm.bco=defaultBcoColor - for(sys0=0;sys0<40;sys0++) - { - if(b[sys0].type==98||b[sys0].type==116) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } - } - if(defaultBcoColor==0) - { - tCode.bco=6371 - tCode.pco=40179 - } - if(defaultBcoColor==6371) - { - tCode.bco=10565 - tCode.pco=40179 - } - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) va1 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va2 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va3 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va4 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) vaAddBtn - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Text tCode - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button arm1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va1.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va2.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va3.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va4.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 1 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"1" - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 2 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"2" - -Button b10 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 0 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"0" - -Button b11 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : CLR - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt="" - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 3 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"3" - -Button b3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 4 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"4" - -Button b4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 5 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"5" - -Button b5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 6 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"6" - -Button b6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 7 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"7" - -Button b7 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 8 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"8" - -Button b8 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 9 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"9" - -Button b9 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - if(vaAddBtn.txt!="") - { - tSend.txt+=vaAddBtn.txt+",button" - }else - { - tSend.txt+=entn.txt+",opnSensorNotify" - } - //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 - tCode.txt="" - -Button bNext - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bHome" - }else - { - tSend.txt+="bNext" - } - //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 - -Button bPrev - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } - //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 - -Hotspot mSwipeNext - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - - Events - Touch Press Event - click bNext,1 - -Hotspot mSwipePrev - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - - Events - Touch Press Event - click bPrev,1 - -Hotspot mSwipeUp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - - Events - Touch Press Event - click bPrev,1 - -Timer tmFlash - Attributes - Scope : local - Period (ms): 600 - Enabled : no - - Events - Timer Event - if(tIcon.isbr==1) - { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) - { - xTempDest2.val=xTempDest2.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button bUp2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest2.valxTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btDown1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btUp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - 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 - diff --git a/HMI/US/portrait/diff-filtered.txt b/HMI/US/portrait/diff-filtered.txt index d88c8c2e..77348142 100644 --- a/HMI/US/portrait/diff-filtered.txt +++ b/HMI/US/portrait/diff-filtered.txt @@ -1,4 +1,4 @@ -+++ /dev/fd/62 2022-11-03 17:14:06.344831301 +0000 ++++ /dev/fd/62 2022-11-03 18:42:47.339776246 +0000 +.txt ++1,8 @@ +pupThermo diff --git a/HMI/US/portrait/n2t-out-visual/Program.s.txt b/HMI/US/portrait/n2t-out-visual/Program.s.txt deleted file mode 100644 index 9f8fa6dd..00000000 --- a/HMI/US/portrait/n2t-out-visual/Program.s.txt +++ /dev/null @@ -1,19 +0,0 @@ -Program.s - //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data - int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement - int bufferPos=0 - int recvCrc=0 - int payloadLength=0 - int par0=0,par1=0 - // sleep timeout in s - int sleepTimeout=20 - int sleepValue=0 - // dim value - int dimValue=40 - int dimValueNormal=100 - //color vars - int defaultFontColor=65535 - int defaultBcoColor=6371 - // fix touch offset (Removed for US version) - //lcd_dev fffb 0002 0000 0020 - page pageStartup diff --git a/HMI/US/portrait/n2t-out-visual/arm1.txt b/HMI/US/portrait/n2t-out-visual/arm1.txt deleted file mode 100644 index 524a0641..00000000 --- a/HMI/US/portrait/n2t-out-visual/arm1.txt +++ /dev/null @@ -1,1511 +0,0 @@ -Page cardAlarm - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tInstruction,0 - vis tTmp,0 - vis tId,0 - vis arm1,0 - vis arm2,0 - vis arm3,0 - vis arm4,0 - vis b0,0 - vis b1,0 - vis b2,0 - vis b3,0 - vis b4,0 - vis b5,0 - vis b6,0 - vis b7,0 - vis b8,0 - vis b9,0 - vis b10,0 - vis b11,0 - vis tCode,0 - vis bPrev,0 - vis bNext,0 - cardAlarm.bco=defaultBcoColor - for(sys0=0;sys0<40;sys0++) - { - if(b[sys0].type==98||b[sys0].type==116) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } - } - if(defaultBcoColor==0) - { - tCode.bco=6371 - tCode.pco=40179 - } - if(defaultBcoColor==6371) - { - tCode.bco=10565 - tCode.pco=40179 - } - -Variable (string) entn - Attributes - ID : 9 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) strCommand - Attributes - ID : 6 - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) tSend - Attributes - ID : 25 - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) va1 - Attributes - ID : 30 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va2 - Attributes - ID : 31 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va3 - Attributes - ID : 32 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va4 - Attributes - ID : 33 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) vaAddBtn - Attributes - ID : 39 - Scope : local - Text : - Max. Text Size: 80 - -Text tCode - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 68 - y coordinate : 17 - Width : 192 - Height : 49 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 10565 - Font Color : 40179 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : password - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 26 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 129 - y coordinate : 73 - Width : 64 - Height : 49 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 3 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 99 - y coordinate : 290 - Width : 39 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 7 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 42 - y coordinate : 443 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 319 - Height : 479 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button arm1 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 132 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va1.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm2 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 193 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va2.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm3 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 171 - y coordinate : 131 - Width : 140 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va3.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm4 - Attributes - ID : 29 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 172 - y coordinate : 193 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va4.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button b0 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 252 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 1 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"1" - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 252 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 2 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"2" - -Button b10 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 424 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 0 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"0" - -Button b11 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 424 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : CLR - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt="" - -Button b2 - Attributes - ID : 14 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 251 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 3 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"3" - -Button b3 - Attributes - ID : 15 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 310 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 4 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"4" - -Button b4 - Attributes - ID : 16 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 310 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 5 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"5" - -Button b5 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 310 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 6 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"6" - -Button b6 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 368 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 7 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"7" - -Button b7 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 368 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 8 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"8" - -Button b8 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 368 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 9 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"9" - -Button b9 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 424 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 2 - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - if(vaAddBtn.txt!="") - { - tSend.txt+=vaAddBtn.txt+",button" - }else - { - tSend.txt+=entn.txt+",opnSensorNotify" - } - //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 - tCode.txt="" - -Button bNext - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 265 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bHome" - }else - { - tSend.txt+="bNext" - } - //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 - -Button bPrev - Attributes - ID : 4 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 9 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } - //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 - -Hotspot mSwipeNext - Attributes - ID : 35 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 311 - y coordinate : 5 - Width : 9 - Height : 470 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bNext,1 - -Hotspot mSwipePrev - Attributes - ID : 37 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 9 - Height : 470 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - -Hotspot mSwipeUp - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - Height : 9 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - -Timer tmFlash - Attributes - ID : 34 - Scope : local - Period (ms): 600 - Enabled : no - - Events - Timer Event - if(tIcon.isbr==1) - { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 - } - -Timer tmSerial - Attributes - ID : 5 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) - { - xTempDest2.val=xTempDest2.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button bUp2 - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 57 - y coordinate : 176 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest2.valxTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btDown1 - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 210 - y coordinate : 288 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btUp - Attributes - ID : 44 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 136 - y coordinate : 177 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - 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 - diff --git a/HMI/n2t-out-visual/Program.s.txt b/HMI/n2t-out-visual/Program.s.txt deleted file mode 100644 index 217dbf1f..00000000 --- a/HMI/n2t-out-visual/Program.s.txt +++ /dev/null @@ -1,19 +0,0 @@ -Program.s - //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data - int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement - int bufferPos=0 - int recvCrc=0 - int payloadLength=0 - int par0=0,par1=0 - // sleep timeout in s - int sleepTimeout=20 - int sleepValue=0 - // dim value - int dimValue=40 - int dimValueNormal=100 - //color vars - int defaultFontColor=65535 - int defaultBcoColor=6371 - // fix touch offset - lcd_dev fffb 0002 0000 0020 - page pageStartup diff --git a/HMI/n2t-out-visual/arm1.txt b/HMI/n2t-out-visual/arm1.txt deleted file mode 100644 index 3e1f7f31..00000000 --- a/HMI/n2t-out-visual/arm1.txt +++ /dev/null @@ -1,1511 +0,0 @@ -Page cardAlarm - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tInstruction,0 - vis tTmp,0 - vis tId,0 - vis arm1,0 - vis arm2,0 - vis arm3,0 - vis arm4,0 - vis b0,0 - vis b1,0 - vis b2,0 - vis b3,0 - vis b4,0 - vis b5,0 - vis b6,0 - vis b7,0 - vis b8,0 - vis b9,0 - vis b10,0 - vis b11,0 - vis tCode,0 - vis bPrev,0 - vis bNext,0 - cardAlarm.bco=defaultBcoColor - for(sys0=0;sys0<40;sys0++) - { - if(b[sys0].type==98||b[sys0].type==116) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } - } - if(defaultBcoColor==0) - { - tCode.bco=6371 - tCode.pco=40179 - } - if(defaultBcoColor==6371) - { - tCode.bco=10565 - tCode.pco=40179 - } - -Variable (string) entn - Attributes - ID : 9 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) strCommand - Attributes - ID : 6 - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) tSend - Attributes - ID : 25 - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) va1 - Attributes - ID : 30 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va2 - Attributes - ID : 31 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va3 - Attributes - ID : 32 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va4 - Attributes - ID : 33 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) vaAddBtn - Attributes - ID : 39 - Scope : local - Text : - Max. Text Size: 80 - -Text tCode - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 92 - y coordinate : 16 - Width : 192 - Height : 49 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 10565 - Font Color : 40179 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : password - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 26 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 300 - y coordinate : 16 - Width : 64 - Height : 49 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 3 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 99 - y coordinate : 290 - Width : 39 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 7 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 406 - y coordinate : 277 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 480 - Height : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button arm1 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 300 - y coordinate : 91 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va1.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm2 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 300 - y coordinate : 152 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va2.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm3 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 300 - y coordinate : 210 - Width : 140 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va3.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm4 - Attributes - ID : 29 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 300 - y coordinate : 266 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va4.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button b0 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 94 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 1 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"1" - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 94 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 2 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"2" - -Button b10 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 118 - y coordinate : 266 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 0 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"0" - -Button b11 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 266 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : CLR - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt="" - -Button b2 - Attributes - ID : 14 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 93 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 3 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"3" - -Button b3 - Attributes - ID : 15 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 152 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 4 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"4" - -Button b4 - Attributes - ID : 16 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 152 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 5 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"5" - -Button b5 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 152 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 6 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"6" - -Button b6 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 210 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 7 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"7" - -Button b7 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 210 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 8 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"8" - -Button b8 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 209 - y coordinate : 210 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 9 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"9" - -Button b9 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 266 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - if(vaAddBtn.txt!="") - { - tSend.txt+=vaAddBtn.txt+",button" - }else - { - tSend.txt+=entn.txt+",opnSensorNotify" - } - //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 - tCode.txt="" - -Button bNext - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 391 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bHome" - }else - { - tSend.txt+="bNext" - } - //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 - -Button bPrev - Attributes - ID : 4 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 9 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } - //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 - -Hotspot mSwipeNext - Attributes - ID : 35 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 440 - y coordinate : 5 - Width : 39 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bNext,1 - -Hotspot mSwipePrev - Attributes - ID : 37 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 9 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - -Hotspot mSwipeUp - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 12 - y coordinate : 0 - Width : 426 - Height : 9 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - -Timer tmFlash - Attributes - ID : 34 - Scope : local - Period (ms): 600 - Enabled : no - - Events - Timer Event - if(tIcon.isbr==1) - { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 - } - -Timer tmSerial - Attributes - ID : 5 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) - { - xTempDest2.val=xTempDest2.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button bUp2 - Attributes - ID : 39 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 178 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest2.valxTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btDown1 - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 331 - y coordinate : 179 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btUp - Attributes - ID : 47 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 257 - y coordinate : 68 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - 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 - diff --git a/HMI/n2t-out/Program.s.txt b/HMI/n2t-out/Program.s.txt deleted file mode 100644 index 217dbf1f..00000000 --- a/HMI/n2t-out/Program.s.txt +++ /dev/null @@ -1,19 +0,0 @@ -Program.s - //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data - int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement - int bufferPos=0 - int recvCrc=0 - int payloadLength=0 - int par0=0,par1=0 - // sleep timeout in s - int sleepTimeout=20 - int sleepValue=0 - // dim value - int dimValue=40 - int dimValueNormal=100 - //color vars - int defaultFontColor=65535 - int defaultBcoColor=6371 - // fix touch offset - lcd_dev fffb 0002 0000 0020 - page pageStartup diff --git a/HMI/n2t-out/arm1.txt b/HMI/n2t-out/arm1.txt deleted file mode 100644 index 2ecbfcd8..00000000 --- a/HMI/n2t-out/arm1.txt +++ /dev/null @@ -1,926 +0,0 @@ -Page cardAlarm - 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 - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tInstruction,0 - vis tTmp,0 - vis tId,0 - vis arm1,0 - vis arm2,0 - vis arm3,0 - vis arm4,0 - vis b0,0 - vis b1,0 - vis b2,0 - vis b3,0 - vis b4,0 - vis b5,0 - vis b6,0 - vis b7,0 - vis b8,0 - vis b9,0 - vis b10,0 - vis b11,0 - vis tCode,0 - vis bPrev,0 - vis bNext,0 - cardAlarm.bco=defaultBcoColor - for(sys0=0;sys0<40;sys0++) - { - if(b[sys0].type==98||b[sys0].type==116) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } - } - if(defaultBcoColor==0) - { - tCode.bco=6371 - tCode.pco=40179 - } - if(defaultBcoColor==6371) - { - tCode.bco=10565 - tCode.pco=40179 - } - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) va1 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va2 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va3 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) va4 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) vaAddBtn - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Text tCode - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button arm1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va1.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va2.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va3.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button arm4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 40 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va4.txt+"," - tSend.txt+=tCode.txt - //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 - tCode.txt="" - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 1 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"1" - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 2 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"2" - -Button b10 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 0 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"0" - -Button b11 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : CLR - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt="" - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 3 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"3" - -Button b3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 4 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"4" - -Button b4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 5 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"5" - -Button b5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 6 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"6" - -Button b6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 7 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"7" - -Button b7 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 8 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"8" - -Button b8 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : 9 - Max. Text Size : 10 - - Events - Touch Press Event - tCode.txt=tCode.txt+"9" - -Button b9 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - if(vaAddBtn.txt!="") - { - tSend.txt+=vaAddBtn.txt+",button" - }else - { - tSend.txt+=entn.txt+",opnSensorNotify" - } - //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 - tCode.txt="" - -Button bNext - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bHome" - }else - { - tSend.txt+="bNext" - } - //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 - -Button bPrev - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } - //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 - -Hotspot mSwipeNext - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - - Events - Touch Press Event - click bNext,1 - -Hotspot mSwipePrev - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - - Events - Touch Press Event - click bPrev,1 - -Hotspot mSwipeUp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - - Events - Touch Press Event - click bPrev,1 - -Timer tmFlash - Attributes - Scope : local - Period (ms): 600 - Enabled : no - - Events - Timer Event - if(tIcon.isbr==1) - { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) - { - xTempDest2.val=xTempDest2.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button bUp2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest2.valxTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btDown1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," - //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //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 - -Dual-state Button btUp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - 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 -