diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 0bc135c9..67a83593 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -1,5 +1,16 @@ --- HMI/n2t-out +++ HMI/US/landscape/n2t-out +├── file list +│ @@ -1,8 +1,9 @@ +│ Program.s.txt +│ +b0.txt +│ h0.txt +│ hBrightness.txt +│ hPosition.txt +│ hSlider1.txt +│ hSpeed.txt +│ hVolume.txt +│ tc0.txt ├── Program.s.txt │ @@ -10,10 +10,7 @@ │ int sleepValue=0 @@ -12,7 +23,1595 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup -├── bSendStartup.txt +├── tc0.txt +│ @@ -1,86 +1,77 @@ +│ -Page popupThermo +│ +Page cardThermo +│ 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 +│ - //get entitiy name +│ - tEntity.txt=pageIcons.tTmp1.txt +│ - //get entity id +│ - entn.txt=pageIcons.tTmp2.txt +│ - tIcon1.txt=pageIcons.tTmp3.txt +│ vis p0,0 +│ vis tSend,0 +│ - vis tTmp,0 +│ vis tInstruction,0 +│ + vis tTmp,0 +│ vis tId,0 +│ - vis bModeNext,0 +│ - vis cModeNext,0 +│ - vis dModeNext,0 +│ - //page open event +│ - // event,pageOpenDetail,typeOfPage,tEntityName +│ - // craft command +│ - tSend.txt="event,pageOpenDetail,popupThermo,"+entn.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 +│ - popupThermo.bco=defaultBcoColor +│ - for(sys0=0;sys0<43;sys0++) +│ + vis xTempMin1,0 +│ + vis xTempMax1,0 +│ + vis xTempStep1,0 +│ + //tEntity.txt=tHeading.txt +│ + // disable all buttons +│ + vis bt0,0 +│ + vis bt1,0 +│ + vis bt2,0 +│ + vis bt3,0 +│ + vis bt4,0 +│ + vis bt5,0 +│ + vis bt6,0 +│ + vis bt7,0 +│ + vis tCF2,0 +│ + vis bUp2,0 +│ + vis bDown2,0 +│ + vis xTempDest2,0 +│ + vis tCF1,0 +│ + vis btUp1,0 +│ + vis btDown1,0 +│ + vis xTempDest1,0 +│ + vis bPrev,0 +│ + vis bNext,0 +│ + cardThermo.bco=defaultBcoColor +│ + for(sys0=0;sys0<53;sys0++) +│ { +│ - if(b[sys0].type==98||b[sys0].type==116) +│ + if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==59) +│ { +│ b[sys0].bco=defaultBcoColor +│ b[sys0].pco=defaultFontColor +│ } +│ - if(b[sys0].type==53&&defaultBcoColor==0) +│ + if(b[sys0].type==53) +│ { +│ - b[sys0].pic=10 +│ - b[sys0].pic2=11 +│ + b[sys0].bco=defaultBcoColor +│ + b[sys0].bco2=defaultBcoColor +│ + b[sys0].pco=defaultFontColor +│ } +│ } +│ +│ Variable (string) entn +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 80 +│ +│ -Variable (int32) mode +│ - Attributes +│ - Scope: local +│ - Value: 1 +│ - +│ -Variable (int32) mode_temp +│ - Attributes +│ - Scope: local +│ - Value: 0 +│ - +│ Variable (string) strCommand +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 500 +│ + Max. Text Size: 250 +│ +│ Variable (string) tId +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 20 +│ +│ @@ -96,591 +87,754 @@ +│ Text : +│ Max. Text Size: 200 +│ +│ Variable (string) tTmp +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 80 +│ + Max. Text Size: 10 +│ +│ -Variable (string) vaModeCur +│ +Variable (string) va0 +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 40 +│ + Max. Text Size: 10 +│ +│ -Variable (string) vaModeCur2 +│ +Variable (string) va1 +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 40 +│ + Max. Text Size: 10 +│ +│ -Variable (string) vaModeCur3 +│ +Variable (string) va2 +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 40 +│ + Max. Text Size: 10 +│ +│ -Variable (string) vaModeList +│ +Variable (string) va3 +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 400 +│ + Max. Text Size: 10 +│ +│ -Variable (string) vaModeList2 +│ +Variable (string) va4 +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 400 +│ + Max. Text Size: 10 +│ +│ -Variable (string) vaModeList3 +│ +Variable (string) va5 +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 400 +│ + Max. Text Size: 10 +│ +│ -Variable (int32) vaModePos +│ +Variable (string) va6 +│ Attributes +│ - Scope: local +│ - Value: 0 +│ + Scope : local +│ + Text : +│ + Max. Text Size: 10 +│ +│ -Variable (int32) vaModePos2 +│ +Variable (string) va7 +│ Attributes +│ - Scope: local +│ - Value: 0 +│ + Scope : local +│ + Text : +│ + Max. Text Size: 10 +│ +│ -Variable (int32) vaModePos3 +│ +XFloat xTempDest +│ Attributes +│ - Scope: local +│ - Value: 0 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Value : 0 +│ +│ -Variable (string) vaType +│ +XFloat xTempDest1 +│ Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 20 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Value : 0 +│ +│ -Variable (string) vaType2 +│ +XFloat xTempDest2 +│ Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 20 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Value : 0 +│ +│ -Variable (string) vaType3 +│ +XFloat xTempMax1 +│ Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 20 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Value : 0 +│ +│ -Text heading1 +│ +XFloat xTempMin1 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text : +│ - Max. Text Size : 25 +│ + Value : 0 +│ +│ -Text heading2 +│ +XFloat xTempStep1 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text : +│ - Max. Text Size : 25 +│ + Value : 0 +│ + +│ +Text tCF +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text :  +│ + Max. Text Size : 10 +│ + +│ +Text tCF1 +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text :  +│ + Max. Text Size : 10 +│ + +│ +Text tCF2 +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text :  +│ + Max. Text Size : 10 +│ +│ -Text heading3 +│ +Text tCurTemp +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 25 +│ + Max. Text Size : 30 +│ + +│ +Text tCurTempLbl +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : Currently +│ + Max. Text Size : 30 +│ +│ -Text tEntity +│ +Text tHeading +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 25 +│ + Max. Text Size : 40 +│ +│ -Text tIcon1 +│ +Text tStateLbl +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : State +│ + Max. Text Size : 30 +│ + +│ +Text tStatus +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 10 +│ + Max. Text Size : 40 +│ +│ Picture p0 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ +│ -Button b0 +│ +Button bNext +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ State : unpressed +│ - Text :  +│ + Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,popupLight,bExit" +│ + tSend.txt="event,buttonPress2,cardThermo,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 bMode1 +│ +Button bPrev +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ State : unpressed +│ - Text : +│ - Max. Text Size : 40 +│ + Text :  +│ + Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos.val-3 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType.txt+","+tTmp.txt +│ + tSend.txt="event,buttonPress2,cardThermo," +│ + 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 +│ +│ -Button bMode2 +│ +Dual-state Button bDown2 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ State : unpressed +│ - Text : +│ - Max. Text Size : 40 +│ + Text :  +│ + Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ + if(xTempDest2.val>xTempMin1.val) +│ + { +│ + xTempDest2.val=xTempDest2.val-xTempStep1.val +│ + } +│ + // event,buttonPress2,entn,tempUpd,X +│ //craft command +│ tSend.txt="event,buttonPress2," +│ tSend.txt+=entn.txt+"," +│ - sys2=vaModePos.val-2 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType.txt+","+tTmp.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 +│ +│ -Button bMode3 +│ +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 : 40 +│ + 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+"," +│ - sys2=vaModePos3.val-3 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType3.txt+","+tTmp.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 +│ +│ -Button dMode2 +│ +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 : 40 +│ + 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+"," +│ - sys2=vaModePos3.val-2 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType3.txt+","+tTmp.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 +│ +│ -Button dMode3 +│ +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 : 40 +│ + Text :  +│ + Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ + if(xTempDest.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + ID : 14 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/landscape/n2t-out-visual/hPosition.txt b/HMI/US/landscape/n2t-out-visual/hPosition.txt new file mode 100644 index 00000000..47013efa --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/hPosition.txt @@ -0,0 +1,1029 @@ +Page popupShutter + 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 + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tPosHeading,0 + vis hPosition,0 + vis hTilt,0 + vis bTLeft,0 + vis bTStop,0 + vis bTRight,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupShutter,"+entn.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 + popupShutter.bco=defaultBcoColor + b0.bco=defaultBcoColor + tIcon1.bco=defaultBcoColor + tEntity.bco=defaultBcoColor + tInfo1.bco=defaultBcoColor + tPosHeading.bco=defaultBcoColor + tTiltHeading.bco=defaultBcoColor + bUp1.bco=defaultBcoColor + bStop1.bco=defaultBcoColor + bDown1.bco=defaultBcoColor + bTLeft.bco=defaultBcoColor + bTStop.bco=defaultBcoColor + bTRight.bco=defaultBcoColor + b0.pco=defaultFontColor + tIcon1.pco=defaultFontColor + tEntity.pco=defaultFontColor + tInfo1.pco=defaultFontColor + tPosHeading.pco=defaultFontColor + tTiltHeading.pco=defaultFontColor + bUp1.pco=defaultFontColor + bStop1.pco=defaultFontColor + bDown1.pco=defaultFontColor + bTLeft.pco=defaultFontColor + bTStop.pco=defaultFontColor + bTRight.pco=defaultFontColor + if(defaultBcoColor==0) + { + hTilt.pic=14 + hTilt.pic1=13 + hTilt.pic2=15 + hPosition.pic=14 + hPosition.pic1=13 + hPosition.pic2=15 + } + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + ID : 8 + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) tId + Attributes + ID : 17 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 80 + +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 81 + y coordinate : 48 + Width : 195 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : tEntity1 + Max. Text Size : 25 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 28 + y coordinate : 63 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInfo1 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 81 + y coordinate : 76 + Width : 195 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 38066 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tPosHeading + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 80 + y coordinate : 122 + Width : 188 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : Position + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTiltHeading + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 80 + y coordinate : 231 + Width : 191 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 30 + 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 + +Slider hPosition + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 80 + y coordinate : 152 + Width : 335 + Height : 43 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," + covx hPosition.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 + +Slider hTilt + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 80 + y coordinate : 261 + Width : 335 + Height : 43 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," + covx hTilt.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 + +Button b0 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 413 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,popupShutter,bExit" + //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 bDown1 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 402 + y coordinate : 95 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",down" + //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 bStop1 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 350 + y coordinate : 95 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",stop" + //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 bTLeft + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 298 + y coordinate : 205 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltOpen" + //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 bTRight + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 402 + y coordinate : 205 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltClose" + //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 bTStop + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 350 + y coordinate : 205 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltStop" + //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 bUp1 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 298 + y coordinate : 95 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",up" + //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 + +Timer tmSerial + Attributes + ID : 7 + 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(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/landscape/n2t-out-visual/bDown2.txt b/HMI/US/landscape/n2t-out-visual/tc0.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/bDown2.txt rename to HMI/US/landscape/n2t-out-visual/tc0.txt diff --git a/HMI/US/landscape/n2t-out-visual/bSendStartup.txt b/HMI/US/landscape/n2t-out-visual/tmSerial.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/bSendStartup.txt rename to HMI/US/landscape/n2t-out-visual/tmSerial.txt diff --git a/HMI/US/landscape/n2t-out-visual/vaDate.txt b/HMI/US/landscape/n2t-out-visual/vaDate.txt new file mode 100644 index 00000000..47a463a9 --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/vaDate.txt @@ -0,0 +1,141 @@ +Page pageIcons + 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 : 65535 + +Variable (string) vaDate + Attributes + ID : 5 + Scope : global + Text : + Max. Text Size: 35 + +Variable (string) vaTime + Attributes + ID : 4 + Scope : global + Text : + Max. Text Size: 15 + +Text tTmp1 + Attributes + ID : 2 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 8 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp2 + Attributes + ID : 3 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 82 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp3 + Attributes + ID : 6 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 152 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + 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 : 479 + Height : 319 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + diff --git a/HMI/US/landscape/n2t-out/b0.txt b/HMI/US/landscape/n2t-out/b0.txt index 878a8ae8..53a5261d 100644 --- a/HMI/US/landscape/n2t-out/b0.txt +++ b/HMI/US/landscape/n2t-out/b0.txt @@ -1,4 +1,4 @@ -Page popupThermo +Page pageTest Attributes Scope : local Dragging : 0 @@ -12,215 +12,8 @@ Page popupThermo Events Preinitialize Event - dim=dimValueNormal - //get entitiy name - tEntity.txt=pageIcons.tTmp1.txt - //get entity id - entn.txt=pageIcons.tTmp2.txt - tIcon1.txt=pageIcons.tTmp3.txt vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - vis bModeNext,0 - vis cModeNext,0 - vis dModeNext,0 - //page open event - // event,pageOpenDetail,typeOfPage,tEntityName - // craft command - tSend.txt="event,pageOpenDetail,popupThermo,"+entn.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 - popupThermo.bco=defaultBcoColor - for(sys0=0;sys0<43;sys0++) - { - if(b[sys0].type==98||b[sys0].type==116) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } - if(b[sys0].type==53&&defaultBcoColor==0) - { - b[sys0].pic=10 - b[sys0].pic2=11 - } - } -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (int32) mode - Attributes - Scope: local - Value: 1 - -Variable (int32) mode_temp - Attributes - Scope: local - Value: 0 - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 500 - -Variable (string) tId - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) tInstruction - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) tTmp - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) vaModeCur - Attributes - Scope : local - Text : - Max. Text Size: 40 - -Variable (string) vaModeCur2 - Attributes - Scope : local - Text : - Max. Text Size: 40 - -Variable (string) vaModeCur3 - Attributes - Scope : local - Text : - Max. Text Size: 40 - -Variable (string) vaModeList - Attributes - Scope : local - Text : - Max. Text Size: 400 - -Variable (string) vaModeList2 - Attributes - Scope : local - Text : - Max. Text Size: 400 - -Variable (string) vaModeList3 - Attributes - Scope : local - Text : - Max. Text Size: 400 - -Variable (int32) vaModePos - Attributes - Scope: local - Value: 0 - -Variable (int32) vaModePos2 - Attributes - Scope: local - Value: 0 - -Variable (int32) vaModePos3 - Attributes - Scope: local - Value: 0 - -Variable (string) vaType - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) vaType2 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) vaType3 - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Text heading1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 25 - -Text heading2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 25 - -Text heading3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 25 - -Text tEntity - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 25 - -Text tIcon1 - 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 @@ -235,755 +28,165 @@ Button b0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text : entities Max. Text Size : 10 Events Touch Press Event - tSend.txt="event,buttonPress2,popupLight,bExit" - //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 + page cardEntities -Button bMode1 +Button b1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : bauds=115200 + Max. Text Size : 20 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos.val-3 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType.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 + bauds=115200 -Button bMode2 +Button b10 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : alarm + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos.val-2 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType.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 + page cardAlarm -Button bMode3 +Button b11 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : grid + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos.val-1 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType.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 + page cardGrid -Button bModeNext +Button b2 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  - Max. Text Size : 3 + Text : qr + Max. Text Size : 10 Events Touch Press Event - //if(bMode3.txt=="") - spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val - if(tTmp.txt=="") - { - vaModePos.val=0 - spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val - spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 - spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 - } - spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val - spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 - spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 - vaModePos.val+=3 - spstr vaModeList.txt,tTmp.txt,"?",3 - if(tTmp.txt=="") - { - vis bModeNext,0 - }else - { - vis bModeNext,1 - } - bMode1.pco=defaultFontColor - bMode2.pco=defaultFontColor - bMode3.pco=defaultFontColor - if(bMode1.txt==vaModeCur.txt) - { - bMode1.pco=1374 - } - if(bMode2.txt==vaModeCur.txt) - { - bMode2.pco=1374 - } - if(bMode3.txt==vaModeCur.txt) - { - bMode3.pco=1374 - } + page cardQR -Button cMode1 +Button b3 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : disable recmod + Max. Text Size : 20 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos2.val-3 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType2.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 + recmod=0 -Button cMode2 +Button b4 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : light + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos2.val-2 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType2.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 + page popupLight -Button cMode3 +Button b5 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : thermo + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos2.val-1 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType2.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 + page cardThermo -Button cModeNext +Button b6 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  - Max. Text Size : 3 + Text : shutter + Max. Text Size : 10 Events Touch Press Event - spstr vaModeList2.txt,tTmp.txt,"?",vaModePos2.val - if(tTmp.txt=="") - { - vaModePos2.val=0 - spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val - spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 - spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 - } - spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val - spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 - spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 - vaModePos2.val+=3 - spstr vaModeList2.txt,tTmp.txt,"?",3 - if(tTmp.txt=="") - { - vis cModeNext,0 - }else - { - vis cModeNext,1 - } - cMode1.pco=defaultFontColor - cMode2.pco=defaultFontColor - cMode3.pco=defaultFontColor - if(cMode1.txt==vaModeCur.txt) - { - cMode1.pco=1374 - } - if(cMode2.txt==vaModeCur.txt) - { - cMode2.pco=1374 - } - if(cMode3.txt==vaModeCur.txt) - { - cMode3.pco=1374 - } + page popupShutter -Button dMode1 +Button b7 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : media + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos3.val-3 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType3.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 + page cardMedia -Button dMode2 +Button b8 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : screens + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos3.val-2 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType3.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 + dimValue=50 + page screensaver -Button dMode3 +Button b9 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text : - Max. Text Size : 40 + Text : notify + Max. Text Size : 10 Events Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos3.val-1 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType3.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 - -Button dModeNext - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 3 - - Events - Touch Press Event - spstr vaModeList3.txt,tTmp.txt,"?",vaModePos3.val - if(tTmp.txt=="") - { - vaModePos3.val=0 - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 - } - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 - vaModePos3.val+=3 - spstr vaModeList3.txt,tTmp.txt,"?",3 - if(tTmp.txt=="") - { - vis dModeNext,0 - }else - { - vis dModeNext,1 - } - dMode1.pco=defaultFontColor - dMode2.pco=defaultFontColor - dMode3.pco=defaultFontColor - if(dMode1.txt==vaModeCur.txt) - { - dMode1.pco=1374 - } - if(dMode2.txt==vaModeCur.txt) - { - dMode2.pco=1374 - } - if(dMode3.txt==vaModeCur.txt) - { - dMode3.pco=1374 - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -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(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out/bEntity1.txt b/HMI/US/landscape/n2t-out/hPosition.txt similarity index 54% rename from HMI/US/portrait/n2t-out/bEntity1.txt rename to HMI/US/landscape/n2t-out/hPosition.txt index f1b4f83c..9fdce22d 100644 --- a/HMI/US/portrait/n2t-out/bEntity1.txt +++ b/HMI/US/landscape/n2t-out/hPosition.txt @@ -1,4 +1,4 @@ -Page cardGrid +Page popupShutter Attributes Scope : local Dragging : 0 @@ -13,70 +13,70 @@ Page cardGrid Events Preinitialize Event dim=dimValueNormal - //remove background & activate reparse mode + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt vis p0,0 - recmod=1 - bauds=115200 - //debug stuff - vis tTmp,0 vis tSend,0 - vis tInstruction,0 - vis tId,0 - vis bEntity1,0 - vis bEntity2,0 - vis bEntity3,0 - vis bEntity4,0 - vis bEntity5,0 - vis bEntity6,0 - vis tEntity1,0 - vis tEntity2,0 - vis tEntity3,0 - vis tEntity4,0 - vis tEntity5,0 - vis tEntity6,0 - vis bPrev,0 - vis bNext,0 - cardGrid.bco=defaultBcoColor - for(sys0=0;sys0<42;sys0++) + vis tPosHeading,0 + vis hPosition,0 + vis hTilt,0 + vis bTLeft,0 + vis bTStop,0 + vis bTRight,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupShutter,"+entn.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 + popupShutter.bco=defaultBcoColor + b0.bco=defaultBcoColor + tIcon1.bco=defaultBcoColor + tEntity.bco=defaultBcoColor + tInfo1.bco=defaultBcoColor + tPosHeading.bco=defaultBcoColor + tTiltHeading.bco=defaultBcoColor + bUp1.bco=defaultBcoColor + bStop1.bco=defaultBcoColor + bDown1.bco=defaultBcoColor + bTLeft.bco=defaultBcoColor + bTStop.bco=defaultBcoColor + bTRight.bco=defaultBcoColor + b0.pco=defaultFontColor + tIcon1.pco=defaultFontColor + tEntity.pco=defaultFontColor + tInfo1.pco=defaultFontColor + tPosHeading.pco=defaultFontColor + tTiltHeading.pco=defaultFontColor + bUp1.pco=defaultFontColor + bStop1.pco=defaultFontColor + bDown1.pco=defaultFontColor + bTLeft.pco=defaultFontColor + bTStop.pco=defaultFontColor + bTRight.pco=defaultFontColor + if(defaultBcoColor==0) { - if(b[sys0].type==98||b[sys0].type==116) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } + hTilt.pic=14 + hTilt.pic1=13 + hTilt.pic2=15 + hPosition.pic=14 + hPosition.pic1=13 + hPosition.pic2=15 } -Variable (string) entn1 - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn2 - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn3 - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn4 - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn5 - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn6 +Variable (string) entn Attributes Scope : local Text : @@ -88,49 +88,31 @@ Variable (string) strCommand Text : Max. Text Size: 500 +Variable (string) tId + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + Scope : local + Text : + Max. Text Size: 20 + Variable (string) tSend Attributes Scope : local Text : Max. Text Size: 200 -Variable (string) type1 +Variable (string) tTmp Attributes Scope : local Text : - Max. Text Size: 10 + Max. Text Size: 80 -Variable (string) type2 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type3 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type4 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type5 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type6 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Text tEntity1 +Text tEntity Attributes Scope : local Dragging : 0 @@ -138,59 +120,19 @@ Text tEntity1 Send Component ID : disabled Associated Keyboard : none Text : tEntity1 - Max. Text Size : 30 + Max. Text Size : 25 -Text tEntity2 +Text tIcon1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none - Text : tEntity2 - Max. Text Size : 30 + Text :  + Max. Text Size : 10 -Text tEntity3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : tEntity3 - Max. Text Size : 30 - -Text tEntity4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : tEntity4 - Max. Text Size : 30 - -Text tEntity5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : tEntity5 - Max. Text Size : 30 - -Text tEntity6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : tEntity6 - Max. Text Size : 30 - -Text tHeading +Text tInfo1 Attributes Scope : local Dragging : 0 @@ -200,17 +142,17 @@ Text tHeading Text : Max. Text Size : 40 -Text tId +Text tPosHeading Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none - Text : - Max. Text Size : 50 + Text : Position + Max. Text Size : 30 -Text tInstruction +Text tTiltHeading Attributes Scope : local Dragging : 0 @@ -218,17 +160,7 @@ Text tInstruction 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 + Max. Text Size : 30 Picture p0 Attributes @@ -237,31 +169,23 @@ Picture p0 Disable release event after dragging: 0 Send Component ID : disabled -Button bEntity1 +Slider hPosition Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 Events - Touch Press Event - tmLP.en=1 - tTmp.txt=type1.txt - pageIcons.tTmp1.txt=tEntity1.txt - pageIcons.tTmp2.txt=entn1.txt - pageIcons.tTmp3.txt=bEntity1.txt - if(type1.txt=="shutter") - { - page popupShutter - } - Touch Release Event - tmLP.en=0 - tSend.txt="event,buttonPress2,"+entn1.txt+",button" + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," + covx hPosition.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -274,31 +198,23 @@ Button bEntity1 prints tSend.txt,0 prints crcval,2 -Button bEntity2 +Slider hTilt Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 Events - Touch Press Event - tmLP.en=1 - tTmp.txt=type2.txt - pageIcons.tTmp1.txt=tEntity2.txt - pageIcons.tTmp2.txt=entn2.txt - pageIcons.tTmp3.txt=bEntity2.txt - if(type2.txt=="shutter") - { - page popupShutter - } - Touch Release Event - tmLP.en=0 - tSend.txt="event,buttonPress2,"+entn2.txt+",button" + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," + covx hTilt.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -311,31 +227,19 @@ Button bEntity2 prints tSend.txt,0 prints crcval,2 -Button bEntity3 +Button b0 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - tmLP.en=1 - tTmp.txt=type3.txt - pageIcons.tTmp1.txt=tEntity3.txt - pageIcons.tTmp2.txt=entn3.txt - pageIcons.tTmp3.txt=bEntity3.txt - if(type3.txt=="shutter") - { - page popupShutter - } - - Touch Release Event - tmLP.en=0 - tSend.txt="event,buttonPress2,"+entn3.txt+",button" + tSend.txt="event,buttonPress2,popupShutter,bExit" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -348,31 +252,19 @@ Button bEntity3 prints tSend.txt,0 prints crcval,2 -Button bEntity4 +Button bDown1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - tmLP.en=1 - tTmp.txt=type4.txt - pageIcons.tTmp1.txt=tEntity4.txt - pageIcons.tTmp2.txt=entn4.txt - pageIcons.tTmp3.txt=bEntity4.txt - if(type4.txt=="shutter") - { - page popupShutter - } - - Touch Release Event - tmLP.en=0 - tSend.txt="event,buttonPress2,"+entn4.txt+",button" + tSend.txt="event,buttonPress2,"+entn.txt+",down" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -385,31 +277,19 @@ Button bEntity4 prints tSend.txt,0 prints crcval,2 -Button bEntity5 +Button bStop1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - tmLP.en=1 - tTmp.txt=type5.txt - pageIcons.tTmp1.txt=tEntity5.txt - pageIcons.tTmp2.txt=entn5.txt - pageIcons.tTmp3.txt=bEntity5.txt - if(type5.txt=="shutter") - { - page popupShutter - } - - Touch Release Event - tmLP.en=0 - tSend.txt="event,buttonPress2,"+entn5.txt+",button" + tSend.txt="event,buttonPress2,"+entn.txt+",stop" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -422,31 +302,19 @@ Button bEntity5 prints tSend.txt,0 prints crcval,2 -Button bEntity6 +Button bTLeft Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - tmLP.en=1 - tTmp.txt=type6.txt - pageIcons.tTmp1.txt=tEntity6.txt - pageIcons.tTmp2.txt=entn6.txt - pageIcons.tTmp3.txt=bEntity6.txt - if(type6.txt=="shutter") - { - page popupShutter - } - - Touch Release Event - tmLP.en=0 - tSend.txt="event,buttonPress2,"+entn6.txt+",button" + tSend.txt="event,buttonPress2,"+entn.txt+",tiltOpen" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -459,19 +327,19 @@ Button bEntity6 prints tSend.txt,0 prints crcval,2 -Button bNext +Button bTRight Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - tSend.txt="event,buttonPress2,cardGrid,bNext" + tSend.txt="event,buttonPress2,"+entn.txt+",tiltClose" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -484,26 +352,19 @@ Button bNext prints tSend.txt,0 prints crcval,2 -Button bPrev +Button bTStop Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - tSend.txt="event,buttonPress2,cardGrid," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } + tSend.txt="event,buttonPress2,"+entn.txt+",tiltStop" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -516,76 +377,30 @@ Button bPrev prints tSend.txt,0 prints crcval,2 -Hotspot mSpecial +Button bUp1 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 - sys2=sys2+1 - sys2%=10 - //n0.val=sys2 - if(sys2==9) - { - page pageTest - } - -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 tmLP - Attributes - Scope : local - Period (ms): 500 - Enabled : no - - Events - Timer Event - if(tTmp.txt=="light") - { - page popupLight - } - if(tTmp.txt=="fan") - { - page popupFan - } - if(tTmp.txt=="input_sel") - { - page popupInSel - } + tSend.txt="event,buttonPress2,"+entn.txt+",up" + //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 Timer tmSerial Attributes @@ -638,175 +453,167 @@ Timer tmSerial ucopy strCommand.txt,4,payloadLength-5,0 // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default) spstr strCommand.txt,tInstruction.txt,"~",0 - if(tInstruction.txt=="entityUpd") + spstr strCommand.txt,tTmp.txt,"~",1 + if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt) { - // command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6 - spstr strCommand.txt,tHeading.txt,"~",1 - // navigation icons - spstr strCommand.txt,tId.txt,"~",2 - spstr tId.txt,tTmp.txt,"|",0 - if(tTmp.txt=="0") + // get Position value + spstr strCommand.txt,tTmp.txt,"~",2 + if(tTmp.txt=="disable") { - vis bPrev,0 - tsw mSwipePrev,0 - tsw mSwipeUp,0 - } - if(tTmp.txt=="1") - { - vis bPrev,1 - tsw mSwipePrev,1 - tsw mSwipeUp,0 - bPrev.txt="" - } - if(tTmp.txt=="2") - { - vis bPrev,1 - tsw mSwipePrev,0 - tsw mSwipeUp,1 - bPrev.txt="" - } - spstr tId.txt,tTmp.txt,"|",1 - if(tTmp.txt=="0") - { - vis bNext,0 - tsw mSwipeNext,0 - } - if(tTmp.txt=="1") - { - vis bNext,1 - tsw mSwipeNext,1 - bNext.txt="" - } - // get Type - spstr strCommand.txt,type1.txt,"~",3 - // get internal name - spstr strCommand.txt,entn1.txt,"~",4 - if(type1.txt=="delete"||type1.txt=="") - { - vis tEntity1,0 - vis bEntity1,0 + vis tPosHeading,0 + vis hPosition,0 }else { - // change icon - spstr strCommand.txt,bEntity1.txt,"~",5 - vis bEntity1,1 - // change icon color - spstr strCommand.txt,tTmp.txt,"~",6 covx tTmp.txt,sys0,0,0 - bEntity1.pco=sys0 - // set name - spstr strCommand.txt,tEntity1.txt,"~",7 - vis tEntity1,1 + hPosition.val=sys0 + vis tPosHeading,1 + vis hPosition,1 } - // get Type - spstr strCommand.txt,type2.txt,"~",9 - // get internal name - spstr strCommand.txt,entn2.txt,"~",10 - if(type2.txt=="delete"||type2.txt=="") + // set tinfo1 text + spstr strCommand.txt,tInfo1.txt,"~",3 + // set tPosHeading (localization) + spstr strCommand.txt,tPosHeading.txt,"~",4 + // set tIcon1 + spstr strCommand.txt,tTmp.txt,"~",5 + if(tTmp.txt!="") { - vis tEntity2,0 - vis bEntity2,0 - }else + tIcon1.txt=tTmp.txt + } + // set icon bUp + spstr strCommand.txt,tTmp.txt,"~",9 + if(tTmp.txt=="disable") { - // change icon - spstr strCommand.txt,bEntity2.txt,"~",11 - vis bEntity2,1 - // change icon color - spstr strCommand.txt,tTmp.txt,"~",12 + tsw bUp1,0 + spstr strCommand.txt,bUp1.txt,"~",6 + bUp1.pco=27501 + }else if(tTmp.txt=="enable") + { + spstr strCommand.txt,bUp1.txt,"~",6 + tsw bUp1,1 + bUp1.pco=65535 + } + // set icon bStop + spstr strCommand.txt,tTmp.txt,"~",10 + if(tTmp.txt=="disable") + { + tsw bStop1,0 + spstr strCommand.txt,bStop1.txt,"~",7 + bStop1.pco=27501 + }else if(tTmp.txt=="enable") + { + spstr strCommand.txt,bStop1.txt,"~",7 + tsw bStop1,1 + bStop1.pco=65535 + } + // set icon bDown + spstr strCommand.txt,tTmp.txt,"~",11 + if(tTmp.txt=="disable") + { + spstr strCommand.txt,bDown1.txt,"~",8 + tsw bDown1,0 + bDown1.pco=27501 + }else if(tTmp.txt=="enable") + { + spstr strCommand.txt,bDown1.txt,"~",8 + tsw bDown1,1 + bDown1.pco=65535 + } + // set tTiltHeading (localization) + spstr strCommand.txt,tTiltHeading.txt,"~",12 + // set icon bUp + spstr strCommand.txt,tTmp.txt,"~",16 + if(tTmp.txt=="disable") + { + tsw bTLeft,0 + spstr strCommand.txt,bTLeft.txt,"~",13 + bTLeft.pco=27501 + vis bTLeft,1 + }else if(tTmp.txt=="enable") + { + spstr strCommand.txt,bTLeft.txt,"~",13 + tsw bTLeft,1 + bTLeft.pco=65535 + vis bTLeft,1 + } + // set icon bStop + spstr strCommand.txt,tTmp.txt,"~",17 + if(tTmp.txt=="disable") + { + tsw bTStop,0 + spstr strCommand.txt,bTStop.txt,"~",14 + bTStop.pco=27501 + vis bTStop,1 + }else if(tTmp.txt=="enable") + { + spstr strCommand.txt,bTStop.txt,"~",14 + tsw bTStop,1 + bTStop.pco=65535 + vis bTStop,1 + } + // set icon bDown + spstr strCommand.txt,tTmp.txt,"~",18 + if(tTmp.txt=="disable") + { + spstr strCommand.txt,bTRight.txt,"~",15 + tsw bTRight,0 + bTRight.pco=27501 + vis bTRight,1 + }else if(tTmp.txt=="enable") + { + spstr strCommand.txt,bTRight.txt,"~",15 + tsw bTRight,1 + bTRight.pco=65535 + vis bTRight,1 + } + // set tilt slider + spstr strCommand.txt,tTmp.txt,"~",19 + if(tTmp.txt!="disable") + { + vis hTilt,1 covx tTmp.txt,sys0,0,0 - bEntity2.pco=sys0 - // set name - spstr strCommand.txt,tEntity2.txt,"~",13 - vis tEntity2,1 + hTilt.val=sys0 } - // get Type - spstr strCommand.txt,type3.txt,"~",15 - // get internal name - spstr strCommand.txt,entn3.txt,"~",16 - if(type3.txt=="delete"||type3.txt=="") + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") { - vis tEntity3,0 - vis bEntity3,0 - }else - { - // change icon - spstr strCommand.txt,bEntity3.txt,"~",17 - vis bEntity3,1 - // change icon color - spstr strCommand.txt,tTmp.txt,"~",18 - covx tTmp.txt,sys0,0,0 - bEntity3.pco=sys0 - // set name - spstr strCommand.txt,tEntity3.txt,"~",19 - vis tEntity3,1 + covx tTmp.txt,defaultBcoColor,0,0 } - // get Type - spstr strCommand.txt,type4.txt,"~",21 - // get internal name - spstr strCommand.txt,entn4.txt,"~",22 - if(type4.txt=="delete"||type4.txt=="") + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") { - vis tEntity4,0 - vis bEntity4,0 - }else - { - // change icon - spstr strCommand.txt,bEntity4.txt,"~",23 - vis bEntity4,1 - // change icon color - spstr strCommand.txt,tTmp.txt,"~",24 - covx tTmp.txt,sys0,0,0 - bEntity4.pco=sys0 - // set name - spstr strCommand.txt,tEntity4.txt,"~",25 - vis tEntity4,1 - } - // get Type - spstr strCommand.txt,type5.txt,"~",27 - // get internal name - spstr strCommand.txt,entn5.txt,"~",28 - if(type5.txt=="delete"||type5.txt=="") - { - vis tEntity5,0 - vis bEntity5,0 - }else - { - // change icon - spstr strCommand.txt,bEntity5.txt,"~",29 - vis bEntity5,1 - // change icon color - spstr strCommand.txt,tTmp.txt,"~",30 - covx tTmp.txt,sys0,0,0 - bEntity5.pco=sys0 - // set name - spstr strCommand.txt,tEntity5.txt,"~",31 - vis tEntity5,1 - } - // get Type - spstr strCommand.txt,type6.txt,"~",33 - // get internal name - spstr strCommand.txt,entn6.txt,"~",34 - if(type6.txt=="delete"||type6.txt=="") - { - vis tEntity6,0 - vis bEntity6,0 - }else - { - // change icon - spstr strCommand.txt,bEntity6.txt,"~",35 - vis bEntity6,1 - // change icon color - spstr strCommand.txt,tTmp.txt,"~",36 - covx tTmp.txt,sys0,0,0 - bEntity6.pco=sys0 - // set name - spstr strCommand.txt,tEntity6.txt,"~",37 - vis tEntity6,1 + covx tTmp.txt,defaultFontColor,0,0 } } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } if(tInstruction.txt=="pageType") { - sleepValue=0 //command format pageType,specialPageName //write name of speical page to tId spstr strCommand.txt,tId.txt,"~",1 @@ -869,44 +676,6 @@ Timer tmSerial page cardPower } } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } // end of user code udelete payloadLength-1 bufferPos=0 @@ -927,25 +696,14 @@ Timer tmSleep Events Timer Event - if(sleepTimeout!=0&&dimValue!=dim) + if(sleepTimeout!=0) { sleepValue+=1 if(sleepTimeout<=sleepValue) { sleepValue=0 - dim=dimValue - tSend.txt="event,sleepReached,cardGrid" - //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 + click b0,1 + click b0,0 } } diff --git a/HMI/US/landscape/n2t-out/bDown1.txt b/HMI/US/landscape/n2t-out/hSlider1.txt similarity index 100% rename from HMI/US/landscape/n2t-out/bDown1.txt rename to HMI/US/landscape/n2t-out/hSlider1.txt diff --git a/HMI/US/landscape/n2t-out/hSpeed.txt b/HMI/US/landscape/n2t-out/hSpeed.txt new file mode 100644 index 00000000..1241982e --- /dev/null +++ b/HMI/US/landscape/n2t-out/hSpeed.txt @@ -0,0 +1,666 @@ +Page popupFan + 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 + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupFan,"+entn.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 + vis hSpeed,0 + popupFan.bco=defaultBcoColor + for(sys0=0;sys0<24;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + if(b[sys0].type==53&&defaultBcoColor==0) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + if(defaultBcoColor==0) + { + hSpeed.pic=14 + hSpeed.pic1=13 + hSpeed.pic2=15 + } + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (int32) mode + Attributes + Scope: local + Value: 1 + +Variable (int32) mode_temp + Attributes + Scope: local + Value: 0 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) vaModeCur + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeList + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (int32) vaModePos + Attributes + Scope: local + Value: 0 + +Text t1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 50 + +Text tEntity + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 25 + +Text tIcon1 + 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 : 80 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Slider hSpeed + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + tmCooldown.en=1 + tmCooldown.tim=2500 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",number-set," + covx hSpeed.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 + +Button b0 + 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,popupLight,bExit" + //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 bMode1 + 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 + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-3 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+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 + +Button bMode2 + 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 + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+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 + +Button bMode3 + 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 + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+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 + +Button bModeNext + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + //if(bMode3.txt=="") + spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val + if(tTmp.txt=="") + { + vaModePos.val=0 + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + } + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + vaModePos.val+=3 + spstr vaModeList.txt,tTmp.txt,"?",3 + if(tTmp.txt=="") + { + vis bModeNext,0 + }else + { + vis bModeNext,1 + } + bMode1.pco=defaultFontColor + bMode2.pco=defaultFontColor + bMode3.pco=defaultFontColor + if(bMode1.txt==vaModeCur.txt) + { + bMode1.pco=1374 + } + if(bMode2.txt==vaModeCur.txt) + { + bMode2.pco=1374 + } + if(bMode3.txt==vaModeCur.txt) + { + bMode3.pco=1374 + } + +Dual-state Button btOnOff1 + 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 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," + covx btOnOff1.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 + +Timer tmCooldown + Attributes + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +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(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/landscape/n2t-out/bDown2.txt b/HMI/US/landscape/n2t-out/tc0.txt similarity index 100% rename from HMI/US/landscape/n2t-out/bDown2.txt rename to HMI/US/landscape/n2t-out/tc0.txt diff --git a/HMI/US/landscape/n2t-out/bSendStartup.txt b/HMI/US/landscape/n2t-out/tmSerial.txt similarity index 100% rename from HMI/US/landscape/n2t-out/bSendStartup.txt rename to HMI/US/landscape/n2t-out/tmSerial.txt diff --git a/HMI/US/landscape/n2t-out/vaDate.txt b/HMI/US/landscape/n2t-out/vaDate.txt new file mode 100644 index 00000000..873de61c --- /dev/null +++ b/HMI/US/landscape/n2t-out/vaDate.txt @@ -0,0 +1,61 @@ +Page pageIcons + 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 + +Variable (string) vaDate + Attributes + Scope : global + Text : + Max. Text Size: 35 + +Variable (string) vaTime + Attributes + Scope : global + Text : + Max. Text Size: 15 + +Text tTmp1 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp2 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp3 + Attributes + Scope : global + 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 + diff --git a/HMI/US/portrait/diff-eu-version.txt b/HMI/US/portrait/diff-eu-version.txt index a98c4731..fb0b78b7 100644 --- a/HMI/US/portrait/diff-eu-version.txt +++ b/HMI/US/portrait/diff-eu-version.txt @@ -1,5 +1,16 @@ --- HMI/n2t-out +++ HMI/US/portrait/n2t-out +├── file list +│ @@ -1,8 +1,9 @@ +│ Program.s.txt +│ +b0.txt +│ h0.txt +│ hBrightness.txt +│ hPosition.txt +│ hSlider1.txt +│ hSpeed.txt +│ hVolume.txt +│ tc0.txt ├── Program.s.txt │ @@ -10,10 +10,10 @@ │ int sleepValue=0 @@ -14,880 +25,7 @@ │ + // fix touch offset (Removed for US version) │ + //lcd_dev fffb 0002 0000 0020 │ page pageStartup -├── b0.txt -│ @@ -1,8 +1,8 @@ -│ -Page popupThermo -│ +Page popupInSel -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Locked : no -│ Swide up page ID : disabled -│ @@ -20,33 +20,31 @@ -│ tIcon1.txt=pageIcons.tTmp3.txt -│ vis p0,0 -│ vis tSend,0 -│ vis tTmp,0 -│ vis tInstruction,0 -│ vis tId,0 -│ vis bModeNext,0 -│ - vis cModeNext,0 -│ - vis dModeNext,0 -│ //page open event -│ // event,pageOpenDetail,typeOfPage,tEntityName -│ // craft command -│ - tSend.txt="event,pageOpenDetail,popupThermo,"+entn.txt -│ + tSend.txt="event,pageOpenDetail,popupInSel,"+entn.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 -│ - popupThermo.bco=defaultBcoColor -│ - for(sys0=0;sys0<43;sys0++) -│ + popupInSel.bco=defaultBcoColor -│ + for(sys0=0;sys0<34;sys0++) -│ { -│ if(b[sys0].type==98||b[sys0].type==116) -│ { -│ b[sys0].bco=defaultBcoColor -│ b[sys0].pco=defaultFontColor -│ } -│ if(b[sys0].type==53&&defaultBcoColor==0) -│ @@ -104,107 +102,31 @@ -│ -│ Variable (string) vaModeCur -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 40 -│ -│ -Variable (string) vaModeCur2 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 40 -│ - -│ -Variable (string) vaModeCur3 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 40 -│ - -│ Variable (string) vaModeList -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 400 -│ -│ -Variable (string) vaModeList2 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 400 -│ - -│ -Variable (string) vaModeList3 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 400 -│ - -│ Variable (int32) vaModePos -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) vaModePos2 -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (int32) vaModePos3 -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ Variable (string) vaType -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 20 -│ -│ -Variable (string) vaType2 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ - -│ -Variable (string) vaType3 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ - -│ -Text heading1 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 25 -│ - -│ -Text heading2 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 25 -│ - -│ -Text heading3 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 25 -│ - -│ Text tEntity -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ @@ -264,14 +186,44 @@ -│ Max. Text Size : 40 -│ -│ Events -│ Touch Press Event -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ + sys2=vaModePos.val-12 -│ + covx sys2,tTmp.txt,0,0 -│ + tSend.txt+="mode-"+vaType.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 -│ + -│ +Button bMode10 -│ + 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 -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ sys2=vaModePos.val-3 -│ covx sys2,tTmp.txt,0,0 -│ tSend.txt+="mode-"+vaType.txt+","+tTmp.txt -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ crcputh 55 bb -│ @@ -279,15 +231,15 @@ -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ -│ -Button bMode2 -│ +Button bMode11 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ Text : -│ @@ -309,15 +261,15 @@ -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ -│ -Button bMode3 -│ +Button bMode12 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ Text : -│ @@ -339,337 +291,354 @@ -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ -│ -Button bModeNext -│ +Button bMode2 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ - Text :  -│ - Max. Text Size : 3 -│ + Text : -│ + Max. Text Size : 40 -│ -│ Events -│ Touch Press Event -│ - //if(bMode3.txt=="") -│ - spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val -│ - if(tTmp.txt=="") -│ - { -│ - vaModePos.val=0 -│ - spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -│ - spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -│ - spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -│ - } -│ - spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -│ - spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -│ - spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -│ - vaModePos.val+=3 -│ - spstr vaModeList.txt,tTmp.txt,"?",3 -│ - if(tTmp.txt=="") -│ - { -│ - vis bModeNext,0 -│ - }else -│ - { -│ - vis bModeNext,1 -│ - } -│ - bMode1.pco=defaultFontColor -│ - bMode2.pco=defaultFontColor -│ - bMode3.pco=defaultFontColor -│ - if(bMode1.txt==vaModeCur.txt) -│ - { -│ - bMode1.pco=1374 -│ - } -│ - if(bMode2.txt==vaModeCur.txt) -│ - { -│ - bMode2.pco=1374 -│ - } -│ - if(bMode3.txt==vaModeCur.txt) -│ - { -│ - bMode3.pco=1374 -│ - } -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + sys2=vaModePos.val-11 -│ + covx sys2,tTmp.txt,0,0 -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button cMode1 -│ +Button bMode3 -│ 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 -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ - sys2=vaModePos2.val-3 -│ + sys2=vaModePos.val-10 -│ covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button cMode2 -│ +Button bMode4 -│ 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 -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ - sys2=vaModePos2.val-2 -│ + sys2=vaModePos.val-9 -│ covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button cMode3 -│ +Button bMode5 -│ 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 -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ - sys2=vaModePos2.val-1 -│ + sys2=vaModePos.val-8 -│ covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button cModeNext -│ +Button bMode6 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ - Text :  -│ - Max. Text Size : 3 -│ + Text : -│ + Max. Text Size : 40 -│ -│ Events -│ Touch Press Event -│ - spstr vaModeList2.txt,tTmp.txt,"?",vaModePos2.val -│ - if(tTmp.txt=="") -│ - { -│ - vaModePos2.val=0 -│ - spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val -│ - spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 -│ - spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 -│ - } -│ - spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val -│ - spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 -│ - spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 -│ - vaModePos2.val+=3 -│ - spstr vaModeList2.txt,tTmp.txt,"?",3 -│ - if(tTmp.txt=="") -│ - { -│ - vis cModeNext,0 -│ - }else -│ - { -│ - vis cModeNext,1 -│ - } -│ - cMode1.pco=defaultFontColor -│ - cMode2.pco=defaultFontColor -│ - cMode3.pco=defaultFontColor -│ - if(cMode1.txt==vaModeCur.txt) -│ - { -│ - cMode1.pco=1374 -│ - } -│ - if(cMode2.txt==vaModeCur.txt) -│ - { -│ - cMode2.pco=1374 -│ - } -│ - if(cMode3.txt==vaModeCur.txt) -│ - { -│ - cMode3.pco=1374 -│ - } -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + sys2=vaModePos.val-7 -│ + covx sys2,tTmp.txt,0,0 -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button dMode1 -│ +Button bMode7 -│ 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 -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ - sys2=vaModePos3.val-3 -│ + sys2=vaModePos.val-6 -│ covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button dMode2 -│ +Button bMode8 -│ 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 -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ - sys2=vaModePos3.val-2 -│ + sys2=vaModePos.val-5 -│ covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button dMode3 -│ +Button bMode9 -│ 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 -│ //craft command -│ tSend.txt="event,buttonPress2," -│ tSend.txt+=entn.txt+"," -│ - sys2=vaModePos3.val-1 -│ + sys2=vaModePos.val-4 -│ covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -│ + tSend.txt+="mode-"+vaType.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 -│ -│ -Button dModeNext -│ +Button bModeNext -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ Text :  -│ Max. Text Size : 3 -│ -│ Events -│ Touch Press Event -│ - spstr vaModeList3.txt,tTmp.txt,"?",vaModePos3.val -│ + spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val -│ if(tTmp.txt=="") -│ { -│ - vaModePos3.val=0 -│ - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val -│ - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 -│ - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 -│ - } -│ - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val -│ - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 -│ - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 -│ - vaModePos3.val+=3 -│ - spstr vaModeList3.txt,tTmp.txt,"?",3 -│ + vaModePos.val=0 -│ + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -│ + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -│ + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -│ + } -│ + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -│ + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -│ + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -│ + spstr vaModeList.txt,bMode4.txt,"?",vaModePos.val+3 -│ + spstr vaModeList.txt,bMode5.txt,"?",vaModePos.val+4 -│ + spstr vaModeList.txt,bMode6.txt,"?",vaModePos.val+5 -│ + spstr vaModeList.txt,bMode7.txt,"?",vaModePos.val+6 -│ + spstr vaModeList.txt,bMode8.txt,"?",vaModePos.val+7 -│ + spstr vaModeList.txt,bMode9.txt,"?",vaModePos.val+8 -│ + spstr vaModeList.txt,bMode10.txt,"?",vaModePos.val+9 -│ + spstr vaModeList.txt,bMode11.txt,"?",vaModePos.val+10 -│ + spstr vaModeList.txt,bMode12.txt,"?",vaModePos.val+11 -│ + vaModePos.val+=12 -│ + spstr vaModeList.txt,tTmp.txt,"?",12 -│ if(tTmp.txt=="") -│ { -│ - vis dModeNext,0 -│ + vis bModeNext,0 -│ }else -│ { -│ - vis dModeNext,1 -│ + vis bModeNext,1 -│ + } -│ + bMode1.pco=defaultFontColor -│ + bMode2.pco=defaultFontColor -│ + bMode3.pco=defaultFontColor -│ + bMode4.pco=defaultFontColor -│ + bMode5.pco=defaultFontColor -│ + bMode6.pco=defaultFontColor -│ + bMode7.pco=defaultFontColor -│ + bMode8.pco=defaultFontColor -│ + bMode9.pco=defaultFontColor -│ + bMode10.pco=defaultFontColor -│ + bMode11.pco=defaultFontColor -│ + bMode12.pco=defaultFontColor -│ + if(bMode1.txt==vaModeCur.txt) -│ + { -│ + bMode1.pco=1374 -│ + } -│ + if(bMode2.txt==vaModeCur.txt) -│ + { -│ + bMode2.pco=1374 -│ + } -│ + if(bMode3.txt==vaModeCur.txt) -│ + { -│ + bMode3.pco=1374 -│ + } -│ + if(bMode4.txt==vaModeCur.txt) -│ + { -│ + bMode4.pco=1374 -│ + } -│ + if(bMode5.txt==vaModeCur.txt) -│ + { -│ + bMode5.pco=1374 -│ } -│ - dMode1.pco=defaultFontColor -│ - dMode2.pco=defaultFontColor -│ - dMode3.pco=defaultFontColor -│ - if(dMode1.txt==vaModeCur.txt) -│ + if(bMode6.txt==vaModeCur.txt) -│ { -│ - dMode1.pco=1374 -│ + bMode6.pco=1374 -│ } -│ - if(dMode2.txt==vaModeCur.txt) -│ + if(bMode7.txt==vaModeCur.txt) -│ { -│ - dMode2.pco=1374 -│ + bMode7.pco=1374 -│ } -│ - if(dMode3.txt==vaModeCur.txt) -│ + if(bMode8.txt==vaModeCur.txt) -│ { -│ - dMode3.pco=1374 -│ + bMode8.pco=1374 -│ + } -│ + if(bMode9.txt==vaModeCur.txt) -│ + { -│ + bMode9.pco=1374 -│ + } -│ + if(bMode10.txt==vaModeCur.txt) -│ + { -│ + bMode10.pco=1374 -│ + } -│ + if(bMode11.txt==vaModeCur.txt) -│ + { -│ + bMode11.pco=1374 -│ + } -│ + if(bMode12.txt==vaModeCur.txt) -│ + { -│ + bMode12.pco=1374 -│ } -│ -│ Timer tmCooldown -│ Attributes -│ Scope : local -│ Period (ms): 100 -│ Enabled : no -│ @@ -729,124 +698,106 @@ -│ ucopy strCommand.txt,4,payloadLength-5,0 -│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default) -│ spstr strCommand.txt,tInstruction.txt,"~",0 -│ spstr strCommand.txt,tTmp.txt,"~",1 -│ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt) -│ { -│ // change icon -│ - spstr strCommand.txt,tIcon1.txt,"~",2 -│ + //spstr strCommand.txt,tIcon1.txt,"~",2 -│ vis tIcon1,1 -│ // change icon color -│ spstr strCommand.txt,tTmp.txt,"~",3 -│ covx tTmp.txt,sys0,0,0 -│ tIcon1.pco=sys0 -│ - //mode 1 heading -│ - spstr strCommand.txt,heading1.txt,"~",4 -│ //mode 1 type -│ - spstr strCommand.txt,vaType.txt,"~",5 -│ + spstr strCommand.txt,vaType.txt,"~",4 -│ //current mode -│ - spstr strCommand.txt,vaModeCur.txt,"~",6 -│ + spstr strCommand.txt,vaModeCur.txt,"~",5 -│ //mode list -│ - spstr strCommand.txt,vaModeList.txt,"~",7 -│ + spstr strCommand.txt,vaModeList.txt,"~",6 -│ if(vaModeList.txt=="") -│ { -│ vis bMode1,0 -│ vis bMode2,0 -│ vis bMode3,0 -│ + vis bMode4,0 -│ + vis bMode5,0 -│ + vis bMode6,0 -│ + vis bMode7,0 -│ + vis bMode8,0 -│ + vis bMode9,0 -│ + vis bMode10,0 -│ + vis bMode11,0 -│ + vis bMode12,0 -│ vis bModeNext,0 -│ } -│ if(bMode1.txt=="") -│ { -│ click bModeNext,1 -│ click bModeNext,0 -│ } -│ bMode1.pco=defaultFontColor -│ bMode2.pco=defaultFontColor -│ bMode3.pco=defaultFontColor -│ + bMode4.pco=defaultFontColor -│ + bMode5.pco=defaultFontColor -│ + bMode6.pco=defaultFontColor -│ + bMode7.pco=defaultFontColor -│ + bMode8.pco=defaultFontColor -│ + bMode9.pco=defaultFontColor -│ + bMode10.pco=defaultFontColor -│ + bMode11.pco=defaultFontColor -│ + bMode12.pco=defaultFontColor -│ if(bMode1.txt==vaModeCur.txt) -│ { -│ bMode1.pco=1374 -│ } -│ if(bMode2.txt==vaModeCur.txt) -│ { -│ bMode2.pco=1374 -│ } -│ if(bMode3.txt==vaModeCur.txt) -│ { -│ bMode3.pco=1374 -│ } -│ - //mode 2 heading -│ - spstr strCommand.txt,heading2.txt,"~",8 -│ - //mode 2 type -│ - spstr strCommand.txt,vaType2.txt,"~",9 -│ - //current mode -│ - spstr strCommand.txt,vaModeCur2.txt,"~",10 -│ - //mode list -│ - spstr strCommand.txt,vaModeList2.txt,"~",11 -│ - if(vaModeList2.txt=="") -│ + if(bMode4.txt==vaModeCur.txt) -│ { -│ - vis cMode1,0 -│ - vis cMode2,0 -│ - vis cMode3,0 -│ - vis cModeNext,0 -│ + bMode4.pco=1374 -│ } -│ - if(cMode1.txt=="") -│ + if(bMode5.txt==vaModeCur.txt) -│ { -│ - click cModeNext,1 -│ - click cModeNext,0 -│ + bMode5.pco=1374 -│ } -│ - cMode1.pco=defaultFontColor -│ - cMode2.pco=defaultFontColor -│ - cMode3.pco=defaultFontColor -│ - if(cMode1.txt==vaModeCur2.txt) -│ + if(bMode6.txt==vaModeCur.txt) -│ { -│ - cMode1.pco=1374 -│ + bMode6.pco=1374 -│ } -│ - if(cMode2.txt==vaModeCur2.txt) -│ + if(bMode7.txt==vaModeCur.txt) -│ { -│ - cMode2.pco=1374 -│ + bMode7.pco=1374 -│ } -│ - if(cMode3.txt==vaModeCur2.txt) -│ - { -│ - cMode3.pco=1374 -│ - } -│ - //mode 3 heading -│ - spstr strCommand.txt,heading3.txt,"~",12 -│ - //mode 3 type -│ - spstr strCommand.txt,vaType3.txt,"~",13 -│ - //current mode -│ - spstr strCommand.txt,vaModeCur3.txt,"~",14 -│ - //mode list -│ - spstr strCommand.txt,vaModeList3.txt,"~",15 -│ - if(vaModeList3.txt=="") -│ + if(bMode8.txt==vaModeCur.txt) -│ { -│ - vis dMode1,0 -│ - vis dMode2,0 -│ - vis dMode3,0 -│ - vis dModeNext,0 -│ + bMode8.pco=1374 -│ } -│ - if(dMode1.txt=="") -│ + if(bMode9.txt==vaModeCur.txt) -│ { -│ - click dModeNext,1 -│ - click dModeNext,0 -│ + bMode9.pco=1374 -│ } -│ - dMode1.pco=defaultFontColor -│ - dMode2.pco=defaultFontColor -│ - dMode3.pco=defaultFontColor -│ - if(dMode1.txt==vaModeCur3.txt) -│ + if(bMode10.txt==vaModeCur.txt) -│ { -│ - dMode1.pco=1374 -│ + bMode10.pco=1374 -│ } -│ - if(dMode2.txt==vaModeCur3.txt) -│ + if(bMode11.txt==vaModeCur.txt) -│ { -│ - dMode2.pco=1374 -│ + bMode11.pco=1374 -│ } -│ - if(dMode3.txt==vaModeCur3.txt) -│ + if(bMode12.txt==vaModeCur.txt) -│ { -│ - dMode3.pco=1374 -│ + bMode12.pco=1374 -│ } -│ } -│ if(tInstruction.txt=="time") -│ { -│ // get set time to global variable -│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 -│ } -├── bDown1.txt +├── hSlider1.txt │ @@ -61,14 +61,24 @@ │ vis tIcon4,0 │ vis tEntity4,0 @@ -1484,10 +622,10 @@ │ //command format pageType,specialPageName │ //write name of speical page to tId │ spstr strCommand.txt,tId.txt,"~",1 -├── bNext.txt -│ @@ -1,8 +1,8 @@ -│ -Page cardPower -│ +Page cardMedia +├── tc0.txt +│ @@ -1,686 +1,397 @@ +│ -Page popupThermo +│ +Page screensaver │ Attributes │ Scope : local │ Dragging : 0 @@ -1495,371 +633,234 @@ │ Send Component ID : disabled │ Locked : no │ Swide up page ID : disabled -│ @@ -14,343 +14,444 @@ +│ 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 +│ - dim=dimValueNormal +│ - //get entitiy name +│ - tEntity.txt=pageIcons.tTmp1.txt +│ - //get entity id +│ - entn.txt=pageIcons.tTmp2.txt +│ - tIcon1.txt=pageIcons.tTmp3.txt +│ - vis p0,0 +│ - vis tSend,0 +│ - vis tTmp,0 +│ + recmod=1 +│ + bauds=115200 │ vis tInstruction,0 -│ vis tTmp,0 -│ vis tId,0 -│ + vis t5,0 -│ vis bPrev,0 -│ vis bNext,0 -│ - tsw h0,0 -│ - tsw h1,0 -│ - tsw h2,0 -│ - tsw h3,0 -│ - tsw h4,0 -│ - tsw h5,0 -│ - vis h0,0 -│ - vis h1,0 -│ - vis h2,0 -│ - vis h3,0 -│ - vis h4,0 -│ - vis h5,0 -│ - vis t0Icon,0 -│ - vis t1Icon,0 -│ - vis t2Icon,0 -│ - vis t3Icon,0 -│ - vis t4Icon,0 -│ - vis t5Icon,0 -│ - cardPower.bco=defaultBcoColor +│ - vis tId,0 +│ - vis bModeNext,0 +│ - vis cModeNext,0 +│ - vis dModeNext,0 +│ - //page open event +│ - // event,pageOpenDetail,typeOfPage,tEntityName +│ - // craft command +│ - tSend.txt="event,pageOpenDetail,popupThermo,"+entn.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 +│ - popupThermo.bco=defaultBcoColor │ - for(sys0=0;sys0<43;sys0++) -│ + cardMedia.bco=defaultBcoColor -│ + for(sys0=0;sys0<34;sys0++) +│ + 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=="") │ { -│ if(b[sys0].type==98||b[sys0].type==116) -│ { -│ b[sys0].bco=defaultBcoColor -│ b[sys0].pco=defaultFontColor -│ } -│ - if(defaultBcoColor==0) +│ - if(b[sys0].type==98||b[sys0].type==116) │ - { -│ - if(b[sys0].type==1) -│ - { -│ - b[sys0].pic=19 -│ - b[sys0].pic1=19 -│ - b[sys0].pic2=15 -│ - } +│ - b[sys0].bco=defaultBcoColor +│ - b[sys0].pco=defaultFontColor │ - } -│ + } -│ + if(defaultBcoColor==0) -│ + { -│ + hVolume.pic=14 -│ + hVolume.pic1=13 -│ + hVolume.pic2=15 +│ - if(b[sys0].type==53&&defaultBcoColor==0) +│ - { +│ - b[sys0].pic=10 +│ - b[sys0].pic2=11 +│ - } +│ + 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 │ -│ -Variable (string) strCommand -│ +Variable (string) entn +│ -Variable (string) entn +│ - Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 80 +│ - +│ -Variable (int32) mode +│ - Attributes +│ - Scope: local +│ - Value: 1 +│ - +│ -Variable (int32) mode_temp +│ - Attributes +│ - Scope: local +│ - Value: 0 +│ - +│ Variable (string) strCommand │ Attributes │ Scope : local │ Text : -│ - Max. Text Size: 275 -│ - -│ -Variable (int32) t0Speed -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ + Max. Text Size: 80 -│ -│ -Variable (int32) t1Speed -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (int32) t2Speed -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (int32) t3Speed -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (int32) t4Speed -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (int32) t5Speed -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (string) tId -│ +Variable (string) strCommand -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 20 -│ + Max. Text Size: 750 -│ -│ -Variable (string) tInstruction -│ +Variable (string) tSend -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 20 +│ - Max. Text Size: 500 │ + Max. Text Size: 200 │ -│ -Variable (string) tSend -│ +Variable (string) vaMenu +│ Variable (string) tId +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 20 +│ + Max. Text Size: 25 +│ +│ Variable (string) tInstruction +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 20 +│ + Max. Text Size: 50 +│ +│ Variable (string) tSend │ Attributes │ Scope : local │ Text : │ - Max. Text Size: 200 │ + Max. Text Size: 50 │ -│ -Variable (string) tTmp -│ +Variable (string) vaSpeakerList +│ Variable (string) tTmp │ Attributes │ Scope : local │ Text : -│ - Max. Text Size: 10 -│ + Max. Text Size: 400 +│ - Max. Text Size: 80 +│ - +│ -Variable (string) vaModeCur +│ - Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 40 +│ - +│ -Variable (string) vaModeCur2 +│ - Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 40 +│ + Max. Text Size: 50 │ -│ -Text t0Icon -│ +Variable (int32) vaSpeakerPos +│ -Variable (string) vaModeCur3 +│ +Variable (int32) vaTap │ Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 5 +│ - Scope : local +│ - Text : +│ - Max. Text Size: 40 │ + Scope: local │ + Value: 0 │ -│ -Text t0u -│ +Text t0 +│ -Variable (string) vaModeList +│ +Variable (int32) xc1 │ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 20 -│ + Text :  +│ - Scope : local +│ - Text : +│ - Max. Text Size: 400 +│ + Scope: local +│ + Value: 0 +│ +│ -Variable (string) vaModeList2 +│ +Variable (int32) xc2 +│ Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 400 +│ + Scope: local +│ + Value: 0 +│ +│ -Variable (string) vaModeList3 +│ +Variable (int32) xcR +│ Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 400 +│ + Scope: local +│ + Value: 0 +│ +│ -Variable (int32) vaModePos +│ +Variable (int32) yc1 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) vaModePos2 +│ +Variable (int32) yc2 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) vaModePos3 +│ +Variable (int32) ycR +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (string) vaType +│ +Text t10 +│ Attributes +│ - Scope : local +│ - Text : +│ - Max. Text Size: 20 +│ + 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 -│ + // event,buttonPress2,entn,media-back -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + tSend.txt+="media-back" -│ + //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 -│ + -│ Text t1 +│ -Variable (string) vaType2 +│ +Text tAMPM │ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 5 -│ + Text :  +│ - Scope : local +│ - Text : +│ - Max. Text Size: 20 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : PM │ + Max. Text Size : 10 │ -│ -Text t1Icon -│ + Events -│ + Touch Press Event -│ + hVolume.val=hVolume.val-1 -│ + // event,buttonPress2,internalNameEntity,volumeSlider,50 -│ + //craft command -│ + tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -│ + covx hVolume.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 -│ + -│ +Text t2 +│ -Variable (string) vaType3 +│ +Text tDate │ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 5 -│ + Text :  -│ + Max. Text Size : 10 -│ -│ -Text t1u -│ + Events -│ + Touch Press Event -│ + // event,buttonPress2,entn,media-next -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + tSend.txt+="media-next" -│ + //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 -│ + -│ +Text t3 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 20 -│ + Text :  -│ + Max. Text Size : 10 -│ -│ -Text t2Icon -│ + Events -│ + Touch Press Event -│ + hVolume.val=hVolume.val+1 -│ + // event,buttonPress2,internalNameEntity,volumeSlider,50 -│ + //craft command -│ + tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -│ + covx hVolume.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 -│ + -│ +Text t4 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : î ° -│ - Max. Text Size : 5 -│ + Text :  -│ + Max. Text Size : 10 -│ -│ -Text t2u -│ +Text t5 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 20 -│ + Text :  -│ + Max. Text Size : 10 -│ -│ -Text t3Icon -│ + Events -│ + Touch Press Event -│ + // event,buttonPress2,entn,media-next -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + tSend.txt+="media-OnOff" -│ + //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 -│ + -│ +Text t6 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : î ° -│ - Max. Text Size : 5 -│ + Text :  -│ + Max. Text Size : 10 -│ -│ -Text t3u -│ + Events -│ + Touch Press Event -│ + //speaker -│ + tSpeaker.pco=65535 -│ + spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val -│ + vaSpeakerPos.val+=1 -│ + if(tSpeaker.txt=="") -│ + { -│ + vaSpeakerPos.val=0 -│ + spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val -│ + } -│ + -│ +Text tAuthor -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ Text : -│ - Max. Text Size : 20 -│ + Max. Text Size : 50 -│ -│ -Text t4Icon -│ +Text tHeading -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : î´½ -│ - Max. Text Size : 5 -│ + Text : +│ - Scope : local +│ - Text : +│ - Max. Text Size: 20 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : Tuesday, 08. March 2022 │ + Max. Text Size : 40 │ -│ -Text t4u -│ +Text tIcon +│ -Text heading1 +│ +Text tF1Icon │ Attributes │ Scope : local │ Dragging : 0 @@ -1867,42 +868,11 @@ │ Send Component ID : disabled │ Associated Keyboard : none │ Text : -│ - Max. Text Size : 20 +│ - Max. Text Size : 25 │ + Max. Text Size : 10 │ -│ -Text t5Icon -│ + Events -│ + Touch Release Event -│ + if(vaMenu.txt!="") -│ + { -│ + tSend.txt="event,buttonPress2,"+vaMenu.txt+",button" -│ + //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 -│ + } -│ + -│ +Text tId -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 5 -│ + Text : -│ + Max. Text Size : 20 -│ -│ -Text t5u -│ +Text tInstruction +│ -Text heading2 +│ +Text tF2Icon │ Attributes │ Scope : local │ Dragging : 0 @@ -1910,42 +880,11 @@ │ Send Component ID : disabled │ Associated Keyboard : none │ Text : -│ Max. Text Size : 20 -│ -│ -Text tHeading -│ +Text tPlayPause -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 40 -│ + Text :  +│ - Max. Text Size : 25 │ + Max. Text Size : 10 │ -│ -Text tHome -│ + Events -│ + Touch Press Event -│ + // event,buttonPress2,entn,media-pause -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + tSend.txt+="media-pause" -│ + //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 -│ + -│ +Text tSpeaker +│ -Text heading3 +│ +Text tF3Icon │ Attributes │ Scope : local │ Dragging : 0 @@ -1953,243 +892,598 @@ │ Send Component ID : disabled │ Associated Keyboard : none │ Text : -│ - Max. Text Size : 20 -│ - +│ - Max. Text Size : 25 +│ + Max. Text Size : 10 +│ +│ -Text tEntity +│ +Text tF4Icon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 25 +│ + Max. Text Size : 5 +│ +│ -Text tIcon1 +│ +Text tForecast1 +│ 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 -│ + Max. Text Size : 50 -│ -│ -Slider h0 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - Position : 50 -│ - Upper range limit : 100 -│ - Lower range limit : 0 -│ - -│ -Slider h1 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - Position : 50 -│ - Upper range limit : 100 -│ - Lower range limit : 0 -│ - -│ -Slider h2 -│ + Events -│ + Touch Press Event -│ + // event,buttonPress2,entn,media-next -│ + //craft command -│ + tSend.txt="event,buttonPress2," -│ + tSend.txt+=entn.txt+"," -│ + tSend.txt+="speaker-sel,"+tSpeaker.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 -│ + -│ +Text tTitle +│ +Text tForecast1Val │ Attributes │ Scope : local │ Dragging : 0 │ Disable release event after dragging: 0 │ Send Component ID : disabled -│ - Position : 50 -│ - Upper range limit : 100 -│ - Lower range limit : 0 -│ + Associated Keyboard : none -│ + Text : -│ + Max. Text Size : 50 -│ -│ -Slider h3 -│ +Text tTmp -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ - Position : 50 -│ - Upper range limit : 100 -│ - Lower range limit : 0 │ + Associated Keyboard : none │ + Text : │ + Max. Text Size : 10 │ -│ -Slider h4 +│ -Button b0 +│ +Text tForecast2 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ - Text :  +│ + Associated Keyboard : none +│ + Text : +│ Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - tSend.txt="event,buttonPress2,popupLight,bExit" +│ - //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 bMode1 +│ +Text tForecast2Val +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos.val-3 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType.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 +│ - +│ -Button bMode2 +│ +Text tForecast3 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos.val-2 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType.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 +│ - +│ -Button bMode3 +│ +Text tForecast3Val +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos.val-1 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType.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 +│ - +│ -Button bModeNext +│ +Text tForecast4 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ - Text :  +│ - Max. Text Size : 3 +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //if(bMode3.txt=="") +│ - spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val +│ - if(tTmp.txt=="") +│ - { +│ - vaModePos.val=0 +│ - spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val +│ - spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 +│ - spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 +│ - } +│ - spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val +│ - spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 +│ - spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 +│ - vaModePos.val+=3 +│ - spstr vaModeList.txt,tTmp.txt,"?",3 +│ - if(tTmp.txt=="") +│ - { +│ - vis bModeNext,0 +│ - }else +│ - { +│ - vis bModeNext,1 +│ - } +│ - bMode1.pco=defaultFontColor +│ - bMode2.pco=defaultFontColor +│ - bMode3.pco=defaultFontColor +│ - if(bMode1.txt==vaModeCur.txt) +│ - { +│ - bMode1.pco=1374 +│ - } +│ - if(bMode2.txt==vaModeCur.txt) +│ - { +│ - bMode2.pco=1374 +│ - } +│ - if(bMode3.txt==vaModeCur.txt) +│ - { +│ - bMode3.pco=1374 +│ - } +│ - +│ -Button cMode1 +│ +Text tForecast4Val +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos2.val-3 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType2.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 +│ - +│ -Button cMode2 +│ +Text tIcon1 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 5 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos2.val-2 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType2.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 +│ - +│ -Button cMode3 +│ +Text tIcon2 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 5 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos2.val-1 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType2.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 +│ - +│ -Button cModeNext +│ +Text tMR +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ - Text :  +│ - Max. Text Size : 3 +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - spstr vaModeList2.txt,tTmp.txt,"?",vaModePos2.val +│ - if(tTmp.txt=="") +│ - { +│ - vaModePos2.val=0 +│ - spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val +│ - spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 +│ - spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 +│ - } +│ - spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val +│ - spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 +│ - spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 +│ - vaModePos2.val+=3 +│ - spstr vaModeList2.txt,tTmp.txt,"?",3 +│ - if(tTmp.txt=="") +│ - { +│ - vis cModeNext,0 +│ - }else +│ - { +│ - vis cModeNext,1 +│ - } +│ - cMode1.pco=defaultFontColor +│ - cMode2.pco=defaultFontColor +│ - cMode3.pco=defaultFontColor +│ - if(cMode1.txt==vaModeCur.txt) +│ - { +│ - cMode1.pco=1374 +│ - } +│ - if(cMode2.txt==vaModeCur.txt) +│ - { +│ - cMode2.pco=1374 +│ - } +│ - if(cMode3.txt==vaModeCur.txt) +│ - { +│ - cMode3.pco=1374 +│ - } +│ - +│ -Button dMode1 +│ +Text tMRIcon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos3.val-3 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType3.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 +│ - +│ -Button dMode2 +│ +Text tMainIcon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ Text : +│ - Max. Text Size : 40 +│ + Max. Text Size : 10 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos3.val-2 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType3.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 +│ - +│ -Button dMode3 +│ +Text tMainIconAlt +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 10 +│ + +│ +Text tMainText +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 10 +│ + +│ +Text tMainTextAlt +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 10 +│ + +│ +Text tNotifyHead +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 35 +│ + +│ +Text tNotifyText +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - State : unpressed +│ + Associated Keyboard : none +│ + Text : +│ + Max. Text Size : 35 +│ + +│ +Text tTime +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text : 21:32 +│ + Max. Text Size : 15 +│ + +│ +Text tTimeAdd +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ Text : +│ Max. Text Size : 40 +│ +│ - Events +│ - Touch Press Event +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - sys2=vaModePos3.val-1 +│ - covx sys2,tTmp.txt,0,0 +│ - tSend.txt+="mode-"+vaType3.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 +│ - +│ -Button dModeNext │ +Picture p0 │ Attributes │ Scope : local │ Dragging : 0 │ Disable release event after dragging: 0 │ Send Component ID : disabled -│ - Position : 50 -│ - Upper range limit : 100 -│ - Lower range limit : 0 +│ - State : unpressed +│ - Text :  +│ - Max. Text Size : 3 │ -│ -Slider h5 -│ +Slider hVolume -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Position : 50 -│ Upper range limit : 100 -│ Lower range limit : 0 -│ -│ + Events -│ + Touch Release Event -│ + tmCooldown.en=1 -│ + tmCooldown.tim=800 -│ + // event,buttonPress2,internalNameEntity,volumeSlider,50 -│ + //craft command -│ + tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -│ + covx hVolume.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 -│ + -│ 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,bNext" -│ + tSend.txt="event,buttonPress2,cardMedia,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 -│ @@ -367,15 +468,15 @@ -│ Send Component ID : disabled -│ State : unpressed -│ Text :  -│ Max. Text Size : 10 -│ -│ Events -│ Touch Press Event -│ - tSend.txt="event,buttonPress2,cardAlarm," -│ + tSend.txt="event,buttonPress2,cardMedia," -│ if(bPrev.txt=="") -│ { -│ tSend.txt+="bUp" -│ }else -│ { -│ tSend.txt+="bPrev" -│ } -│ @@ -420,82 +521,23 @@ -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ -│ Events -│ Touch Press Event -│ click bPrev,1 -│ -│ -Timer tm0 -│ +Timer tmCooldown +│ - Events +│ - Touch Press Event +│ - spstr vaModeList3.txt,tTmp.txt,"?",vaModePos3.val +│ - if(tTmp.txt=="") +│ - { +│ - vaModePos3.val=0 +│ - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val +│ - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 +│ - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 +│ - } +│ - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val +│ - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 +│ - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 +│ - vaModePos3.val+=3 +│ - spstr vaModeList3.txt,tTmp.txt,"?",3 +│ - if(tTmp.txt=="") +│ - { +│ - vis dModeNext,0 +│ - }else +│ - { +│ - vis dModeNext,1 +│ - } +│ - dMode1.pco=defaultFontColor +│ - dMode2.pco=defaultFontColor +│ - dMode3.pco=defaultFontColor +│ - if(dMode1.txt==vaModeCur.txt) +│ - { +│ - dMode1.pco=1374 +│ - } +│ - if(dMode2.txt==vaModeCur.txt) +│ - { +│ - dMode2.pco=1374 +│ - } +│ - if(dMode3.txt==vaModeCur.txt) +│ - { +│ - dMode3.pco=1374 +│ - } +│ - +│ -Timer tmCooldown +│ +Timer tm0 │ Attributes │ Scope : local -│ Period (ms): 100 -│ - Enabled : yes -│ + Enabled : no +│ - Period (ms): 100 +│ - Enabled : no +│ + Period (ms): 50 +│ + Enabled : yes │ │ Events │ Timer Event -│ - sys0=h0.val+t0Speed.val -│ - if(sys0>h0.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(sys0-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 +│ ├── encoding +│ │ @@ -1 +1 @@ +│ │ -utf-8 +│ │ +us-ascii +├── tmSerial.txt │ @@ -118,15 +118,15 @@ │ Text tMsg3 │ Attributes @@ -2557,21 +2097,3 @@ │ crcputs sys0,2 │ crcputs tSend.txt,0 │ //send cmd -├── p0.txt -│ @@ -351,15 +351,15 @@ -│ Text tTime -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : 21:32 -│ + Text : 21:32 -│ Max. Text Size : 15 -│ -│ Text tTimeAdd -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 diff --git a/HMI/US/portrait/diff-filtered.txt b/HMI/US/portrait/diff-filtered.txt index e0de14a8..c003a7bd 100644 --- a/HMI/US/portrait/diff-filtered.txt +++ b/HMI/US/portrait/diff-filtered.txt @@ -1,878 +1,13 @@ -+++ /dev/fd/62 2022-10-30 13:59:21.643104102 +0000 ++++ /dev/fd/62 2022-10-30 14:26:53.333331299 +0000 +++1,9 @@ ++ ++ ++ness.txt ++on.txt ++1.txt +.txt -++1,8 @@ -+pupThermo -+pupInSel -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Locked : no -+ Swide up page ID : disabled -+3 +20,31 @@ -+ tIcon1.txt=pageIcons.tTmp3.txt -+ vis p0,0 -+ vis tSend,0 -+ vis tTmp,0 -+ vis tInstruction,0 -+ vis tId,0 -+ vis bModeNext,0 -+ vis cModeNext,0 -+ vis dModeNext,0 -+ //page open event -+ // event,pageOpenDetail,typeOfPage,tEntityName -+ // craft command -+ tSend.txt="event,pageOpenDetail,popupThermo,"+entn.txt -+ tSend.txt="event,pageOpenDetail,popupInSel,"+entn.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 -+ popupThermo.bco=defaultBcoColor -+ for(sys0=0;sys0<43;sys0++) -+ popupInSel.bco=defaultBcoColor -+ for(sys0=0;sys0<34;sys0++) -+ { -+ if(b[sys0].type==98||b[sys0].type==116) -+ { -+ b[sys0].bco=defaultBcoColor -+ b[sys0].pco=defaultFontColor -+ } -+ if(b[sys0].type==53&&defaultBcoColor==0) -+107 +102,31 @@ + -+e (string) vaModeCur -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 40 -+ -+e (string) vaModeCur2 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 40 -+ -+e (string) vaModeCur3 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 40 -+ -+e (string) vaModeList -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 400 -+ -+e (string) vaModeList2 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 400 -+ -+e (string) vaModeList3 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 400 -+ -+e (int32) vaModePos -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) vaModePos2 -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) vaModePos3 -+ributes -+ Scope: local -+ Value: 0 -+ -+e (string) vaType -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+e (string) vaType2 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+e (string) vaType3 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+ading1 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 25 -+ -+ading2 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 25 -+ -+ading3 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 25 -+ -+ntity -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+14 +186,44 @@ -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos.val-12 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType.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 -+ -+bMode10 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos.val-3 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType.txt+","+tTmp.txt -+ //send calc crc -+ btlen tSend.txt,sys0 -+ crcrest 1,0xffff // reset CRC -+ crcputh 55 bb -+15 +231,15 @@ -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+bMode2 -+bMode11 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+15 +261,15 @@ -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+bMode3 -+bMode12 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+337 +291,354 @@ -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+bModeNext -+bMode2 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ Max. Text Size : 3 -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //if(bMode3.txt=="") -+ spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val -+ if(tTmp.txt=="") -+ { -+ vaModePos.val=0 -+ spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -+ spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -+ spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -+ } -+ spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -+ spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -+ spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -+ vaModePos.val+=3 -+ spstr vaModeList.txt,tTmp.txt,"?",3 -+ if(tTmp.txt=="") -+ { -+ vis bModeNext,0 -+ }else -+ { -+ vis bModeNext,1 -+ } -+ bMode1.pco=defaultFontColor -+ bMode2.pco=defaultFontColor -+ bMode3.pco=defaultFontColor -+ if(bMode1.txt==vaModeCur.txt) -+ { -+ bMode1.pco=1374 -+ } -+ if(bMode2.txt==vaModeCur.txt) -+ { -+ bMode2.pco=1374 -+ } -+ if(bMode3.txt==vaModeCur.txt) -+ { -+ bMode3.pco=1374 -+ } -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos.val-11 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType.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 -+ -+cMode1 -+bMode3 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos2.val-3 -+ sys2=vaModePos.val-10 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt -+ tSend.txt+="mode-"+vaType.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 -+ -+cMode2 -+bMode4 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos2.val-2 -+ sys2=vaModePos.val-9 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt -+ tSend.txt+="mode-"+vaType.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 -+ -+cMode3 -+bMode5 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos2.val-1 -+ sys2=vaModePos.val-8 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt -+ tSend.txt+="mode-"+vaType.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 -+ -+cModeNext -+bMode6 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ Max. Text Size : 3 -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ spstr vaModeList2.txt,tTmp.txt,"?",vaModePos2.val -+ if(tTmp.txt=="") -+ { -+ vaModePos2.val=0 -+ spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val -+ spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 -+ spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 -+ } -+ spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val -+ spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 -+ spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 -+ vaModePos2.val+=3 -+ spstr vaModeList2.txt,tTmp.txt,"?",3 -+ if(tTmp.txt=="") -+ { -+ vis cModeNext,0 -+ }else -+ { -+ vis cModeNext,1 -+ } -+ cMode1.pco=defaultFontColor -+ cMode2.pco=defaultFontColor -+ cMode3.pco=defaultFontColor -+ if(cMode1.txt==vaModeCur.txt) -+ { -+ cMode1.pco=1374 -+ } -+ if(cMode2.txt==vaModeCur.txt) -+ { -+ cMode2.pco=1374 -+ } -+ if(cMode3.txt==vaModeCur.txt) -+ { -+ cMode3.pco=1374 -+ } -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos.val-7 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType.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 -+ -+dMode1 -+bMode7 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos3.val-3 -+ sys2=vaModePos.val-6 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -+ tSend.txt+="mode-"+vaType.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 -+ -+dMode2 -+bMode8 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos3.val-2 -+ sys2=vaModePos.val-5 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -+ tSend.txt+="mode-"+vaType.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 -+ -+dMode3 -+bMode9 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos3.val-1 -+ sys2=vaModePos.val-4 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -+ tSend.txt+="mode-"+vaType.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 -+ -+dModeNext -+bModeNext -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ Max. Text Size : 3 -+ -+nts -+ Touch Press Event -+ spstr vaModeList3.txt,tTmp.txt,"?",vaModePos3.val -+ spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val -+ if(tTmp.txt=="") -+ { -+ vaModePos3.val=0 -+ spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val -+ spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 -+ spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 -+ } -+ spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val -+ spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 -+ spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 -+ vaModePos3.val+=3 -+ spstr vaModeList3.txt,tTmp.txt,"?",3 -+ vaModePos.val=0 -+ spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -+ spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -+ spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -+ } -+ spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val -+ spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 -+ spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 -+ spstr vaModeList.txt,bMode4.txt,"?",vaModePos.val+3 -+ spstr vaModeList.txt,bMode5.txt,"?",vaModePos.val+4 -+ spstr vaModeList.txt,bMode6.txt,"?",vaModePos.val+5 -+ spstr vaModeList.txt,bMode7.txt,"?",vaModePos.val+6 -+ spstr vaModeList.txt,bMode8.txt,"?",vaModePos.val+7 -+ spstr vaModeList.txt,bMode9.txt,"?",vaModePos.val+8 -+ spstr vaModeList.txt,bMode10.txt,"?",vaModePos.val+9 -+ spstr vaModeList.txt,bMode11.txt,"?",vaModePos.val+10 -+ spstr vaModeList.txt,bMode12.txt,"?",vaModePos.val+11 -+ vaModePos.val+=12 -+ spstr vaModeList.txt,tTmp.txt,"?",12 -+ if(tTmp.txt=="") -+ { -+ vis dModeNext,0 -+ vis bModeNext,0 -+ }else -+ { -+ vis dModeNext,1 -+ vis bModeNext,1 -+ } -+ bMode1.pco=defaultFontColor -+ bMode2.pco=defaultFontColor -+ bMode3.pco=defaultFontColor -+ bMode4.pco=defaultFontColor -+ bMode5.pco=defaultFontColor -+ bMode6.pco=defaultFontColor -+ bMode7.pco=defaultFontColor -+ bMode8.pco=defaultFontColor -+ bMode9.pco=defaultFontColor -+ bMode10.pco=defaultFontColor -+ bMode11.pco=defaultFontColor -+ bMode12.pco=defaultFontColor -+ if(bMode1.txt==vaModeCur.txt) -+ { -+ bMode1.pco=1374 -+ } -+ if(bMode2.txt==vaModeCur.txt) -+ { -+ bMode2.pco=1374 -+ } -+ if(bMode3.txt==vaModeCur.txt) -+ { -+ bMode3.pco=1374 -+ } -+ if(bMode4.txt==vaModeCur.txt) -+ { -+ bMode4.pco=1374 -+ } -+ if(bMode5.txt==vaModeCur.txt) -+ { -+ bMode5.pco=1374 -+ } -+ dMode1.pco=defaultFontColor -+ dMode2.pco=defaultFontColor -+ dMode3.pco=defaultFontColor -+ if(dMode1.txt==vaModeCur.txt) -+ if(bMode6.txt==vaModeCur.txt) -+ { -+ dMode1.pco=1374 -+ bMode6.pco=1374 -+ } -+ if(dMode2.txt==vaModeCur.txt) -+ if(bMode7.txt==vaModeCur.txt) -+ { -+ dMode2.pco=1374 -+ bMode7.pco=1374 -+ } -+ if(dMode3.txt==vaModeCur.txt) -+ if(bMode8.txt==vaModeCur.txt) -+ { -+ dMode3.pco=1374 -+ bMode8.pco=1374 -+ } -+ if(bMode9.txt==vaModeCur.txt) -+ { -+ bMode9.pco=1374 -+ } -+ if(bMode10.txt==vaModeCur.txt) -+ { -+ bMode10.pco=1374 -+ } -+ if(bMode11.txt==vaModeCur.txt) -+ { -+ bMode11.pco=1374 -+ } -+ if(bMode12.txt==vaModeCur.txt) -+ { -+ bMode12.pco=1374 -+ } -+ -+mCooldown -+ributes -+ Scope : local -+ Period (ms): 100 -+ Enabled : no -+124 +698,106 @@ -+ ucopy strCommand.txt,4,payloadLength-5,0 -+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default) -+ spstr strCommand.txt,tInstruction.txt,"~",0 -+ spstr strCommand.txt,tTmp.txt,"~",1 -+ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt) -+ { -+ // change icon -+ spstr strCommand.txt,tIcon1.txt,"~",2 -+ //spstr strCommand.txt,tIcon1.txt,"~",2 -+ vis tIcon1,1 -+ // change icon color -+ spstr strCommand.txt,tTmp.txt,"~",3 -+ covx tTmp.txt,sys0,0,0 -+ tIcon1.pco=sys0 -+ //mode 1 heading -+ spstr strCommand.txt,heading1.txt,"~",4 -+ //mode 1 type -+ spstr strCommand.txt,vaType.txt,"~",5 -+ spstr strCommand.txt,vaType.txt,"~",4 -+ //current mode -+ spstr strCommand.txt,vaModeCur.txt,"~",6 -+ spstr strCommand.txt,vaModeCur.txt,"~",5 -+ //mode list -+ spstr strCommand.txt,vaModeList.txt,"~",7 -+ spstr strCommand.txt,vaModeList.txt,"~",6 -+ if(vaModeList.txt=="") -+ { -+ vis bMode1,0 -+ vis bMode2,0 -+ vis bMode3,0 -+ vis bMode4,0 -+ vis bMode5,0 -+ vis bMode6,0 -+ vis bMode7,0 -+ vis bMode8,0 -+ vis bMode9,0 -+ vis bMode10,0 -+ vis bMode11,0 -+ vis bMode12,0 -+ vis bModeNext,0 -+ } -+ if(bMode1.txt=="") -+ { -+ click bModeNext,1 -+ click bModeNext,0 -+ } -+ bMode1.pco=defaultFontColor -+ bMode2.pco=defaultFontColor -+ bMode3.pco=defaultFontColor -+ bMode4.pco=defaultFontColor -+ bMode5.pco=defaultFontColor -+ bMode6.pco=defaultFontColor -+ bMode7.pco=defaultFontColor -+ bMode8.pco=defaultFontColor -+ bMode9.pco=defaultFontColor -+ bMode10.pco=defaultFontColor -+ bMode11.pco=defaultFontColor -+ bMode12.pco=defaultFontColor -+ if(bMode1.txt==vaModeCur.txt) -+ { -+ bMode1.pco=1374 -+ } -+ if(bMode2.txt==vaModeCur.txt) -+ { -+ bMode2.pco=1374 -+ } -+ if(bMode3.txt==vaModeCur.txt) -+ { -+ bMode3.pco=1374 -+ } -+ //mode 2 heading -+ spstr strCommand.txt,heading2.txt,"~",8 -+ //mode 2 type -+ spstr strCommand.txt,vaType2.txt,"~",9 -+ //current mode -+ spstr strCommand.txt,vaModeCur2.txt,"~",10 -+ //mode list -+ spstr strCommand.txt,vaModeList2.txt,"~",11 -+ if(vaModeList2.txt=="") -+ if(bMode4.txt==vaModeCur.txt) -+ { -+ vis cMode1,0 -+ vis cMode2,0 -+ vis cMode3,0 -+ vis cModeNext,0 -+ bMode4.pco=1374 -+ } -+ if(cMode1.txt=="") -+ if(bMode5.txt==vaModeCur.txt) -+ { -+ click cModeNext,1 -+ click cModeNext,0 -+ bMode5.pco=1374 -+ } -+ cMode1.pco=defaultFontColor -+ cMode2.pco=defaultFontColor -+ cMode3.pco=defaultFontColor -+ if(cMode1.txt==vaModeCur2.txt) -+ if(bMode6.txt==vaModeCur.txt) -+ { -+ cMode1.pco=1374 -+ bMode6.pco=1374 -+ } -+ if(cMode2.txt==vaModeCur2.txt) -+ if(bMode7.txt==vaModeCur.txt) -+ { -+ cMode2.pco=1374 -+ bMode7.pco=1374 -+ } -+ if(cMode3.txt==vaModeCur2.txt) -+ { -+ cMode3.pco=1374 -+ } -+ //mode 3 heading -+ spstr strCommand.txt,heading3.txt,"~",12 -+ //mode 3 type -+ spstr strCommand.txt,vaType3.txt,"~",13 -+ //current mode -+ spstr strCommand.txt,vaModeCur3.txt,"~",14 -+ //mode list -+ spstr strCommand.txt,vaModeList3.txt,"~",15 -+ if(vaModeList3.txt=="") -+ if(bMode8.txt==vaModeCur.txt) -+ { -+ vis dMode1,0 -+ vis dMode2,0 -+ vis dMode3,0 -+ vis dModeNext,0 -+ bMode8.pco=1374 -+ } -+ if(dMode1.txt=="") -+ if(bMode9.txt==vaModeCur.txt) -+ { -+ click dModeNext,1 -+ click dModeNext,0 -+ bMode9.pco=1374 -+ } -+ dMode1.pco=defaultFontColor -+ dMode2.pco=defaultFontColor -+ dMode3.pco=defaultFontColor -+ if(dMode1.txt==vaModeCur3.txt) -+ if(bMode10.txt==vaModeCur.txt) -+ { -+ dMode1.pco=1374 -+ bMode10.pco=1374 -+ } -+ if(dMode2.txt==vaModeCur3.txt) -+ if(bMode11.txt==vaModeCur.txt) -+ { -+ dMode2.pco=1374 -+ bMode11.pco=1374 -+ } -+ if(dMode3.txt==vaModeCur3.txt) -+ if(bMode12.txt==vaModeCur.txt) -+ { -+ dMode3.pco=1374 -+ bMode12.pco=1374 -+ } -+ } -+ if(tInstruction.txt=="time") -+ { -+ // get set time to global variable -+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 -+ } -+own1.txt ++lider1.txt +14 +116,20 @@ +e (string) strCommand + Max. Text Size: 500 @@ -985,129 +120,99 @@ + mSpecial +,14 +2079,163 @@ + if(type5.txt=="button"||type5.txt=="input_sel") -+ext.txt -++1,8 @@ -+rdPower -+rdMedia -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled ++0.txt ++6 +1,397 @@ ++pupThermo ++reensaver + Locked : no + Swide up page ID : disabled -+43 +14,444 @@ ++ Swide down page ID : disabled ++ Swide left page ID : disabled ++ Swide right page ID : disabled + Preinitialize Event + dim=dimValueNormal ++ //get entitiy name ++ tEntity.txt=pageIcons.tTmp1.txt ++ //get entity id ++ entn.txt=pageIcons.tTmp2.txt ++ tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 -+ vis tInstruction,0 + vis tTmp,0 ++ vis tInstruction,0 + vis tId,0 -+ vis t5,0 -+ vis bPrev,0 -+ vis bNext,0 -+ tsw h0,0 -+ tsw h1,0 -+ tsw h2,0 -+ tsw h3,0 -+ tsw h4,0 -+ tsw h5,0 -+ vis h0,0 -+ vis h1,0 -+ vis h2,0 -+ vis h3,0 -+ vis h4,0 -+ vis h5,0 -+ vis t0Icon,0 -+ vis t1Icon,0 -+ vis t2Icon,0 -+ vis t3Icon,0 -+ vis t4Icon,0 -+ vis t5Icon,0 -+ cardPower.bco=defaultBcoColor ++ vis bModeNext,0 ++ vis cModeNext,0 ++ vis dModeNext,0 ++ //page open event ++ // event,pageOpenDetail,typeOfPage,tEntityName ++ // craft command ++ tSend.txt="event,pageOpenDetail,popupThermo,"+entn.txt ++ printh 55 bb ++ prints sys0,2 ++ prints tSend.txt,0 ++ prints crcval,2 ++ popupThermo.bco=defaultBcoColor + for(sys0=0;sys0<43;sys0++) -+ cardMedia.bco=defaultBcoColor -+ for(sys0=0;sys0<34;sys0++) ++ 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=="") + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } -+ if(defaultBcoColor==0) ++ if(b[sys0].type==53&&defaultBcoColor==0) + { -+ if(b[sys0].type==1) -+ { -+ b[sys0].pic=19 -+ b[sys0].pic1=19 -+ b[sys0].pic2=15 -+ } ++ b[sys0].pic=10 ++ b[sys0].pic2=11 + } ++ vis tAMPM,0 + } -+ if(defaultBcoColor==0) -+ { -+ hVolume.pic=14 -+ hVolume.pic1=13 -+ hVolume.pic2=15 -+ } ++ tDate.txt=pageIcons.vaDate.txt ++ dim=dimValue ++ vis tSend,0 ++ //page open event ++ // clear weather elements, to keep example content in HMI + -+e (string) strCommand +e (string) entn +ributes + Scope : local + Text : -+ Max. Text Size: 275 -+ -+e (int32) t0Speed -+ributes -+ Scope: local -+ Value: 0 + Max. Text Size: 80 + -+e (int32) t1Speed ++e (int32) mode +ributes + Scope: local -+ Value: 0 -+ -+e (int32) t2Speed -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) t3Speed -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) t4Speed -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) t5Speed -+ributes -+ Scope: local -+ Value: 0 -+ -+e (string) tId +e (string) strCommand +ributes + Scope : local + Text : -+ Max. Text Size: 20 -+ Max. Text Size: 750 ++ Max. Text Size: 500 ++ Max. Text Size: 200 + -+e (string) tInstruction -+e (string) tSend ++e (string) tId +ributes + Scope : local + Text : + Max. Text Size: 20 -+ Max. Text Size: 200 ++ Max. Text Size: 25 ++ ++e (string) tInstruction ++ributes ++ Scope : local ++ Text : ++ Max. Text Size: 20 ++ Max. Text Size: 50 + +e (string) tSend -+e (string) vaMenu +ributes + Scope : local + Text : @@ -1115,54 +220,181 @@ + Max. Text Size: 50 + +e (string) tTmp -+e (string) vaSpeakerList ++ Scope : local ++ Text : ++ Max. Text Size: 80 ++ ++e (string) vaModeCur +ributes + Scope : local + Text : -+ Max. Text Size: 10 -+ Max. Text Size: 400 ++ Max. Text Size: 40 + -+Icon -+e (int32) vaSpeakerPos -+ Text :  -+ Max. Text Size : 5 ++e (string) vaModeCur2 ++ributes ++ Scope : local ++ Text : ++ Max. Text Size: 40 ++ Max. Text Size: 50 ++ ++e (string) vaModeCur3 ++e (int32) vaTap ++ributes ++ Scope : local ++ Text : ++ Max. Text Size: 40 ++e (int32) xc1 ++ Scope: local ++ Value: 0 ++e (string) vaModeList2 ++e (int32) xc2 + Scope: local + Value: 0 + -+u -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 20 -+ Text :  -+ // event,buttonPress2,entn,media-back -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ tSend.txt+="media-back" -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ ++e (string) vaModeList3 ++e (int32) xcR ++ributes ++ Scope : local ++ Text : ++ Max. Text Size: 400 ++ Scope: local ++ Value: 0 ++e (int32) yc1 ++e (int32) vaModePos2 ++e (int32) yc2 ++ributes ++ Scope: local ++ Value: 0 ++ ++e (int32) vaModePos3 ++e (int32) ycR ++ributes ++ Scope: local ++ Value: 0 ++ ++e (string) vaType ++0 ++ Max. Text Size: 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none -+ Text :  -+ Max. Text Size : 5 -+ Text :  ++ Text : | + Max. Text Size : 10 -+Icon ++ ++e (string) vaType2 ++MPM ++ributes ++ Scope : local ++ Text : ++ Max. Text Size: 20 ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : PM ++ Max. Text Size : 10 ++ ++e (string) vaType3 ++ate ++ributes ++ Scope : local ++ Text : ++ Max. Text Size: 20 ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : Tuesday, 08. March 2022 ++ Max. Text Size : 40 ++ ++ading1 ++1Icon ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 25 ++ Max. Text Size : 10 ++ ++ading2 ++2Icon ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 25 ++ Max. Text Size : 10 ++ ++ading3 ++3Icon ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 25 ++ Max. Text Size : 10 ++4Icon ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 25 ++ Max. Text Size : 5 ++ ++con1 ++orecast1 ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 10 ++ ++ p0 ++orecast1Val ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 10 ++ ++b0 ++orecast2 ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Text :  ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 10 ++ +nts + Touch Press Event -+ hVolume.val=hVolume.val-1 -+ // event,buttonPress2,internalNameEntity,volumeSlider,50 -+ //craft command -+ tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -+ covx hVolume.val,tTmp.txt,0,0 -+ tSend.txt+=tTmp.txt ++ tSend.txt="event,buttonPress2,popupLight,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC @@ -1175,24 +407,40 @@ + prints tSend.txt,0 + prints crcval,2 + ++bMode1 ++orecast2Val ++ributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled ++ State : unpressed + Associated Keyboard : none -+ Text :  -+ Max. Text Size : 5 -+ Text :  ++ Text : ++ Max. Text Size : 40 + Max. Text Size : 10 + -+u +nts + Touch Press Event -+ // event,buttonPress2,entn,media-next + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," -+ tSend.txt+="media-next" ++ sys2=vaModePos.val-3 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType.txt+","+tTmp.txt ++ //send calc crc ++ btlen tSend.txt,sys0 ++ crcrest 1,0xffff // reset CRC ++ crcputh 55 bb ++ crcputs sys0,2 ++orecast3 ++ Associated Keyboard : none ++ Max. Text Size : 10 ++ tSend.txt+="mode-"+vaType.txt+","+tTmp.txt ++orecast3Val ++ Associated Keyboard : none ++ Max. Text Size : 10 ++ tSend.txt+="mode-"+vaType.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC @@ -1205,91 +453,273 @@ + prints tSend.txt,0 + prints crcval,2 + ++bModeNext ++orecast4 ++ributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 20 -+ Text :  -+ Max. Text Size : 10 -+ -+Icon -+nts -+ Touch Press Event -+ hVolume.val=hVolume.val+1 -+ // event,buttonPress2,internalNameEntity,volumeSlider,50 -+ //craft command -+ tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -+ covx hVolume.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 -+ -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : î ° -+ Max. Text Size : 5 -+ Text :  -+ Max. Text Size : 10 -+ -+u -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 20 -+ Text :  -+ Max. Text Size : 10 -+Icon -+nts -+ Touch Press Event -+ // event,buttonPress2,entn,media-next -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ tSend.txt+="media-OnOff" -+ //send calc crc -+ btlen tSend.txt,sys0 -+ crcrest 1,0xffff // reset CRC -+ crcputh 55 bb -+ crcputs sys0,2 -+ -+ Associated Keyboard : none -+ Text : î ° -+ Max. Text Size : 5 ++ State : unpressed + Text :  ++ Max. Text Size : 3 ++ Associated Keyboard : none ++ Text : + Max. Text Size : 10 + -+u +nts + Touch Press Event -+ //speaker -+ tSpeaker.pco=65535 -+ spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val -+ vaSpeakerPos.val+=1 -+ if(tSpeaker.txt=="") ++ //if(bMode3.txt=="") ++ spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val ++ if(tTmp.txt=="") + { -+ vaSpeakerPos.val=0 -+ spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val ++ vaModePos.val=0 ++ spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val ++ spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 ++ spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 ++ } ++ spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val ++ spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 ++ spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 ++ vaModePos.val+=3 ++ spstr vaModeList.txt,tTmp.txt,"?",3 ++ if(tTmp.txt=="") ++ { ++ vis bModeNext,0 ++ }else ++ { ++ vis bModeNext,1 ++ } ++ bMode1.pco=defaultFontColor ++ bMode2.pco=defaultFontColor ++ bMode3.pco=defaultFontColor ++ if(bMode1.txt==vaModeCur.txt) ++ { ++ bMode1.pco=1374 ++ } ++ if(bMode2.txt==vaModeCur.txt) ++ { ++ bMode2.pco=1374 ++ } ++ if(bMode3.txt==vaModeCur.txt) ++ { ++ bMode3.pco=1374 + } + -+uthor ++cMode1 ++orecast4Val ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 40 ++ Max. Text Size : 10 ++ ++nts ++ Touch Press Event ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ sys2=vaModePos2.val-3 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType2.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 ++ ++cMode2 ++con1 ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 40 ++ Max. Text Size : 5 ++ ++nts ++ Touch Press Event ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ sys2=vaModePos2.val-2 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType2.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 ++ ++cMode3 ++con2 ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 40 ++ Max. Text Size : 5 ++ ++nts ++ Touch Press Event ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ sys2=vaModePos2.val-1 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType2.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 ++ ++cModeNext ++R ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Text :  ++ Max. Text Size : 3 ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 10 ++ ++nts ++ Touch Press Event ++ spstr vaModeList2.txt,tTmp.txt,"?",vaModePos2.val ++ if(tTmp.txt=="") ++ { ++ vaModePos2.val=0 ++ spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val ++ spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 ++ spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 ++ } ++ spstr vaModeList2.txt,cMode1.txt,"?",vaModePos2.val ++ spstr vaModeList2.txt,cMode2.txt,"?",vaModePos2.val+1 ++ spstr vaModeList2.txt,cMode3.txt,"?",vaModePos2.val+2 ++ vaModePos2.val+=3 ++ spstr vaModeList2.txt,tTmp.txt,"?",3 ++ if(tTmp.txt=="") ++ { ++ vis cModeNext,0 ++ }else ++ { ++ vis cModeNext,1 ++ } ++ cMode1.pco=defaultFontColor ++ cMode2.pco=defaultFontColor ++ cMode3.pco=defaultFontColor ++ if(cMode1.txt==vaModeCur.txt) ++ { ++ cMode1.pco=1374 ++ } ++ if(cMode2.txt==vaModeCur.txt) ++ { ++ cMode2.pco=1374 ++ } ++ if(cMode3.txt==vaModeCur.txt) ++ { ++ cMode3.pco=1374 ++ } ++ ++dMode1 ++RIcon ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 40 ++ Max. Text Size : 10 ++ ++nts ++ Touch Press Event ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ sys2=vaModePos3.val-3 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType3.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 ++ ++dMode2 ++ainIcon ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 40 ++ Max. Text Size : 10 ++ ++nts ++ Touch Press Event ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ sys2=vaModePos3.val-2 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt ++ crcputs tSend.txt,0 ++ //send cmd ++ printh 55 bb ++ prints sys0,2 ++ prints tSend.txt,0 ++ prints crcval,2 ++ ++dMode3 ++ainIconAlt +ributes + Scope : local + Dragging : 0 @@ -1297,193 +727,77 @@ + Send Component ID : disabled + Associated Keyboard : none + Text : -+ Max. Text Size : 20 -+ Max. Text Size : 50 ++ Max. Text Size : 10 + -+Icon -+eading ++ainText ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 10 ++ ++ainTextAlt ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 10 ++ ++otifyHead ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 35 ++ ++otifyText ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ State : unpressed ++ Associated Keyboard : none ++ Text : ++ Max. Text Size : 35 ++ ++ime ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++ Associated Keyboard : none ++ Text : 21:32 ++ Max. Text Size : 15 ++ ++imeAdd +ributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none -+ Text : î´½ -+ Max. Text Size : 5 + Text : + Max. Text Size : 40 + -+u -+con -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 20 -+ Max. Text Size : 10 -+ -+Icon +nts -+ Touch Release Event -+ if(vaMenu.txt!="") -+ { -+ tSend.txt="event,buttonPress2,"+vaMenu.txt+",button" -+ //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 -+ } -+ -+d -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text :  -+ Max. Text Size : 5 -+ Text : -+ Max. Text Size : 20 -+ -+u -+nstruction -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 20 -+ -+eading -+layPause -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text :  -+ Max. Text Size : 10 -+ome -+ // event,buttonPress2,entn,media-pause -+ tSend.txt+="media-pause" -+peaker -+ Associated Keyboard : none -+ Max. Text Size : 20 -+ -+ p0 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Max. Text Size : 50 -+h0 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ -+h1 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ -+h2 -+ // event,buttonPress2,entn,media-next -+ tSend.txt+="speaker-sel,"+tSpeaker.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 -+ -+itle -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 50 -+ -+h3 -+mp -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 10 -+ -+h4 -+ p0 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ -+h5 -+hVolume -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ -+nts -+ Touch Release Event -+ tmCooldown.en=1 -+ tmCooldown.tim=800 -+ // event,buttonPress2,internalNameEntity,volumeSlider,50 ++ Touch Press Event + //craft command -+ tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -+ covx hVolume.val,tTmp.txt,0,0 -+ tSend.txt+=tTmp.txt ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ sys2=vaModePos3.val-1 ++ covx sys2,tTmp.txt,0,0 ++ tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC @@ -1496,123 +810,72 @@ + prints tSend.txt,0 + prints crcval,2 + -+bNext ++dModeNext ++ p0 +ributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed -+ Text :  -+ Max. Text Size : 10 ++ Text :  ++ Max. Text Size : 3 + +nts + Touch Press Event -+ tSend.txt="event,buttonPress2,cardAlarm,bNext" -+ tSend.txt="event,buttonPress2,cardMedia,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 -+15 +468,15 @@ -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ Max. Text Size : 10 -+ -+nts -+ Touch Press Event -+ tSend.txt="event,buttonPress2,cardAlarm," -+ tSend.txt="event,buttonPress2,cardMedia," -+ if(bPrev.txt=="") ++ spstr vaModeList3.txt,tTmp.txt,"?",vaModePos3.val ++ if(tTmp.txt=="") + { -+ tSend.txt+="bUp" ++ vaModePos3.val=0 ++ spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val ++ spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 ++ spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 ++ } ++ spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val ++ spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 ++ spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 ++ vaModePos3.val+=3 ++ spstr vaModeList3.txt,tTmp.txt,"?",3 ++ if(tTmp.txt=="") ++ { ++ vis dModeNext,0 + }else + { -+ tSend.txt+="bPrev" ++ vis dModeNext,1 ++ } ++ dMode1.pco=defaultFontColor ++ dMode2.pco=defaultFontColor ++ dMode3.pco=defaultFontColor ++ if(dMode1.txt==vaModeCur.txt) ++ { ++ dMode1.pco=1374 ++ } ++ if(dMode2.txt==vaModeCur.txt) ++ { ++ dMode2.pco=1374 ++ } ++ if(dMode3.txt==vaModeCur.txt) ++ { ++ dMode3.pco=1374 + } -+82 +521,23 @@ -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ -+nts -+ Touch Press Event -+ click bPrev,1 + -+m0 +mCooldown ++m0 +ributes + Scope : local + Period (ms): 100 -+ Enabled : yes + Enabled : no ++ Period (ms): 50 ++ Enabled : yes + +nts + Timer Event -+ sys0=h0.val+t0Speed.val -+ if(sys0>h0.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(sys0-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 ++1 +1 @@ ++-8 ++ascii ++Serial.txt +15 +118,15 @@ +sg3 +ributes @@ -1973,23 +1481,11 @@ + // startup event + tSend.txt="event,startup,"+tVersion.txt+",eu" + tSend.txt="event,startup,"+tVersion.txt+",us-p" ++ //send calc crc ++ btlen tSend.txt,sys0 ++ crcrest 1,0xffff // reset CRC ++ crcputh 55 bb ++ crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd -+.txt -+15 +351,15 @@ -+ime -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : 21:32 -+ Text : 21:32 -+ Max. Text Size : 15 -+ -+imeAdd -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 +Binary file (standard input) matches 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 cf3f15e5..00000000 --- a/HMI/US/portrait/n2t-out-visual/arm1.txt +++ /dev/null @@ -1,1499 +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,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(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(bufferPosh0.maxval) { - page popupLight + h0.val=h0.minval } - if(tTmp.txt=="fan") + if(sys0h1.maxval) { - page popupInSel + 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(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + ID : 14 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out-visual/hPosition.txt b/HMI/US/portrait/n2t-out-visual/hPosition.txt new file mode 100644 index 00000000..9c1ea8e7 --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/hPosition.txt @@ -0,0 +1,1029 @@ +Page popupShutter + 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 + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tPosHeading,0 + vis hPosition,0 + vis hTilt,0 + vis bTLeft,0 + vis bTStop,0 + vis bTRight,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupShutter,"+entn.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 + popupShutter.bco=defaultBcoColor + b0.bco=defaultBcoColor + tIcon1.bco=defaultBcoColor + tEntity.bco=defaultBcoColor + tInfo1.bco=defaultBcoColor + tPosHeading.bco=defaultBcoColor + tTiltHeading.bco=defaultBcoColor + bUp1.bco=defaultBcoColor + bStop1.bco=defaultBcoColor + bDown1.bco=defaultBcoColor + bTLeft.bco=defaultBcoColor + bTStop.bco=defaultBcoColor + bTRight.bco=defaultBcoColor + b0.pco=defaultFontColor + tIcon1.pco=defaultFontColor + tEntity.pco=defaultFontColor + tInfo1.pco=defaultFontColor + tPosHeading.pco=defaultFontColor + tTiltHeading.pco=defaultFontColor + bUp1.pco=defaultFontColor + bStop1.pco=defaultFontColor + bDown1.pco=defaultFontColor + bTLeft.pco=defaultFontColor + bTStop.pco=defaultFontColor + bTRight.pco=defaultFontColor + if(defaultBcoColor==0) + { + hTilt.pic=14 + hTilt.pic1=13 + hTilt.pic2=15 + hPosition.pic=14 + hPosition.pic1=13 + hPosition.pic2=15 + } + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + ID : 8 + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) tId + Attributes + ID : 17 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 80 + +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 68 + y coordinate : 48 + Width : 195 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : tEntity1 + Max. Text Size : 25 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + y coordinate : 63 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInfo1 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 68 + y coordinate : 76 + Width : 195 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 38066 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tPosHeading + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 11 + y coordinate : 183 + Width : 114 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : Position + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTiltHeading + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 11 + y coordinate : 335 + Width : 113 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 30 + 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 + +Slider hPosition + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 12 + y coordinate : 213 + Width : 250 + Height : 44 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," + covx hPosition.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 + +Slider hTilt + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 12 + y coordinate : 365 + Width : 250 + Height : 44 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," + covx hTilt.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 + +Button b0 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 264 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,popupShutter,bExit" + //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 bDown1 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 251 + y coordinate : 138 + Width : 60 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",down" + //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 bStop1 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 188 + y coordinate : 138 + Width : 60 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",stop" + //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 bTLeft + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 125 + y coordinate : 291 + Width : 60 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltOpen" + //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 bTRight + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 249 + y coordinate : 291 + Width : 60 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltClose" + //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 bTStop + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 187 + y coordinate : 291 + Width : 60 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltStop" + //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 bUp1 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 125 + y coordinate : 138 + Width : 60 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",up" + //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 + +Timer tmSerial + Attributes + ID : 7 + 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(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out/hPosition.txt b/HMI/US/portrait/n2t-out/hPosition.txt new file mode 100644 index 00000000..9fdce22d --- /dev/null +++ b/HMI/US/portrait/n2t-out/hPosition.txt @@ -0,0 +1,718 @@ +Page popupShutter + 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 + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tPosHeading,0 + vis hPosition,0 + vis hTilt,0 + vis bTLeft,0 + vis bTStop,0 + vis bTRight,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupShutter,"+entn.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 + popupShutter.bco=defaultBcoColor + b0.bco=defaultBcoColor + tIcon1.bco=defaultBcoColor + tEntity.bco=defaultBcoColor + tInfo1.bco=defaultBcoColor + tPosHeading.bco=defaultBcoColor + tTiltHeading.bco=defaultBcoColor + bUp1.bco=defaultBcoColor + bStop1.bco=defaultBcoColor + bDown1.bco=defaultBcoColor + bTLeft.bco=defaultBcoColor + bTStop.bco=defaultBcoColor + bTRight.bco=defaultBcoColor + b0.pco=defaultFontColor + tIcon1.pco=defaultFontColor + tEntity.pco=defaultFontColor + tInfo1.pco=defaultFontColor + tPosHeading.pco=defaultFontColor + tTiltHeading.pco=defaultFontColor + bUp1.pco=defaultFontColor + bStop1.pco=defaultFontColor + bDown1.pco=defaultFontColor + bTLeft.pco=defaultFontColor + bTStop.pco=defaultFontColor + bTRight.pco=defaultFontColor + if(defaultBcoColor==0) + { + hTilt.pic=14 + hTilt.pic1=13 + hTilt.pic2=15 + hPosition.pic=14 + hPosition.pic1=13 + hPosition.pic2=15 + } + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) tId + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Text tEntity + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : tEntity1 + Max. Text Size : 25 + +Text tIcon1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text :  + Max. Text Size : 10 + +Text tInfo1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tPosHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : Position + Max. Text Size : 30 + +Text tTiltHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 30 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Slider hPosition + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," + covx hPosition.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 + +Slider hTilt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," + covx hTilt.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 + +Button b0 + 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,popupShutter,bExit" + //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 bDown1 + 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,"+entn.txt+",down" + //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 bStop1 + 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,"+entn.txt+",stop" + //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 bTLeft + 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,"+entn.txt+",tiltOpen" + //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 bTRight + 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,"+entn.txt+",tiltClose" + //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 bTStop + 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,"+entn.txt+",tiltStop" + //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 bUp1 + 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,"+entn.txt+",up" + //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 + +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 - 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(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + ID : 14 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/n2t-out-visual/hPosition.txt b/HMI/n2t-out-visual/hPosition.txt new file mode 100644 index 00000000..dcb43077 --- /dev/null +++ b/HMI/n2t-out-visual/hPosition.txt @@ -0,0 +1,1029 @@ +Page popupShutter + 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 + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tPosHeading,0 + vis hPosition,0 + vis hTilt,0 + vis bTLeft,0 + vis bTStop,0 + vis bTRight,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupShutter,"+entn.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 + popupShutter.bco=defaultBcoColor + b0.bco=defaultBcoColor + tIcon1.bco=defaultBcoColor + tEntity.bco=defaultBcoColor + tInfo1.bco=defaultBcoColor + tPosHeading.bco=defaultBcoColor + tTiltHeading.bco=defaultBcoColor + bUp1.bco=defaultBcoColor + bStop1.bco=defaultBcoColor + bDown1.bco=defaultBcoColor + bTLeft.bco=defaultBcoColor + bTStop.bco=defaultBcoColor + bTRight.bco=defaultBcoColor + b0.pco=defaultFontColor + tIcon1.pco=defaultFontColor + tEntity.pco=defaultFontColor + tInfo1.pco=defaultFontColor + tPosHeading.pco=defaultFontColor + tTiltHeading.pco=defaultFontColor + bUp1.pco=defaultFontColor + bStop1.pco=defaultFontColor + bDown1.pco=defaultFontColor + bTLeft.pco=defaultFontColor + bTStop.pco=defaultFontColor + bTRight.pco=defaultFontColor + if(defaultBcoColor==0) + { + hTilt.pic=14 + hTilt.pic1=13 + hTilt.pic2=15 + hPosition.pic=14 + hPosition.pic1=13 + hPosition.pic2=15 + } + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + ID : 8 + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) tId + Attributes + ID : 17 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 80 + +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 65 + y coordinate : 48 + Width : 195 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : tEntity1 + Max. Text Size : 25 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 12 + y coordinate : 63 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInfo1 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 65 + y coordinate : 76 + Width : 195 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 38066 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tPosHeading + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 64 + y coordinate : 122 + Width : 188 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : Position + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTiltHeading + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 64 + y coordinate : 231 + Width : 191 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 30 + 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 + +Slider hPosition + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 64 + y coordinate : 152 + Width : 335 + Height : 43 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," + covx hPosition.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 + +Slider hTilt + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 64 + y coordinate : 261 + Width : 335 + Height : 43 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," + covx hTilt.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 + +Button b0 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 397 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,popupShutter,bExit" + //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 bDown1 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 386 + y coordinate : 95 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",down" + //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 bStop1 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 334 + y coordinate : 95 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",stop" + //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 bTLeft + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 282 + y coordinate : 205 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltOpen" + //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 bTRight + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 386 + y coordinate : 205 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltClose" + //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 bTStop + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 334 + y coordinate : 205 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",tiltStop" + //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 bUp1 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 282 + y coordinate : 95 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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,"+entn.txt+",up" + //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 + +Timer tmSerial + Attributes + ID : 7 + 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(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/b0.txt b/HMI/n2t-out-visual/tc0.txt similarity index 100% rename from HMI/n2t-out-visual/b0.txt rename to HMI/n2t-out-visual/tc0.txt diff --git a/HMI/n2t-out-visual/bSendStartup.txt b/HMI/n2t-out-visual/tmSerial.txt similarity index 100% rename from HMI/n2t-out-visual/bSendStartup.txt rename to HMI/n2t-out-visual/tmSerial.txt diff --git a/HMI/n2t-out-visual/vaDate.txt b/HMI/n2t-out-visual/vaDate.txt new file mode 100644 index 00000000..a5989d55 --- /dev/null +++ b/HMI/n2t-out-visual/vaDate.txt @@ -0,0 +1,141 @@ +Page pageIcons + 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 : 65535 + +Variable (string) vaDate + Attributes + ID : 5 + Scope : global + Text : + Max. Text Size: 35 + +Variable (string) vaTime + Attributes + ID : 4 + Scope : global + Text : + Max. Text Size: 15 + +Text tTmp1 + Attributes + ID : 2 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 8 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp2 + Attributes + ID : 3 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 82 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp3 + Attributes + ID : 6 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 154 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + 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 : 479 + Height : 319 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + diff --git a/HMI/n2t-out/bDown2.txt b/HMI/n2t-out/bDown2.txt deleted file mode 100644 index b3197c5b..00000000 --- a/HMI/n2t-out/bDown2.txt +++ /dev/null @@ -1,1264 +0,0 @@ -Page cardThermo - 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 xTempMin1,0 - vis xTempMax1,0 - vis xTempStep1,0 - //tEntity.txt=tHeading.txt - // disable all buttons - vis bt0,0 - vis bt1,0 - vis bt2,0 - vis bt3,0 - vis bt4,0 - vis bt5,0 - vis bt6,0 - vis bt7,0 - vis tCF2,0 - vis bUp2,0 - vis bDown2,0 - vis xTempDest2,0 - vis tCF1,0 - vis btUp1,0 - vis btDown1,0 - vis xTempDest1,0 - vis bPrev,0 - vis bNext,0 - cardThermo.bco=defaultBcoColor - for(sys0=0;sys0<53;sys0++) - { - if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==59) - { - b[sys0].bco=defaultBcoColor - b[sys0].pco=defaultFontColor - } - if(b[sys0].type==53) - { - b[sys0].bco=defaultBcoColor - b[sys0].bco2=defaultBcoColor - b[sys0].pco=defaultFontColor - } - } - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 250 - -Variable (string) tId - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) tInstruction - Attributes - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) tTmp - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va0 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va1 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va2 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va3 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va4 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va5 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va6 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) va7 - Attributes - Scope : local - Text : - Max. Text Size: 10 - -XFloat xTempDest - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 0 - -XFloat xTempDest1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 0 - -XFloat xTempDest2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 0 - -XFloat xTempMax1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 0 - -XFloat xTempMin1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 0 - -XFloat xTempStep1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 0 - -Text tCF - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text :  - Max. Text Size : 10 - -Text tCF1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text :  - Max. Text Size : 10 - -Text tCF2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text :  - Max. Text Size : 10 - -Text tCurTemp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 30 - -Text tCurTempLbl - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : Currently - Max. Text Size : 30 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tStateLbl - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : State - Max. Text Size : 30 - -Text tStatus - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -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,cardThermo,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,cardThermo," - 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 - -Dual-state Button bDown2 - 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.val>xTempMin1.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) { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 + 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(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/n2t-out/hPosition.txt b/HMI/n2t-out/hPosition.txt new file mode 100644 index 00000000..9fdce22d --- /dev/null +++ b/HMI/n2t-out/hPosition.txt @@ -0,0 +1,718 @@ +Page popupShutter + 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 + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tPosHeading,0 + vis hPosition,0 + vis hTilt,0 + vis bTLeft,0 + vis bTStop,0 + vis bTRight,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupShutter,"+entn.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 + popupShutter.bco=defaultBcoColor + b0.bco=defaultBcoColor + tIcon1.bco=defaultBcoColor + tEntity.bco=defaultBcoColor + tInfo1.bco=defaultBcoColor + tPosHeading.bco=defaultBcoColor + tTiltHeading.bco=defaultBcoColor + bUp1.bco=defaultBcoColor + bStop1.bco=defaultBcoColor + bDown1.bco=defaultBcoColor + bTLeft.bco=defaultBcoColor + bTStop.bco=defaultBcoColor + bTRight.bco=defaultBcoColor + b0.pco=defaultFontColor + tIcon1.pco=defaultFontColor + tEntity.pco=defaultFontColor + tInfo1.pco=defaultFontColor + tPosHeading.pco=defaultFontColor + tTiltHeading.pco=defaultFontColor + bUp1.pco=defaultFontColor + bStop1.pco=defaultFontColor + bDown1.pco=defaultFontColor + bTLeft.pco=defaultFontColor + bTStop.pco=defaultFontColor + bTRight.pco=defaultFontColor + if(defaultBcoColor==0) + { + hTilt.pic=14 + hTilt.pic1=13 + hTilt.pic2=15 + hPosition.pic=14 + hPosition.pic1=13 + hPosition.pic2=15 + } + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) tId + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Text tEntity + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : tEntity1 + Max. Text Size : 25 + +Text tIcon1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text :  + Max. Text Size : 10 + +Text tInfo1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tPosHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : Position + Max. Text Size : 30 + +Text tTiltHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 30 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Slider hPosition + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," + covx hPosition.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 + +Slider hTilt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + // event,buttonPress2,internalNameEntity,positionSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," + covx hTilt.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 + +Button b0 + 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,popupShutter,bExit" + //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 bDown1 + 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,"+entn.txt+",down" + //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 bStop1 + 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,"+entn.txt+",stop" + //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 bTLeft + 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,"+entn.txt+",tiltOpen" + //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 bTRight + 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,"+entn.txt+",tiltClose" + //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 bTStop + 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,"+entn.txt+",tiltStop" + //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 bUp1 + 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,"+entn.txt+",up" + //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 + +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(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/b0.txt b/HMI/n2t-out/tc0.txt similarity index 100% rename from HMI/n2t-out/b0.txt rename to HMI/n2t-out/tc0.txt diff --git a/HMI/n2t-out/bSendStartup.txt b/HMI/n2t-out/tmSerial.txt similarity index 100% rename from HMI/n2t-out/bSendStartup.txt rename to HMI/n2t-out/tmSerial.txt diff --git a/HMI/n2t-out/vaDate.txt b/HMI/n2t-out/vaDate.txt new file mode 100644 index 00000000..873de61c --- /dev/null +++ b/HMI/n2t-out/vaDate.txt @@ -0,0 +1,61 @@ +Page pageIcons + 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 + +Variable (string) vaDate + Attributes + Scope : global + Text : + Max. Text Size: 35 + +Variable (string) vaTime + Attributes + Scope : global + Text : + Max. Text Size: 15 + +Text tTmp1 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp2 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp3 + Attributes + Scope : global + 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 +