From f5e03ed5cdb92be55f158dd41437fe5890209455 Mon Sep 17 00:00:00 2001 From: joBr99 Date: Sun, 30 Oct 2022 14:26:59 +0000 Subject: [PATCH 1/7] clarify instructions for docker fixes #551 (add nextion2text) --- HMI/US/landscape/diff-eu-version.txt | 1601 ++++++++- HMI/US/landscape/n2t-out-visual/arm1.txt | 1499 -------- HMI/US/landscape/n2t-out-visual/b0.txt | 1573 ++------- .../n2t-out-visual/{bNext.txt => h0.txt} | 0 .../landscape/n2t-out-visual/hBrightness.txt | 1031 ++++++ HMI/US/landscape/n2t-out-visual/hPosition.txt | 1029 ++++++ .../{bDown1.txt => hSlider1.txt} | 0 HMI/US/landscape/n2t-out-visual/hSpeed.txt | 959 +++++ .../{bEntity1.txt => hVolume.txt} | 1333 ++++--- .../n2t-out-visual/nspanel_US_L_Stats.txt | 60 +- HMI/US/landscape/n2t-out-visual/p0.txt | 1445 -------- .../n2t-out-visual/{bDown2.txt => tc0.txt} | 0 .../{bSendStartup.txt => tmSerial.txt} | 0 HMI/US/landscape/n2t-out-visual/vaDate.txt | 141 + HMI/US/landscape/n2t-out/b0.txt | 893 +---- HMI/US/landscape/n2t-out/bEntity1.txt | 960 ----- .../landscape/n2t-out/{bNext.txt => h0.txt} | 0 HMI/US/landscape/n2t-out/hBrightness.txt | 702 ++++ .../n2t-out/hPosition.txt} | 810 ++--- .../n2t-out/{bDown1.txt => hSlider1.txt} | 0 HMI/US/landscape/n2t-out/hSpeed.txt | 666 ++++ .../n2t-out/hVolume.txt} | 0 HMI/US/landscape/n2t-out/p0.txt | 871 ----- .../landscape/n2t-out/{bDown2.txt => tc0.txt} | 0 .../{bSendStartup.txt => tmSerial.txt} | 0 HMI/US/landscape/n2t-out/vaDate.txt | 61 + HMI/US/portrait/diff-eu-version.txt | 3112 +++++++---------- HMI/US/portrait/diff-filtered.txt | 2694 ++++++-------- HMI/US/portrait/n2t-out-visual/arm1.txt | 1499 -------- HMI/US/portrait/n2t-out-visual/b0.txt | 1608 ++------- HMI/US/portrait/n2t-out-visual/bDown2.txt | 1986 ----------- .../n2t-out-visual/{bEntity1.txt => h0.txt} | 1435 ++++---- .../portrait/n2t-out-visual/hBrightness.txt | 1031 ++++++ HMI/US/portrait/n2t-out-visual/hPosition.txt | 1029 ++++++ .../{bDown1.txt => hSlider1.txt} | 0 HMI/US/portrait/n2t-out-visual/hSpeed.txt | 959 +++++ .../n2t-out-visual/{bNext.txt => hVolume.txt} | 0 .../n2t-out-visual/nspanel_US_P_Stats.txt | 62 +- .../n2t-out-visual/{p0.txt => tc0.txt} | 0 .../{bSendStartup.txt => tmSerial.txt} | 0 HMI/US/portrait/n2t-out-visual/vaDate.txt | 141 + HMI/US/portrait/n2t-out/b0.txt | 844 +---- HMI/US/portrait/n2t-out/bDown2.txt | 1264 ------- .../bNext.txt => US/portrait/n2t-out/h0.txt} | 0 HMI/US/portrait/n2t-out/hBrightness.txt | 702 ++++ HMI/US/portrait/n2t-out/hPosition.txt | 718 ++++ .../n2t-out/{bDown1.txt => hSlider1.txt} | 0 HMI/US/portrait/n2t-out/hSpeed.txt | 666 ++++ .../portrait/n2t-out/hVolume.txt} | 779 ++--- HMI/US/portrait/n2t-out/{p0.txt => tc0.txt} | 0 .../{bSendStartup.txt => tmSerial.txt} | 0 HMI/US/portrait/n2t-out/vaDate.txt | 61 + HMI/n2t-out-visual/arm1.txt | 1499 -------- HMI/n2t-out-visual/bDown2.txt | 1986 ----------- HMI/n2t-out-visual/{bNext.txt => h0.txt} | 0 HMI/n2t-out-visual/hBrightness.txt | 1031 ++++++ HMI/n2t-out-visual/hPosition.txt | 1029 ++++++ .../{bDown1.txt => hSlider1.txt} | 0 HMI/n2t-out-visual/hSpeed.txt | 959 +++++ .../{bEntity1.txt => hVolume.txt} | 1323 ++++--- HMI/n2t-out-visual/nspanel_Stats.txt | 56 +- HMI/n2t-out-visual/p0.txt | 1445 -------- HMI/n2t-out-visual/{b0.txt => tc0.txt} | 0 .../{bSendStartup.txt => tmSerial.txt} | 0 HMI/n2t-out-visual/vaDate.txt | 141 + HMI/n2t-out/bDown2.txt | 1264 ------- HMI/n2t-out/bEntity1.txt | 960 ----- .../n2t-out/arm1.txt => n2t-out/h0.txt} | 933 +++-- HMI/n2t-out/hBrightness.txt | 702 ++++ HMI/n2t-out/hPosition.txt | 718 ++++ HMI/n2t-out/{bDown1.txt => hSlider1.txt} | 0 HMI/n2t-out/hSpeed.txt | 666 ++++ .../n2t-out/arm1.txt => n2t-out/hVolume.txt} | 779 ++--- HMI/n2t-out/p0.txt | 871 ----- HMI/n2t-out/{b0.txt => tc0.txt} | 0 .../{bSendStartup.txt => tmSerial.txt} | 0 HMI/n2t-out/vaDate.txt | 61 + 77 files changed, 23424 insertions(+), 29223 deletions(-) delete mode 100644 HMI/US/landscape/n2t-out-visual/arm1.txt rename HMI/US/landscape/n2t-out-visual/{bNext.txt => h0.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/hBrightness.txt create mode 100644 HMI/US/landscape/n2t-out-visual/hPosition.txt rename HMI/US/landscape/n2t-out-visual/{bDown1.txt => hSlider1.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/hSpeed.txt rename HMI/US/landscape/n2t-out-visual/{bEntity1.txt => hVolume.txt} (67%) delete mode 100644 HMI/US/landscape/n2t-out-visual/p0.txt rename HMI/US/landscape/n2t-out-visual/{bDown2.txt => tc0.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{bSendStartup.txt => tmSerial.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/vaDate.txt delete mode 100644 HMI/US/landscape/n2t-out/bEntity1.txt rename HMI/US/landscape/n2t-out/{bNext.txt => h0.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/hBrightness.txt rename HMI/US/{portrait/n2t-out/bEntity1.txt => landscape/n2t-out/hPosition.txt} (54%) rename HMI/US/landscape/n2t-out/{bDown1.txt => hSlider1.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/hSpeed.txt rename HMI/US/{portrait/n2t-out/bNext.txt => landscape/n2t-out/hVolume.txt} (100%) delete mode 100644 HMI/US/landscape/n2t-out/p0.txt rename HMI/US/landscape/n2t-out/{bDown2.txt => tc0.txt} (100%) rename HMI/US/landscape/n2t-out/{bSendStartup.txt => tmSerial.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/vaDate.txt delete mode 100644 HMI/US/portrait/n2t-out-visual/arm1.txt delete mode 100644 HMI/US/portrait/n2t-out-visual/bDown2.txt rename HMI/US/portrait/n2t-out-visual/{bEntity1.txt => h0.txt} (62%) create mode 100644 HMI/US/portrait/n2t-out-visual/hBrightness.txt create mode 100644 HMI/US/portrait/n2t-out-visual/hPosition.txt rename HMI/US/portrait/n2t-out-visual/{bDown1.txt => hSlider1.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/hSpeed.txt rename HMI/US/portrait/n2t-out-visual/{bNext.txt => hVolume.txt} (100%) rename HMI/US/portrait/n2t-out-visual/{p0.txt => tc0.txt} (100%) rename HMI/US/portrait/n2t-out-visual/{bSendStartup.txt => tmSerial.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/vaDate.txt delete mode 100644 HMI/US/portrait/n2t-out/bDown2.txt rename HMI/{n2t-out/bNext.txt => US/portrait/n2t-out/h0.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/hBrightness.txt create mode 100644 HMI/US/portrait/n2t-out/hPosition.txt rename HMI/US/portrait/n2t-out/{bDown1.txt => hSlider1.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/hSpeed.txt rename HMI/{n2t-out/arm1.txt => US/portrait/n2t-out/hVolume.txt} (70%) rename HMI/US/portrait/n2t-out/{p0.txt => tc0.txt} (100%) rename HMI/US/portrait/n2t-out/{bSendStartup.txt => tmSerial.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/vaDate.txt delete mode 100644 HMI/n2t-out-visual/arm1.txt delete mode 100644 HMI/n2t-out-visual/bDown2.txt rename HMI/n2t-out-visual/{bNext.txt => h0.txt} (100%) create mode 100644 HMI/n2t-out-visual/hBrightness.txt create mode 100644 HMI/n2t-out-visual/hPosition.txt rename HMI/n2t-out-visual/{bDown1.txt => hSlider1.txt} (100%) create mode 100644 HMI/n2t-out-visual/hSpeed.txt rename HMI/n2t-out-visual/{bEntity1.txt => hVolume.txt} (67%) delete mode 100644 HMI/n2t-out-visual/p0.txt rename HMI/n2t-out-visual/{b0.txt => tc0.txt} (100%) rename HMI/n2t-out-visual/{bSendStartup.txt => tmSerial.txt} (100%) create mode 100644 HMI/n2t-out-visual/vaDate.txt delete mode 100644 HMI/n2t-out/bDown2.txt delete mode 100644 HMI/n2t-out/bEntity1.txt rename HMI/{US/landscape/n2t-out/arm1.txt => n2t-out/h0.txt} (65%) create mode 100644 HMI/n2t-out/hBrightness.txt create mode 100644 HMI/n2t-out/hPosition.txt rename HMI/n2t-out/{bDown1.txt => hSlider1.txt} (100%) create mode 100644 HMI/n2t-out/hSpeed.txt rename HMI/{US/portrait/n2t-out/arm1.txt => n2t-out/hVolume.txt} (70%) delete mode 100644 HMI/n2t-out/p0.txt rename HMI/n2t-out/{b0.txt => tc0.txt} (100%) rename HMI/n2t-out/{bSendStartup.txt => tmSerial.txt} (100%) create mode 100644 HMI/n2t-out/vaDate.txt 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 + From 55478f307a7cb9bb96854add9e9b0df7deb9ac11 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 30 Oct 2022 15:31:30 +0100 Subject: [PATCH 2/7] Update prepare_ha.md --- docs/prepare_ha.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/prepare_ha.md b/docs/prepare_ha.md index 498f3fe2..f1f6bddf 100644 --- a/docs/prepare_ha.md +++ b/docs/prepare_ha.md @@ -12,7 +12,7 @@ The easiest way to install it is through Home Assistant's Supervisor Add-on Stor
Instructions for users of HomeAssistant Core installed through docker containers. -In case you have a homeassistant setup using docker cotainers and the Add-on Store is not available to you, you can follow this guide for setting up AppDaemon. [AppDaemon Docker Tutorial](https://appdaemon.readthedocs.io/en/latest/DOCKER_TUTORIAL.html). +In case you have a homeassistant setup using docker cotainers and the Add-on Store is not available to you, you can follow this guide for setting up AppDaemon. https://appdaemon.readthedocs.io/en/latest/DOCKER_TUTORIAL.html Please also pay attention to the correct volume mount for the conf folder of appdaemon, that has to point to the appdaemon folder within your homeassistant config folder. Here is an example docker compose file for homeassistant and appdaemon: @@ -93,4 +93,4 @@ Now, to install NSPanel Lovelace UI Backend with HACS, follow these steps: `Download this repository with HACS` 6. A confirmation panel will appear, click on `Download`, and wait for HACS to proceed with the download -7. The Backend Application is now installed, and HACS will inform you when updates are available \ No newline at end of file +7. The Backend Application is now installed, and HACS will inform you when updates are available From f79a2e525bca10da2c79cfcbc0ad5aeaf9b10cd4 Mon Sep 17 00:00:00 2001 From: joBr99 Date: Sun, 30 Oct 2022 14:44:06 +0000 Subject: [PATCH 3/7] Update prepare_ha.md (add nextion2text) --- HMI/US/landscape/diff-eu-version.txt | 1650 +------------- HMI/US/landscape/n2t-out-visual/cardAlarm.txt | 1499 +++++++++++++ .../{hSlider1.txt => cardEntities.txt} | 1084 ++++----- HMI/US/landscape/n2t-out-visual/cardGrid.txt | 1408 ++++++++++++ .../{hVolume.txt => cardMedia.txt} | 772 +++---- .../n2t-out-visual/{h0.txt => cardPower.txt} | 694 +++--- HMI/US/landscape/n2t-out-visual/cardQR.txt | 1066 +++++++++ .../{tc0.txt => cardThermo.txt} | 1512 ++++++------- .../n2t-out-visual/nspanel_US_L_Stats.txt | 60 +- .../{vaDate.txt => pageIcons.txt} | 14 +- .../{tmSerial.txt => pageStartup.txt} | 196 +- .../n2t-out-visual/{b0.txt => pageTest.txt} | 360 +-- .../{hSpeed.txt => popupFan.txt} | 268 +-- .../landscape/n2t-out-visual/popupInSel.txt | 1322 +++++++++++ .../{hBrightness.txt => popupLight.txt} | 210 +- .../landscape/n2t-out-visual/popupNotify.txt | 724 ++++++ .../{hPosition.txt => popupShutter.txt} | 232 +- .../landscape/n2t-out-visual/popupThermo.txt | 1417 ++++++++++++ .../landscape/n2t-out-visual/screensaver.txt | 1445 ++++++++++++ HMI/US/landscape/n2t-out/cardAlarm.txt | 914 ++++++++ .../landscape/n2t-out/cardEntities.txt} | 586 ++--- HMI/US/landscape/n2t-out/cardGrid.txt | 960 ++++++++ .../n2t-out/cardMedia.txt} | 368 +-- .../landscape/n2t-out/cardPower.txt} | 356 +-- HMI/US/landscape/n2t-out/cardQR.txt | 765 +++++++ .../n2t-out/{tc0.txt => cardThermo.txt} | 758 +++---- .../n2t-out/{vaDate.txt => pageIcons.txt} | 12 +- .../n2t-out/{tmSerial.txt => pageStartup.txt} | 62 +- .../n2t-out/{b0.txt => pageTest.txt} | 140 +- .../landscape/n2t-out/popupFan.txt} | 156 +- HMI/US/landscape/n2t-out/popupInSel.txt | 940 ++++++++ .../{hBrightness.txt => popupLight.txt} | 100 +- HMI/US/landscape/n2t-out/popupNotify.txt | 493 ++++ .../{hPosition.txt => popupShutter.txt} | 134 +- .../landscape/n2t-out/popupThermo.txt} | 396 ++-- HMI/US/landscape/n2t-out/screensaver.txt | 871 ++++++++ HMI/US/portrait/diff-eu-version.txt | 1793 ++------------- HMI/US/portrait/diff-filtered.txt | 1469 +----------- HMI/US/portrait/n2t-out-visual/cardAlarm.txt | 1499 +++++++++++++ .../{hSlider1.txt => cardEntities.txt} | 1244 +++++------ HMI/US/portrait/n2t-out-visual/cardGrid.txt | 1408 ++++++++++++ .../{hVolume.txt => cardMedia.txt} | 774 +++---- .../n2t-out-visual/{h0.txt => cardPower.txt} | 658 +++--- HMI/US/portrait/n2t-out-visual/cardQR.txt | 1066 +++++++++ HMI/US/portrait/n2t-out-visual/cardThermo.txt | 1986 +++++++++++++++++ .../n2t-out-visual/nspanel_US_P_Stats.txt | 60 +- .../{vaDate.txt => pageIcons.txt} | 14 +- .../{tmSerial.txt => pageStartup.txt} | 198 +- .../n2t-out-visual/{b0.txt => pageTest.txt} | 360 +-- .../{hSpeed.txt => popupFan.txt} | 146 +- HMI/US/portrait/n2t-out-visual/popupInSel.txt | 1322 +++++++++++ .../{hBrightness.txt => popupLight.txt} | 210 +- .../portrait/n2t-out-visual/popupNotify.txt | 724 ++++++ .../{hPosition.txt => popupShutter.txt} | 232 +- .../portrait/n2t-out-visual/popupThermo.txt | 1417 ++++++++++++ .../{tc0.txt => screensaver.txt} | 640 +++--- HMI/US/portrait/n2t-out/cardAlarm.txt | 914 ++++++++ .../{hSlider1.txt => cardEntities.txt} | 650 +++--- HMI/US/portrait/n2t-out/cardGrid.txt | 960 ++++++++ .../portrait/n2t-out/cardMedia.txt} | 368 +-- .../n2t-out/{h0.txt => cardPower.txt} | 356 +-- HMI/US/portrait/n2t-out/cardQR.txt | 765 +++++++ HMI/US/portrait/n2t-out/cardThermo.txt | 1264 +++++++++++ .../n2t-out/{vaDate.txt => pageIcons.txt} | 12 +- .../n2t-out/{tmSerial.txt => pageStartup.txt} | 62 +- .../portrait/n2t-out/{b0.txt => pageTest.txt} | 140 +- .../n2t-out/{hSpeed.txt => popupFan.txt} | 82 +- HMI/US/portrait/n2t-out/popupInSel.txt | 940 ++++++++ .../portrait/n2t-out/popupLight.txt} | 100 +- HMI/US/portrait/n2t-out/popupNotify.txt | 493 ++++ .../portrait/n2t-out/popupShutter.txt} | 134 +- HMI/US/portrait/n2t-out/popupThermo.txt | 989 ++++++++ .../n2t-out/{tc0.txt => screensaver.txt} | 246 +- HMI/n2t-out-visual/cardAlarm.txt | 1499 +++++++++++++ .../{hSlider1.txt => cardEntities.txt} | 1084 ++++----- HMI/n2t-out-visual/cardGrid.txt | 1408 ++++++++++++ .../{hVolume.txt => cardMedia.txt} | 772 +++---- HMI/n2t-out-visual/{h0.txt => cardPower.txt} | 694 +++--- HMI/n2t-out-visual/cardQR.txt | 1066 +++++++++ HMI/n2t-out-visual/cardThermo.txt | 1986 +++++++++++++++++ HMI/n2t-out-visual/nspanel_Stats.txt | 68 +- .../{vaDate.txt => pageIcons.txt} | 14 +- .../{tmSerial.txt => pageStartup.txt} | 196 +- HMI/n2t-out-visual/pageTest.txt | 643 ++++++ .../{hSpeed.txt => popupFan.txt} | 268 +-- HMI/n2t-out-visual/popupInSel.txt | 1322 +++++++++++ .../{hBrightness.txt => popupLight.txt} | 210 +- HMI/n2t-out-visual/popupNotify.txt | 724 ++++++ .../{hPosition.txt => popupShutter.txt} | 232 +- .../{tc0.txt => popupThermo.txt} | 872 ++++---- HMI/n2t-out-visual/screensaver.txt | 1445 ++++++++++++ HMI/n2t-out/cardAlarm.txt | 914 ++++++++ .../hSlider1.txt => n2t-out/cardEntities.txt} | 586 ++--- HMI/n2t-out/cardGrid.txt | 960 ++++++++ .../hVolume.txt => n2t-out/cardMedia.txt} | 368 +-- .../n2t-out/h0.txt => n2t-out/cardPower.txt} | 356 +-- HMI/n2t-out/cardQR.txt | 765 +++++++ HMI/n2t-out/cardThermo.txt | 1264 +++++++++++ HMI/n2t-out/{vaDate.txt => pageIcons.txt} | 12 +- HMI/n2t-out/{tmSerial.txt => pageStartup.txt} | 62 +- HMI/n2t-out/pageTest.txt | 315 +++ .../hSpeed.txt => n2t-out/popupFan.txt} | 156 +- HMI/n2t-out/popupInSel.txt | 940 ++++++++ .../popupLight.txt} | 100 +- HMI/n2t-out/popupNotify.txt | 493 ++++ .../popupShutter.txt} | 134 +- HMI/n2t-out/popupThermo.txt | 989 ++++++++ HMI/n2t-out/screensaver.txt | 871 ++++++++ 108 files changed, 58182 insertions(+), 15245 deletions(-) create mode 100644 HMI/US/landscape/n2t-out-visual/cardAlarm.txt rename HMI/US/landscape/n2t-out-visual/{hSlider1.txt => cardEntities.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/cardGrid.txt rename HMI/US/landscape/n2t-out-visual/{hVolume.txt => cardMedia.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{h0.txt => cardPower.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/cardQR.txt rename HMI/US/landscape/n2t-out-visual/{tc0.txt => cardThermo.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{vaDate.txt => pageIcons.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{tmSerial.txt => pageStartup.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{b0.txt => pageTest.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{hSpeed.txt => popupFan.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/popupInSel.txt rename HMI/US/landscape/n2t-out-visual/{hBrightness.txt => popupLight.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/popupNotify.txt rename HMI/US/landscape/n2t-out-visual/{hPosition.txt => popupShutter.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/popupThermo.txt create mode 100644 HMI/US/landscape/n2t-out-visual/screensaver.txt create mode 100644 HMI/US/landscape/n2t-out/cardAlarm.txt rename HMI/{n2t-out/hSlider1.txt => US/landscape/n2t-out/cardEntities.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/cardGrid.txt rename HMI/US/{portrait/n2t-out/hVolume.txt => landscape/n2t-out/cardMedia.txt} (100%) rename HMI/{n2t-out/h0.txt => US/landscape/n2t-out/cardPower.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/cardQR.txt rename HMI/US/landscape/n2t-out/{tc0.txt => cardThermo.txt} (100%) rename HMI/US/landscape/n2t-out/{vaDate.txt => pageIcons.txt} (100%) rename HMI/US/landscape/n2t-out/{tmSerial.txt => pageStartup.txt} (100%) rename HMI/US/landscape/n2t-out/{b0.txt => pageTest.txt} (100%) rename HMI/{n2t-out/hSpeed.txt => US/landscape/n2t-out/popupFan.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/popupInSel.txt rename HMI/US/landscape/n2t-out/{hBrightness.txt => popupLight.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/popupNotify.txt rename HMI/US/landscape/n2t-out/{hPosition.txt => popupShutter.txt} (100%) rename HMI/{n2t-out/tc0.txt => US/landscape/n2t-out/popupThermo.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/screensaver.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardAlarm.txt rename HMI/US/portrait/n2t-out-visual/{hSlider1.txt => cardEntities.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/cardGrid.txt rename HMI/US/portrait/n2t-out-visual/{hVolume.txt => cardMedia.txt} (100%) rename HMI/US/portrait/n2t-out-visual/{h0.txt => cardPower.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/cardQR.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardThermo.txt rename HMI/US/portrait/n2t-out-visual/{vaDate.txt => pageIcons.txt} (100%) rename HMI/US/portrait/n2t-out-visual/{tmSerial.txt => pageStartup.txt} (100%) rename HMI/US/portrait/n2t-out-visual/{b0.txt => pageTest.txt} (100%) rename HMI/US/portrait/n2t-out-visual/{hSpeed.txt => popupFan.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/popupInSel.txt rename HMI/US/portrait/n2t-out-visual/{hBrightness.txt => popupLight.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/popupNotify.txt rename HMI/US/portrait/n2t-out-visual/{hPosition.txt => popupShutter.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out-visual/popupThermo.txt rename HMI/US/portrait/n2t-out-visual/{tc0.txt => screensaver.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/cardAlarm.txt rename HMI/US/portrait/n2t-out/{hSlider1.txt => cardEntities.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/cardGrid.txt rename HMI/{n2t-out/hVolume.txt => US/portrait/n2t-out/cardMedia.txt} (100%) rename HMI/US/portrait/n2t-out/{h0.txt => cardPower.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/cardQR.txt create mode 100644 HMI/US/portrait/n2t-out/cardThermo.txt rename HMI/US/portrait/n2t-out/{vaDate.txt => pageIcons.txt} (100%) rename HMI/US/portrait/n2t-out/{tmSerial.txt => pageStartup.txt} (100%) rename HMI/US/portrait/n2t-out/{b0.txt => pageTest.txt} (100%) rename HMI/US/portrait/n2t-out/{hSpeed.txt => popupFan.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/popupInSel.txt rename HMI/{n2t-out/hBrightness.txt => US/portrait/n2t-out/popupLight.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/popupNotify.txt rename HMI/{n2t-out/hPosition.txt => US/portrait/n2t-out/popupShutter.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/popupThermo.txt rename HMI/US/portrait/n2t-out/{tc0.txt => screensaver.txt} (100%) create mode 100644 HMI/n2t-out-visual/cardAlarm.txt rename HMI/n2t-out-visual/{hSlider1.txt => cardEntities.txt} (100%) create mode 100644 HMI/n2t-out-visual/cardGrid.txt rename HMI/n2t-out-visual/{hVolume.txt => cardMedia.txt} (100%) rename HMI/n2t-out-visual/{h0.txt => cardPower.txt} (100%) create mode 100644 HMI/n2t-out-visual/cardQR.txt create mode 100644 HMI/n2t-out-visual/cardThermo.txt rename HMI/n2t-out-visual/{vaDate.txt => pageIcons.txt} (100%) rename HMI/n2t-out-visual/{tmSerial.txt => pageStartup.txt} (100%) create mode 100644 HMI/n2t-out-visual/pageTest.txt rename HMI/n2t-out-visual/{hSpeed.txt => popupFan.txt} (100%) create mode 100644 HMI/n2t-out-visual/popupInSel.txt rename HMI/n2t-out-visual/{hBrightness.txt => popupLight.txt} (100%) create mode 100644 HMI/n2t-out-visual/popupNotify.txt rename HMI/n2t-out-visual/{hPosition.txt => popupShutter.txt} (100%) rename HMI/n2t-out-visual/{tc0.txt => popupThermo.txt} (100%) create mode 100644 HMI/n2t-out-visual/screensaver.txt create mode 100644 HMI/n2t-out/cardAlarm.txt rename HMI/{US/landscape/n2t-out/hSlider1.txt => n2t-out/cardEntities.txt} (100%) create mode 100644 HMI/n2t-out/cardGrid.txt rename HMI/{US/landscape/n2t-out/hVolume.txt => n2t-out/cardMedia.txt} (100%) rename HMI/{US/landscape/n2t-out/h0.txt => n2t-out/cardPower.txt} (100%) create mode 100644 HMI/n2t-out/cardQR.txt create mode 100644 HMI/n2t-out/cardThermo.txt rename HMI/n2t-out/{vaDate.txt => pageIcons.txt} (100%) rename HMI/n2t-out/{tmSerial.txt => pageStartup.txt} (100%) create mode 100644 HMI/n2t-out/pageTest.txt rename HMI/{US/landscape/n2t-out/hSpeed.txt => n2t-out/popupFan.txt} (100%) create mode 100644 HMI/n2t-out/popupInSel.txt rename HMI/{US/portrait/n2t-out/hBrightness.txt => n2t-out/popupLight.txt} (100%) create mode 100644 HMI/n2t-out/popupNotify.txt rename HMI/{US/portrait/n2t-out/hPosition.txt => n2t-out/popupShutter.txt} (100%) create mode 100644 HMI/n2t-out/popupThermo.txt create mode 100644 HMI/n2t-out/screensaver.txt diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 67a83593..986fe838 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -1,16 +1,5 @@ --- 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 @@ -23,1595 +12,7 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup -├── 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(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -823,503 +1276,15 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 +Dual-state Button bDown2 Attributes - ID : 16 + ID : 42 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 18 - y coordinate : 255 - 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 - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.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 bt1 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 74 - y coordinate : 255 - 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 : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.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 bt2 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 255 - 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 - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.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 bt3 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 186 - y coordinate : 255 - 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 : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.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 bt4 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 242 - y coordinate : 255 - 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 - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.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 bt5 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 298 - y coordinate : 255 - 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 : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.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 bt6 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 354 - y coordinate : 255 - 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 - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.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 bt7 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 410 - y coordinate : 255 - 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 : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.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 btDetail - Attributes - ID : 52 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 409 - y coordinate : 199 - 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 - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown - Attributes - ID : 49 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 180 - 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.val>xTempMin1.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 : 346 + x coordinate : 193 y coordinate : 179 Width : 50 Height : 50 @@ -1345,9 +1310,9 @@ Dual-state Button btDown1 Events Touch Press Event - if(xTempDest1.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1430,16 +1395,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes - ID : 32 + ID : 49 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 346 - y coordinate : 67 + x coordinate : 272 + y coordinate : 180 Width : 50 Height : 50 Effect : load @@ -1456,7 +1421,7 @@ Dual-state Button btUp1 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1464,20 +1429,17 @@ Dual-state Button btUp1 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -1491,6 +1453,44 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 409 + y coordinate : 199 + 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 + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes ID : 34 @@ -1511,26 +1511,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 8 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 35 @@ -1551,6 +1531,26 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 +Hotspot mSwipePrev + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Timer tmSerial Attributes ID : 3 diff --git a/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt b/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt index 173355e1..3d6a46ac 100644 --- a/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt +++ b/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt @@ -2,49 +2,77 @@ Program.s 0 Component(s) 11 Line(s) of event code 11 Unique line(s) of event code -vaDate +pageIcons 7 Component(s) 0 Line(s) of event code 0 Unique line(s) of event code -tmSerial +pageStartup 19 Component(s) 172 Line(s) of event code 125 Unique line(s) of event code -tc0 - 53 Component(s) - 596 Line(s) of event code - 313 Unique line(s) of event code -hVolume +popupNotify + 19 Component(s) + 253 Line(s) of event code + 164 Unique line(s) of event code +cardMedia 34 Component(s) 394 Line(s) of event code 213 Unique line(s) of event code -hBrightness +popupLight 27 Component(s) 391 Line(s) of event code 214 Unique line(s) of event code -hPosition +popupShutter 25 Component(s) 394 Line(s) of event code 216 Unique line(s) of event code -hSpeed +popupFan 27 Component(s) 347 Line(s) of event code 202 Unique line(s) of event code -b0 +pageTest 14 Component(s) 14 Line(s) of event code 14 Unique line(s) of event code -h0 +screensaver + 45 Component(s) + 389 Line(s) of event code + 288 Unique line(s) of event code +cardGrid + 42 Component(s) + 478 Line(s) of event code + 283 Unique line(s) of event code +cardAlarm + 40 Component(s) + 427 Line(s) of event code + 258 Unique line(s) of event code +popupInSel + 34 Component(s) + 529 Line(s) of event code + 257 Unique line(s) of event code +cardQR + 32 Component(s) + 409 Line(s) of event code + 238 Unique line(s) of event code +cardPower 43 Component(s) 423 Line(s) of event code 293 Unique line(s) of event code -hSlider1 +popupThermo + 44 Component(s) + 515 Line(s) of event code + 272 Unique line(s) of event code +cardThermo + 53 Component(s) + 596 Line(s) of event code + 313 Unique line(s) of event code +cardEntities 65 Component(s) 1153 Line(s) of event code 527 Unique line(s) of event code Total 17 Page(s) - 314 Component(s) - 3895 Line(s) of event code - 1183 Unique line(s) of event code + 570 Component(s) + 6895 Line(s) of event code + 1794 Unique line(s) of event code diff --git a/HMI/US/landscape/n2t-out-visual/vaDate.txt b/HMI/US/landscape/n2t-out-visual/pageIcons.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/vaDate.txt rename to HMI/US/landscape/n2t-out-visual/pageIcons.txt index 47a463a9..9c8aed93 100644 --- a/HMI/US/landscape/n2t-out-visual/vaDate.txt +++ b/HMI/US/landscape/n2t-out-visual/pageIcons.txt @@ -18,13 +18,6 @@ Page pageIcons 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 @@ -32,6 +25,13 @@ Variable (string) vaTime Text : Max. Text Size: 15 +Variable (string) vaDate + Attributes + ID : 5 + Scope : global + Text : + Max. Text Size: 35 + Text tTmp1 Attributes ID : 2 diff --git a/HMI/US/landscape/n2t-out-visual/tmSerial.txt b/HMI/US/landscape/n2t-out-visual/pageStartup.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/tmSerial.txt rename to HMI/US/landscape/n2t-out-visual/pageStartup.txt index b019b5e4..bc79cb88 100644 --- a/HMI/US/landscape/n2t-out-visual/tmSerial.txt +++ b/HMI/US/landscape/n2t-out-visual/pageStartup.txt @@ -78,36 +78,6 @@ Number frame_ptr Horizontal Spacing : 0 Vertical Spacing : 0 -Number frapic_w - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 11 - y coordinate : 100 - 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 - Value : 1960 - Significant digits shown : all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Number spinner_w Attributes ID : 11 @@ -138,6 +108,36 @@ Number spinner_w Horizontal Spacing : 0 Vertical Spacing : 0 +Number frapic_w + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 11 + y coordinate : 100 + 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 + Value : 1960 + Significant digits shown : all + Format : decimal + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Number usual_cnt Attributes ID : 15 @@ -168,17 +168,77 @@ Number usual_cnt Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text tSend Attributes - ID : 7 + ID : 2 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 282 + x coordinate : 0 y coordinate : 0 - Width : 125 + Width : 230 + Height : 23 + 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 : newtxt + Max. Text Size : 100 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 408 + y coordinate : 0 + 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 + +Text tInstruction + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 163 + y coordinate : 0 + Width : 119 Height : 30 Effect : load Effect Priority : 0 @@ -198,17 +258,17 @@ Text tId Horizontal Spacing : 0 Vertical Spacing : 0 -Text tInstruction +Text tId Attributes - ID : 6 + ID : 7 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 163 + x coordinate : 282 y coordinate : 0 - Width : 119 + Width : 125 Height : 30 Effect : load Effect Priority : 0 @@ -318,66 +378,6 @@ Text tMsg3 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tSend - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 230 - Height : 23 - 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 : newtxt - Max. Text Size : 100 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 408 - y coordinate : 0 - 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 - Text tVersion Attributes ID : 18 diff --git a/HMI/US/landscape/n2t-out-visual/b0.txt b/HMI/US/landscape/n2t-out-visual/pageTest.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/b0.txt rename to HMI/US/landscape/n2t-out-visual/pageTest.txt index 6a548d7e..9205bf4b 100644 --- a/HMI/US/landscape/n2t-out-visual/b0.txt +++ b/HMI/US/landscape/n2t-out-visual/pageTest.txt @@ -75,150 +75,6 @@ Button b0 Touch Press Event page cardEntities -Button b1 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 349 - y coordinate : 252 - Width : 102 - Height : 63 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : 3D auto - Font ID : 1 - Back. Color : 50712 - Back. Picture ID (Pressed) : 0 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 0 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : bauds=115200 - Max. Text Size : 20 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - bauds=115200 - -Button b10 - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 115 - y coordinate : 128 - Width : 100 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : 3D auto - Font ID : 1 - Back. Color : 50712 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 0 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : alarm - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - page cardAlarm - -Button b11 - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 117 - y coordinate : 184 - Width : 100 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : 3D auto - Font ID : 1 - Back. Color : 50712 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 0 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : grid - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - page cardGrid - -Button b2 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 244 - Width : 100 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : 3D auto - Font ID : 1 - Back. Color : 50712 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 0 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : qr - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - page cardQR - Button b3 Attributes ID : 3 @@ -255,6 +111,42 @@ Button b3 Touch Press Event recmod=0 +Button b6 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 64 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : shutter + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupShutter + Button b4 Attributes ID : 5 @@ -327,42 +219,6 @@ Button b5 Touch Press Event page cardThermo -Button b6 - Attributes - ID : 4 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 5 - y coordinate : 64 - Width : 100 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : 3D auto - Font ID : 1 - Back. Color : 50712 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 0 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : shutter - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - page popupShutter - Button b7 Attributes ID : 7 @@ -472,3 +328,147 @@ Button b9 Touch Press Event page popupNotify +Button b10 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 115 + y coordinate : 128 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : alarm + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 117 + y coordinate : 184 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : grid + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 349 + y coordinate : 252 + Width : 102 + Height : 63 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 244 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : qr + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardQR + diff --git a/HMI/US/landscape/n2t-out-visual/hSpeed.txt b/HMI/US/landscape/n2t-out-visual/popupFan.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/hSpeed.txt rename to HMI/US/landscape/n2t-out-visual/popupFan.txt index 268216fe..25f6b9c6 100644 --- a/HMI/US/landscape/n2t-out-visual/hSpeed.txt +++ b/HMI/US/landscape/n2t-out-visual/popupFan.txt @@ -68,6 +68,13 @@ Page popupFan hSpeed.pic2=15 } +Variable (string) strCommand + Attributes + ID : 12 + Scope : local + Text : + Max. Text Size: 500 + Variable (string) entn Attributes ID : 15 @@ -87,26 +94,11 @@ Variable (int32) mode_temp Scope: local Value: 0 -Variable (string) strCommand +Variable (int32) vaModePos Attributes - ID : 12 - Scope : local - Text : - Max. Text Size: 500 - -Variable (string) tSend - Attributes - ID : 26 - Scope : local - Text : - Max. Text Size: 200 - -Variable (string) vaModeCur - Attributes - ID : 25 - Scope : local - Text : - Max. Text Size: 400 + ID : 23 + Scope: local + Value: 0 Variable (string) vaModeList Attributes @@ -115,41 +107,19 @@ Variable (string) vaModeList Text : Max. Text Size: 400 -Variable (int32) vaModePos +Variable (string) vaModeCur Attributes - ID : 23 - Scope: local - Value: 0 + ID : 25 + Scope : local + Text : + Max. Text Size: 400 -Text t1 +Variable (string) tSend Attributes - ID : 5 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 104 - Width : 211 - 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 : 50 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 + ID : 26 + Scope : local + Text : + Max. Text Size: 200 Text tEntity Attributes @@ -211,17 +181,47 @@ Text tIcon1 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text t1 Attributes - ID : 14 + ID : 5 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 115 - y coordinate : 290 - Width : 100 + x coordinate : 58 + y coordinate : 104 + Width : 211 + 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 : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 358 + y coordinate : 277 + Width : 97 Height : 30 Effect : load Effect Priority : 0 @@ -236,7 +236,7 @@ Text tId Vertical Alignment : center Input Type : character Text : - Max. Text Size : 20 + Max. Text Size : 80 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 @@ -271,17 +271,17 @@ Text tInstruction Horizontal Spacing : 0 Vertical Spacing : 0 -Text tTmp +Text tId Attributes - ID : 8 + ID : 14 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 358 - y coordinate : 277 - Width : 97 + x coordinate : 115 + y coordinate : 290 + Width : 100 Height : 30 Effect : load Effect Priority : 0 @@ -296,7 +296,7 @@ Text tTmp Vertical Alignment : center Input Type : character Text : - Max. Text Size : 80 + Max. Text Size : 20 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 @@ -462,58 +462,6 @@ Button bMode1 prints tSend.txt,0 prints crcval,2 -Button bMode2 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 150 - y coordinate : 213 - Width : 120 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - 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 : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - 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 ID : 20 @@ -566,6 +514,58 @@ Button bMode3 prints tSend.txt,0 prints crcval,2 +Button bMode2 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 213 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + 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 bModeNext Attributes ID : 22 @@ -683,16 +683,25 @@ Dual-state Button btOnOff1 prints tSend.txt,0 prints crcval,2 -Timer tmCooldown +Timer tmSleep Attributes - ID : 18 + ID : 10 Scope : local - Period (ms): 100 - Enabled : no + Period (ms): 1000 + Enabled : yes Events Timer Event - tmCooldown.en=0 + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } Timer tmSerial Attributes @@ -927,25 +936,16 @@ Timer tmSerial } } -Timer tmSleep +Timer tmCooldown Attributes - ID : 10 + ID : 18 Scope : local - Period (ms): 1000 - Enabled : yes + Period (ms): 100 + Enabled : no Events Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } + tmCooldown.en=0 TouchCap tc0 Attributes diff --git a/HMI/US/landscape/n2t-out-visual/popupInSel.txt b/HMI/US/landscape/n2t-out-visual/popupInSel.txt new file mode 100644 index 00000000..3a9b8c13 --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/popupInSel.txt @@ -0,0 +1,1322 @@ +Page popupInSel + 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 tTmp,0 + vis tInstruction,0 + vis tId,0 + vis bModeNext,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + 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 + 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) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + +Variable (string) strCommand + Attributes + ID : 8 + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) entn + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 80 + +Variable (int32) mode + Attributes + ID : 10 + Scope: local + Value: 1 + +Variable (int32) mode_temp + Attributes + ID : 11 + Scope: local + Value: 0 + +Variable (int32) vaModePos + Attributes + ID : 17 + Scope: local + Value: 0 + +Variable (string) vaModeList + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeCur + Attributes + ID : 19 + Scope : local + Text : + Max. Text Size: 40 + +Variable (string) tSend + Attributes + ID : 20 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + ID : 21 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tInstruction + Attributes + ID : 22 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tId + Attributes + ID : 23 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) vaType + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 20 + +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 107 + y coordinate : 21 + Width : 263 + 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 : 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 : 26 + y coordinate : 21 + 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 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 412 + 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,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 + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 67 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + 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 bMode3 + Attributes + ID : 14 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 274 + y coordinate : 67 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-10 + 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 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 67 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //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 bModeNext + Attributes + ID : 16 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 405 + y coordinate : 157 + 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) : 50712 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 3 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + 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 + 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 bModeNext,0 + }else + { + 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 + } + if(bMode6.txt==vaModeCur.txt) + { + bMode6.pco=1374 + } + if(bMode7.txt==vaModeCur.txt) + { + bMode7.pco=1374 + } + if(bMode8.txt==vaModeCur.txt) + { + 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 + } + +Button bMode4 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 130 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-9 + 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 bMode5 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 130 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-8 + 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 bMode6 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 274 + y coordinate : 130 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //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 bMode7 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 193 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-6 + 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 bMode8 + Attributes + ID : 29 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 193 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-5 + 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 bMode9 + Attributes + ID : 30 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 274 + y coordinate : 193 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-4 + 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 bMode12 + Attributes + ID : 31 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 274 + y coordinate : 251 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + 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 bMode11 + Attributes + ID : 32 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 251 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + 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 bMode10 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 251 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + 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 : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + 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 + +Timer tmSleep + Attributes + ID : 6 + 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 + } + } + +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(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/cardAlarm.txt b/HMI/US/landscape/n2t-out/cardAlarm.txt new file mode 100644 index 00000000..afd86599 --- /dev/null +++ b/HMI/US/landscape/n2t-out/cardAlarm.txt @@ -0,0 +1,914 @@ +Page cardAlarm + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tInstruction,0 + vis tTmp,0 + vis tId,0 + vis arm1,0 + vis arm2,0 + vis arm3,0 + vis arm4,0 + vis b0,0 + vis b1,0 + vis b2,0 + vis b3,0 + vis b4,0 + vis b5,0 + vis b6,0 + vis b7,0 + vis b8,0 + vis b9,0 + vis b10,0 + vis b11,0 + vis tCode,0 + vis bPrev,0 + vis bNext,0 + cardAlarm.bco=defaultBcoColor + for(sys0=0;sys0<40;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + } + if(defaultBcoColor==0) + { + tCode.bco=6371 + tCode.pco=40179 + } + if(defaultBcoColor==6371) + { + tCode.bco=10565 + tCode.pco=40179 + } + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) va1 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va2 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va3 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va4 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) vaAddBtn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +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 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 tCode + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +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,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 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 1 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"1" + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 2 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"2" + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 3 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"3" + +Button b3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 4 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"4" + +Button b4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 5 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"5" + +Button b5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 6 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"6" + +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 7 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"7" + +Button b7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 8 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"8" + +Button b8 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 9 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"9" + +Button b9 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + if(vaAddBtn.txt!="") + { + tSend.txt+=vaAddBtn.txt+",button" + }else + { + tSend.txt+=entn.txt+",opnSensorNotify" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 0 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"0" + +Button arm1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va1.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va3.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va2.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va4.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : CLR + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt="" + +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 mSwipeUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,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 + +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(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -417,239 +672,7 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 - 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 - tSend.txt+=",hvac_action,"+va0.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 bt1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.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 bt2 - 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 - tSend.txt+=",hvac_action,"+va2.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 bt3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.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 bt4 - 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 - tSend.txt+=",hvac_action,"+va4.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 bt5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.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 bt6 - 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 - tSend.txt+=",hvac_action,"+va6.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 bt7 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.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 btDetail - 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 - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown +Dual-state Button bDown2 Attributes Scope : local Dragging : 0 @@ -661,45 +684,9 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.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 + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -760,32 +747,29 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown 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 - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -799,6 +783,22 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + 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 + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes Scope : local @@ -810,7 +810,7 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev +Hotspot mSwipeUp Attributes Scope : local Dragging : 0 @@ -821,7 +821,7 @@ Hotspot mSwipePrev Touch Press Event click bPrev,1 -Hotspot mSwipeUp +Hotspot mSwipePrev Attributes Scope : local Dragging : 0 diff --git a/HMI/US/landscape/n2t-out/vaDate.txt b/HMI/US/landscape/n2t-out/pageIcons.txt similarity index 100% rename from HMI/US/landscape/n2t-out/vaDate.txt rename to HMI/US/landscape/n2t-out/pageIcons.txt index 873de61c..5228463c 100644 --- a/HMI/US/landscape/n2t-out/vaDate.txt +++ b/HMI/US/landscape/n2t-out/pageIcons.txt @@ -10,18 +10,18 @@ Page pageIcons 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 +Variable (string) vaDate + Attributes + Scope : global + Text : + Max. Text Size: 35 + Text tTmp1 Attributes Scope : global diff --git a/HMI/US/landscape/n2t-out/tmSerial.txt b/HMI/US/landscape/n2t-out/pageStartup.txt similarity index 100% rename from HMI/US/landscape/n2t-out/tmSerial.txt rename to HMI/US/landscape/n2t-out/pageStartup.txt index c8c655c5..0636cabd 100644 --- a/HMI/US/landscape/n2t-out/tmSerial.txt +++ b/HMI/US/landscape/n2t-out/pageStartup.txt @@ -48,15 +48,6 @@ Number frame_ptr Associated Keyboard : none Value : 0 -Number frapic_w - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 1960 - Number spinner_w Attributes Scope : local @@ -66,6 +57,15 @@ Number spinner_w Associated Keyboard : none Value : 140 +Number frapic_w + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Value : 1960 + Number usual_cnt Attributes Scope : local @@ -75,7 +75,27 @@ Number usual_cnt Associated Keyboard : none Value : 0 -Text tId +Text tSend + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : newtxt + Max. Text Size : 100 + +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 + +Text tInstruction Attributes Scope : local Dragging : 0 @@ -85,7 +105,7 @@ Text tId Text : Max. Text Size : 20 -Text tInstruction +Text tId Attributes Scope : local Dragging : 0 @@ -125,26 +145,6 @@ Text tMsg3 Text : please check your backend configuration Max. Text Size : 100 -Text tSend - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : newtxt - Max. Text Size : 100 - -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 - Text tVersion Attributes Scope : local diff --git a/HMI/US/landscape/n2t-out/b0.txt b/HMI/US/landscape/n2t-out/pageTest.txt similarity index 100% rename from HMI/US/landscape/n2t-out/b0.txt rename to HMI/US/landscape/n2t-out/pageTest.txt index 53a5261d..03a79fd7 100644 --- a/HMI/US/landscape/n2t-out/b0.txt +++ b/HMI/US/landscape/n2t-out/pageTest.txt @@ -35,62 +35,6 @@ Button b0 Touch Press Event page cardEntities -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : bauds=115200 - Max. Text Size : 20 - - Events - Touch Press Event - bauds=115200 - -Button b10 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : alarm - Max. Text Size : 10 - - Events - Touch Press Event - page cardAlarm - -Button b11 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : grid - Max. Text Size : 10 - - Events - Touch Press Event - page cardGrid - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : qr - Max. Text Size : 10 - - Events - Touch Press Event - page cardQR - Button b3 Attributes Scope : local @@ -105,6 +49,20 @@ Button b3 Touch Press Event recmod=0 +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : shutter + Max. Text Size : 10 + + Events + Touch Press Event + page popupShutter + Button b4 Attributes Scope : local @@ -133,20 +91,6 @@ Button b5 Touch Press Event page cardThermo -Button b6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : shutter - Max. Text Size : 10 - - Events - Touch Press Event - page popupShutter - Button b7 Attributes Scope : local @@ -190,3 +134,59 @@ Button b9 Touch Press Event page popupNotify +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : alarm + Max. Text Size : 10 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : grid + Max. Text Size : 10 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : qr + Max. Text Size : 10 + + Events + Touch Press Event + page cardQR + diff --git a/HMI/n2t-out/hSpeed.txt b/HMI/US/landscape/n2t-out/popupFan.txt similarity index 100% rename from HMI/n2t-out/hSpeed.txt rename to HMI/US/landscape/n2t-out/popupFan.txt index 1241982e..dd78aca7 100644 --- a/HMI/n2t-out/hSpeed.txt +++ b/HMI/US/landscape/n2t-out/popupFan.txt @@ -60,6 +60,12 @@ Page popupFan hSpeed.pic2=15 } +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + Variable (string) entn Attributes Scope : local @@ -76,23 +82,10 @@ Variable (int32) mode_temp Scope: local Value: 0 -Variable (string) strCommand +Variable (int32) vaModePos 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 + Scope: local + Value: 0 Variable (string) vaModeList Attributes @@ -100,20 +93,17 @@ Variable (string) vaModeList Text : Max. Text Size: 400 -Variable (int32) vaModePos +Variable (string) vaModeCur Attributes - Scope: local - Value: 0 + Scope : local + Text : + Max. Text Size: 400 -Text t1 +Variable (string) tSend Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 50 + Scope : local + Text : + Max. Text Size: 200 Text tEntity Attributes @@ -135,7 +125,7 @@ Text tIcon1 Text : Max. Text Size : 10 -Text tId +Text t1 Attributes Scope : local Dragging : 0 @@ -143,7 +133,17 @@ Text tId Send Component ID : disabled Associated Keyboard : none Text : - Max. Text Size : 20 + Max. Text Size : 50 + +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 Text tInstruction Attributes @@ -155,7 +155,7 @@ Text tInstruction Text : Max. Text Size : 20 -Text tTmp +Text tId Attributes Scope : local Dragging : 0 @@ -163,7 +163,7 @@ Text tTmp Send Component ID : disabled Associated Keyboard : none Text : - Max. Text Size : 80 + Max. Text Size : 20 Picture p0 Attributes @@ -257,36 +257,6 @@ Button bMode1 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 @@ -317,6 +287,36 @@ Button bMode3 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 bModeNext Attributes Scope : local @@ -394,15 +394,24 @@ Dual-state Button btOnOff1 prints tSend.txt,0 prints crcval,2 -Timer tmCooldown +Timer tmSleep Attributes Scope : local - Period (ms): 100 - Enabled : no + Period (ms): 1000 + Enabled : yes Events Timer Event - tmCooldown.en=0 + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } Timer tmSerial Attributes @@ -636,24 +645,15 @@ Timer tmSerial } } -Timer tmSleep +Timer tmCooldown Attributes Scope : local - Period (ms): 1000 - Enabled : yes + Period (ms): 100 + Enabled : no Events Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } + tmCooldown.en=0 TouchCap tc0 Attributes diff --git a/HMI/US/landscape/n2t-out/popupInSel.txt b/HMI/US/landscape/n2t-out/popupInSel.txt new file mode 100644 index 00000000..188585fd --- /dev/null +++ b/HMI/US/landscape/n2t-out/popupInSel.txt @@ -0,0 +1,940 @@ +Page popupInSel + 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 + vis bModeNext,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + 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 + 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) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + +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 (int32) vaModePos + Attributes + Scope: local + Value: 0 + +Variable (string) vaModeList + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeCur + Attributes + Scope : local + Text : + Max. Text Size: 40 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tInstruction + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tId + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) vaType + Attributes + Scope : local + Text : + Max. Text Size: 20 + +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 + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +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-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 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-10 + 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 + 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-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 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 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 + 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 bModeNext,0 + }else + { + 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 + } + if(bMode6.txt==vaModeCur.txt) + { + bMode6.pco=1374 + } + if(bMode7.txt==vaModeCur.txt) + { + bMode7.pco=1374 + } + if(bMode8.txt==vaModeCur.txt) + { + 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 + } + +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=vaModePos.val-9 + 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 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=vaModePos.val-8 + 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 bMode6 + 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-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 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=vaModePos.val-6 + 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 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=vaModePos.val-5 + 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 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=vaModePos.val-4 + 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 bMode12 + 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-"+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 bMode11 + 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-"+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 + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +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 + } + } + +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/US/portrait/diff-eu-version.txt b/HMI/US/portrait/diff-eu-version.txt index fb0b78b7..a288b1f7 100644 --- a/HMI/US/portrait/diff-eu-version.txt +++ b/HMI/US/portrait/diff-eu-version.txt @@ -1,16 +1,5 @@ --- 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 @@ -25,7 +14,7 @@ │ + // fix touch offset (Removed for US version) │ + //lcd_dev fffb 0002 0000 0020 │ page pageStartup -├── hSlider1.txt +├── cardEntities.txt │ @@ -61,14 +61,24 @@ │ vis tIcon4,0 │ vis tEntity4,0 @@ -51,7 +40,7 @@ │ { │ b[sys0].bco=defaultBcoColor │ b[sys0].pco=defaultFontColor -│ @@ -106,14 +116,20 @@ +│ @@ -136,14 +146,26 @@ │ │ Variable (string) entn4 │ Attributes @@ -65,34 +54,19 @@ │ + Text : │ + Max. Text Size: 80 │ + -│ Variable (string) strCommand -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 500 -│ -│ Variable (string) tSend -│ @@ -142,14 +158,20 @@ -│ -│ Variable (string) type4 -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 10 -│ │ +Variable (string) type5 │ + Attributes │ + Scope : local │ + Text : │ + Max. Text Size: 10 │ + -│ Number nNum1 +│ Variable (string) tSend │ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none +│ Scope : local +│ Text : +│ Max. Text Size: 200 +│ +│ Number nNum1 │ @@ -178,14 +200,23 @@ │ Scope : local │ Dragging : 0 @@ -110,20 +84,20 @@ │ + Associated Keyboard : none │ + Value : 0 │ + -│ Text tEntity1 +│ Text tHeading │ Attributes │ Scope : local │ Dragging : 0 │ Disable release event after dragging: 0 │ Send Component ID : disabled │ Associated Keyboard : none -│ @@ -218,14 +249,24 @@ +│ @@ -298,14 +329,34 @@ │ Dragging : 0 │ Disable release event after dragging: 0 │ Send Component ID : disabled │ Associated Keyboard : none -│ Text : tEntity4 -│ Max. Text Size : 30 +│ Text : +│ Max. Text Size : 50 │ │ +Text tEntity5 │ + Attributes @@ -135,21 +109,6 @@ │ + Text : tEntity5 │ + Max. Text Size : 30 │ + -│ Text tHeading -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ @@ -268,14 +309,24 @@ -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ Text :  -│ Max. Text Size : 5 -│ │ +Text tIcon5 │ + Attributes │ + Scope : local @@ -160,13 +119,13 @@ │ + Text :  │ + Max. Text Size : 5 │ + -│ Text tId +│ Picture p0 │ Attributes │ Scope : local │ Dragging : 0 │ Disable release event after dragging: 0 │ Send Component ID : disabled -│ Associated Keyboard : none +│ │ @@ -417,14 +468,42 @@ │ crcputs tSend.txt,0 │ //send cmd @@ -210,47 +169,7 @@ │ Disable release event after dragging: 0 │ Send Component ID : disabled │ State : unpressed -│ @@ -517,14 +596,39 @@ -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ -│ +Button bDown5 -│ + 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,"+entn5.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 bNext -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ @@ -674,14 +778,39 @@ +│ @@ -874,14 +953,114 @@ │ crcputs tSend.txt,0 │ //send cmd │ printh 55 bb @@ -283,34 +202,19 @@ │ + prints tSend.txt,0 │ + prints crcval,2 │ + -│ Button bText1 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ @@ -774,14 +903,39 @@ -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ -│ +Button bText5 +│ +Button bDown5 │ + Attributes │ + Scope : local │ + Dragging : 0 │ + Disable release event after dragging: 0 │ + Send Component ID : disabled │ + State : unpressed -│ + Text : -│ + Max. Text Size : 45 +│ + Text :  +│ + Max. Text Size : 10 │ + │ + Events │ + Touch Press Event -│ + tSend.txt="event,buttonPress2,"+entn5.txt+",button" +│ + tSend.txt="event,buttonPress2,"+entn5.txt+",down" │ + //send calc crc │ + btlen tSend.txt,sys0 │ + crcrest 1,0xffff // reset CRC @@ -323,21 +227,6 @@ │ + 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 -│ @@ -874,14 +1028,39 @@ -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ │ +Button bUp5 │ + Attributes │ + Scope : local @@ -363,6 +252,31 @@ │ + prints tSend.txt,0 │ + prints crcval,2 │ + +│ +Button bText5 +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + State : unpressed +│ + Text : +│ + Max. Text Size : 45 +│ + +│ + Events +│ + Touch Press Event +│ + tSend.txt="event,buttonPress2,"+entn5.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 +│ + │ Dual-state Button btOnOff1 │ Attributes │ Scope : local @@ -405,14 +319,14 @@ │ + prints tSend.txt,0 │ + prints crcval,2 │ + -│ Hotspot m0 +│ Hotspot mSpecial │ Attributes │ Scope : local │ Dragging : 0 │ Disable release event after dragging: 0 │ Send Component ID : disabled │ -│ @@ -1106,14 +1312,45 @@ +│ @@ -1123,14 +1329,45 @@ │ page popupFan │ } │ if(type4.txt=="input_sel") @@ -451,7 +365,7 @@ │ + page popupInSel │ + } │ + -│ Hotspot mSpecial +│ Hotspot mSwipeNext │ Attributes │ Scope : local │ Dragging : 0 @@ -622,1448 +536,8 @@ │ //command format pageType,specialPageName │ //write name of speical page to tId │ spstr strCommand.txt,tId.txt,"~",1 -├── tc0.txt -│ @@ -1,686 +1,397 @@ -│ -Page popupThermo -│ +Page screensaver -│ 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 -│ + recmod=1 -│ + bauds=115200 -│ 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++) -│ + 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(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) 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: 200 -│ -│ 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 -│ 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 -│ + Max. Text Size: 50 -│ -│ -Variable (string) vaModeCur3 -│ +Variable (int32) vaTap -│ Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 40 -│ + Scope: local -│ + Value: 0 -│ -│ -Variable (string) vaModeList -│ +Variable (int32) xc1 -│ Attributes -│ - 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 -│ -│ -Variable (string) vaType2 -│ +Text tAMPM -│ 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 : PM -│ + Max. Text Size : 10 -│ -│ -Variable (string) vaType3 -│ +Text tDate -│ 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 : Tuesday, 08. March 2022 -│ + Max. Text Size : 40 -│ -│ -Text heading1 -│ +Text tF1Icon -│ 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 : 10 -│ -│ -Text heading2 -│ +Text tF2Icon -│ 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 : 10 -│ -│ -Text heading3 -│ +Text tF3Icon -│ 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 : 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 -│ +Text tForecast1Val -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ + Associated Keyboard : none -│ + Text : -│ + Max. Text Size : 10 -│ -│ -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 -│ - 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 -│ +Timer tm0 -│ Attributes -│ Scope : local -│ - Period (ms): 100 -│ - Enabled : no -│ + Period (ms): 50 -│ + Enabled : yes -│ -│ Events -│ Timer Event -│ - tmCooldown.en=0 -│ + if(tc0.val!=0) -│ + { -│ + xc2.val=tch0 -│ + yc2.val=tch1 -│ + } -│ -│ Timer tmSerial -│ Attributes -│ Scope : local -│ Period (ms): 50 -│ Enabled : yes -│ -│ @@ -725,218 +436,301 @@ -│ { -│ // crc is okay -│ // here is the location where acual code should be -│ // write command to variable strCommand -│ 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) -│ + if(tInstruction.txt=="wake") -│ { -│ - // change icon -│ - 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 -│ - //current mode -│ - spstr strCommand.txt,vaModeCur.txt,"~",6 -│ - //mode list -│ - spstr strCommand.txt,vaModeList.txt,"~",7 -│ - if(vaModeList.txt=="") -│ - { -│ - vis bMode1,0 -│ - vis bMode2,0 -│ - vis bMode3,0 -│ - vis bModeNext,0 -│ - } -│ - if(bMode1.txt=="") -│ - { -│ - click bModeNext,1 -│ - click bModeNext,0 -│ - } -│ - 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 -│ - } -│ - //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=="") -│ - { -│ - vis cMode1,0 -│ - vis cMode2,0 -│ - vis cMode3,0 -│ - vis cModeNext,0 -│ - } -│ - if(cMode1.txt=="") -│ - { -│ - click cModeNext,1 -│ - click cModeNext,0 -│ - } -│ - cMode1.pco=defaultFontColor -│ - cMode2.pco=defaultFontColor -│ - cMode3.pco=defaultFontColor -│ - if(cMode1.txt==vaModeCur2.txt) -│ - { -│ - cMode1.pco=1374 -│ - } -│ - if(cMode2.txt==vaModeCur2.txt) -│ - { -│ - cMode2.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=="") -│ - { -│ - vis dMode1,0 -│ - vis dMode2,0 -│ - vis dMode3,0 -│ - vis dModeNext,0 -│ - } -│ - if(dMode1.txt=="") -│ - { -│ - click dModeNext,1 -│ - click dModeNext,0 -│ - } -│ - dMode1.pco=defaultFontColor -│ - dMode2.pco=defaultFontColor -│ - dMode3.pco=defaultFontColor -│ - if(dMode1.txt==vaModeCur3.txt) -│ - { -│ - dMode1.pco=1374 -│ - } -│ - if(dMode2.txt==vaModeCur3.txt) -│ - { -│ - dMode2.pco=1374 -│ - } -│ - if(dMode3.txt==vaModeCur3.txt) -│ - { -│ - dMode3.pco=1374 -│ - } -│ - } -│ - 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 -│ + //dim=100 -│ + click tc0,1 -│ } -│ if(tInstruction.txt=="dimmode") -│ { -│ // get value -│ spstr strCommand.txt,tTmp.txt,"~",1 -│ covx tTmp.txt,dimValue,0,0 -│ + dim=dimValue -│ // 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=="time") -│ + { -│ + //get set time to global variable -│ + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 -│ + spstr pageIcons.vaTime.txt,tTime.txt,"?",0 -│ + spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1 -│ + if(tAMPM.txt=="") -│ + { -│ + vis tAMPM,0 -│ + } -│ + spstr strCommand.txt,tTimeAdd.txt,"~",2 -│ + } -│ + if(tInstruction.txt=="date") -│ + { -│ + //get set date to global variable -│ + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 -│ + tDate.txt=pageIcons.vaDate.txt -│ + } -│ if(tInstruction.txt=="timeout") -│ { -│ //set timeout to global var -│ spstr strCommand.txt,tTmp.txt,"~",1 -│ covx tTmp.txt,sleepTimeout,0,0 -│ } -│ + if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="") -│ + { -│ + vis tMainIcon,1 -│ + vis tMainIconAlt,0 -│ + vis tMainText,1 -│ + vis tMainTextAlt,0 -│ + vis tMRIcon,0 -│ + vis tMR,0 -│ + //tMainIcon -│ + spstr strCommand.txt,tMainIcon.txt,"~",1 -│ + tMainIconAlt.txt=tMainIcon.txt -│ + //tMainText -│ + spstr strCommand.txt,tMainText.txt,"~",2 -│ + tMainTextAlt.txt=tMainText.txt -│ + //tForecast1 -│ + spstr strCommand.txt,tForecast1.txt,"~",3 -│ + //tF1Icon -│ + spstr strCommand.txt,tF1Icon.txt,"~",4 -│ + //tForecast1Val -│ + spstr strCommand.txt,tForecast1Val.txt,"~",5 -│ + //tForecast2 -│ + spstr strCommand.txt,tForecast2.txt,"~",6 -│ + //tF2Icon -│ + spstr strCommand.txt,tF2Icon.txt,"~",7 -│ + //tForecast2Val -│ + spstr strCommand.txt,tForecast2Val.txt,"~",8 -│ + //tForecast3 -│ + spstr strCommand.txt,tForecast3.txt,"~",9 -│ + //tF3Icon -│ + spstr strCommand.txt,tF3Icon.txt,"~",10 -│ + //tForecast3Val -│ + spstr strCommand.txt,tForecast3Val.txt,"~",11 -│ + //tForecast4 -│ + spstr strCommand.txt,tForecast4.txt,"~",12 -│ + //tF4Icon -│ + spstr strCommand.txt,tF4Icon.txt,"~",13 -│ + //tForecast4Val -│ + spstr strCommand.txt,tForecast4Val.txt,"~",14 -│ + //alternative layout -│ + //tMRIcon -│ + spstr strCommand.txt,tMRIcon.txt,"~",15 -│ + if(tMRIcon.txt!=""&&p0.w!=320) -│ + { -│ + //value for tMRIcon, activate alternative layout -│ + vis tMainIcon,0 -│ + vis tMainText,0 -│ + vis tMainTextAlt,1 -│ + vis tMainIconAlt,1 -│ + vis tMRIcon,1 -│ + vis tMR,1 -│ + vis tForecast1,0 -│ + vis tF1Icon,0 -│ + vis tForecast1Val,0 -│ + //move forecast values to the right -│ + tForecast4.txt=tForecast3.txt -│ + tForecast3.txt=tForecast2.txt -│ + tForecast2.txt=tForecast1.txt -│ + tForecast4Val.txt=tForecast3Val.txt -│ + tForecast3Val.txt=tForecast2Val.txt -│ + tForecast2Val.txt=tForecast1Val.txt -│ + tF4Icon.txt=tF3Icon.txt -│ + tF3Icon.txt=tF2Icon.txt -│ + tF2Icon.txt=tF1Icon.txt -│ + } -│ + //tMR -│ + spstr strCommand.txt,tMR.txt,"~",16 -│ + //statusIcon1 -│ + spstr strCommand.txt,tIcon1.txt,"~",17 -│ + spstr strCommand.txt,tTmp.txt,"~",18 -│ + covx tTmp.txt,tIcon1.pco,0,0 -│ + //statusIcon2 -│ + spstr strCommand.txt,tIcon2.txt,"~",19 -│ + spstr strCommand.txt,tTmp.txt,"~",20 -│ + covx tTmp.txt,tIcon2.pco,0,0 -│ + } -│ + if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="") -│ + { -│ + spstr strCommand.txt,tTmp.txt,"~",1 -│ + covx tTmp.txt,tTime.bco,0,0 -│ + if(tTime.bco!=screensaver.bco) -│ + { -│ + screensaver.bco=tTime.bco -│ + tAMPM.bco=tTime.bco -│ + tDate.bco=tTime.bco -│ + tMainIcon.bco=tTime.bco -│ + tMainText.bco=tTime.bco -│ + tMainIconAlt.bco=tTime.bco -│ + tMainTextAlt.bco=tTime.bco -│ + tMRIcon.bco=tTime.bco -│ + tMR.bco=tTime.bco -│ + tMRIcon.bco=tTime.bco -│ + tIcon1.bco=tTime.bco -│ + tIcon2.bco=tTime.bco -│ + tForecast1.bco=tTime.bco -│ + tForecast1Val.bco=tTime.bco -│ + tF1Icon.bco=tTime.bco -│ + tForecast2.bco=tTime.bco -│ + tForecast2Val.bco=tTime.bco -│ + tF2Icon.bco=tTime.bco -│ + tForecast3.bco=tTime.bco -│ + tForecast3Val.bco=tTime.bco -│ + tF3Icon.bco=tTime.bco -│ + tForecast4.bco=tTime.bco -│ + tForecast4Val.bco=tTime.bco -│ + tF4Icon.bco=tTime.bco -│ + tTimeAdd.bco=tTime.bco -│ + } -│ + spstr strCommand.txt,tTmp.txt,"~",2 -│ + covx tTmp.txt,tTime.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",3 -│ + covx tTmp.txt,tAMPM.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",4 -│ + covx tTmp.txt,tDate.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",5 -│ + covx tTmp.txt,tMainIcon.pco,0,0 -│ + tMainIconAlt.pco=tMainIcon.pco -│ + spstr strCommand.txt,tTmp.txt,"~",6 -│ + covx tTmp.txt,tMainText.pco,0,0 -│ + tMainTextAlt.pco=tMainText.pco -│ + spstr strCommand.txt,tTmp.txt,"~",7 -│ + covx tTmp.txt,tForecast1.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",8 -│ + covx tTmp.txt,tForecast2.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",9 -│ + covx tTmp.txt,tForecast3.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",10 -│ + covx tTmp.txt,tForecast4.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",11 -│ + covx tTmp.txt,tF1Icon.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",12 -│ + covx tTmp.txt,tF2Icon.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",13 -│ + covx tTmp.txt,tF3Icon.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",14 -│ + covx tTmp.txt,tF4Icon.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",15 -│ + covx tTmp.txt,tForecast1Val.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",16 -│ + covx tTmp.txt,tForecast2Val.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",17 -│ + covx tTmp.txt,tForecast3Val.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",18 -│ + covx tTmp.txt,tForecast4Val.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",19 -│ + covx tTmp.txt,t10.bco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",20 -│ + covx tTmp.txt,tMRIcon.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",21 -│ + covx tTmp.txt,tMR.pco,0,0 -│ + spstr strCommand.txt,tTmp.txt,"~",22 -│ + covx tTmp.txt,tTimeAdd.pco,0,0 -│ + if(tMRIcon.txt!=""&&p0.w!=320) -│ + { -│ + tF4Icon.pco=tF3Icon.pco -│ + tF3Icon.pco=tF2Icon.pco -│ + tF2Icon.pco=tF1Icon.pco -│ + tForecast4Val.pco=tForecast3Val.pco -│ + tForecast3Val.pco=tForecast2Val.pco -│ + tForecast2Val.pco=tForecast1Val.pco -│ + tForecast4.pco=tForecast3.pco -│ + tForecast3.pco=tForecast2.pco -│ + tForecast2.pco=tForecast1.pco -│ + } -│ + } -│ + if(tInstruction.txt=="notify") -│ + { -│ + spstr strCommand.txt,tNotifyHead.txt,"~",1 -│ + spstr strCommand.txt,tNotifyText.txt,"~",2 -│ + if(tNotifyHead.txt!=""||tNotifyText.txt!="") -│ + { -│ + vis tNotifyHead,1 -│ + vis tNotifyText,1 -│ + }else -│ + { -│ + vis tNotifyHead,0 -│ + vis tNotifyText,0 -│ + } -│ + tNotifyHead.bco=tTime.bco -│ + tNotifyText.bco=tTime.bco -│ + spstr strCommand.txt,tTmp.txt,"~",3 -│ + if(tTmp.txt!="") -│ + { -│ + covx tTmp.txt,tNotifyHead.pco,0,0 -│ + } -│ + spstr strCommand.txt,tTmp.txt,"~",4 -│ + if(tTmp.txt!="") -│ + { -│ + covx tTmp.txt,tNotifyText.pco,0,0 -│ + } -│ + } -│ if(tInstruction.txt=="pageType") -│ { -│ + dim=100 -│ //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 -│ + udelete u[2]+3 -│ bufferPos=0 -│ - if(tId.txt=="pageStartup") -│ - { -│ - page pageStartup -│ - } -│ - if(tId.txt=="screensaver") -│ + if(tId.txt=="popupLight") -│ { -│ - page screensaver -│ + pageIcons.tTmp1.txt=tTmp.txt -│ + page popupLight -│ } -│ - if(tId.txt=="cardEntities") -│ + if(tId.txt=="pageStartup") -│ { -│ - page cardEntities -│ + page pageStartup -│ } -│ - if(tId.txt=="cardGrid") -│ + if(tId.txt=="cardThermo") -│ { -│ - page cardGrid -│ + page cardThermo -│ } -│ - if(tId.txt=="popupLight") -│ + if(tId.txt=="cardMedia") -│ { -│ - pageIcons.tTmp1.txt=tTmp.txt -│ - page popupLight -│ + page cardMedia -│ } -│ - if(tId.txt=="popupShutter") -│ + if(tId.txt=="pageStartup") -│ { -│ - pageIcons.tTmp1.txt=tTmp.txt -│ - page popupShutter -│ + page pageStartup -│ } -│ if(tId.txt=="popupNotify") -│ { -│ page popupNotify -│ } -│ - if(tId.txt=="cardThermo") -│ + if(tId.txt=="cardGrid") -│ { -│ - page cardThermo -│ + page cardGrid -│ } -│ - if(tId.txt=="cardMedia") -│ + if(tId.txt=="cardEntities") -│ { -│ - page cardMedia -│ + page cardEntities -│ } -│ if(tId.txt=="cardAlarm") -│ { -│ page cardAlarm -│ } -│ if(tId.txt=="cardQR") -│ { -│ @@ -963,27 +757,115 @@ -│ Attributes -│ Scope : local -│ Period (ms): 1000 -│ Enabled : yes -│ -│ Events -│ Timer Event -│ - if(sleepTimeout!=0) -│ + if(sleepTimeout!=0&&dimValue!=dim) -│ { -│ sleepValue+=1 -│ if(sleepTimeout<=sleepValue) -│ { -│ sleepValue=0 -│ - click b0,1 -│ - click b0,0 -│ + dim=dimValue -│ + vaTap.val=0 -│ } -│ } -│ -│ TouchCap tc0 -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ Events -│ Touch Press Event -│ - sleepValue=0 -│ + xc1.val=tch0 -│ + yc1.val=tch1 -│ + tm0.en=1 -│ + if(tNotifyHead.txt!=""||tNotifyText.txt!="") -│ + { -│ + if(dim!=0) -│ + { -│ + tNotifyHead.txt="" -│ + tNotifyText.txt="" -│ + vis tNotifyHead,0 -│ + vis tNotifyText,0 -│ + } -│ + } -│ + dim=dimValueNormal -│ + vaTap.val+=1 -│ + covx vaTap.val,tTmp.txt,0,0 -│ + tSend.txt="event,buttonPress2,screensaver,bExit,"+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 -│ + -│ + Touch Release Event -│ + tm0.en=0 -│ + if(tch0==0) -│ + // When this is zero we can interpret that as the real end of the drag event -│ + { -│ + xcR.val=xc1.val-xc2.val -│ + ycR.val=yc1.val-yc2.val -│ + // new method -│ + // one of the difference values should be low to be a valid direction, in case it has a high value it's not a valid swipe, because it's diagonal -│ + // x difference between -125 and 125 (swipe on y-axis) -│ + if(xcR.val>-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 @@ +├── pageStartup.txt +│ @@ -138,15 +138,15 @@ │ Text tMsg3 │ Attributes │ Scope : local @@ -2075,7 +549,7 @@ │ + Text : pls check your backend configuration │ Max. Text Size : 100 │ -│ Text tSend +│ Text tVersion │ Attributes │ Scope : local │ Dragging : 0 @@ -2097,3 +571,170 @@ │ crcputs sys0,2 │ crcputs tSend.txt,0 │ //send cmd +├── popupFan.txt +│┄ ordering differences only +│ @@ -78,31 +78,31 @@ +│ Value: 1 +│ +│ Variable (int32) mode_temp +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) vaModePos +│ - Attributes +│ - Scope: local +│ - Value: 0 +│ - +│ -Variable (string) vaModeList +│ +Variable (string) vaModeCur +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 400 +│ +│ -Variable (string) vaModeCur +│ +Variable (string) vaModeList +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 400 +│ +│ +Variable (int32) vaModePos +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ Variable (string) tSend +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 200 +│ +│ Text tEntity +│ @@ -253,60 +253,60 @@ +│ crcputs tSend.txt,0 +│ //send cmd +│ printh 55 bb +│ prints sys0,2 +│ prints tSend.txt,0 +│ prints crcval,2 +│ +│ -Button bMode3 +│ +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-1 +│ + 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 bMode2 +│ +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-2 +│ + 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 +├── screensaver.txt +│ @@ -64,52 +64,52 @@ +│ +│ Variable (string) tSend +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 50 +│ +│ -Variable (int32) xc1 +│ +Variable (int32) xcR +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) yc1 +│ +Variable (int32) ycR +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) xc2 +│ +Variable (int32) yc2 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) yc2 +│ +Variable (int32) xc2 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) ycR +│ +Variable (int32) yc1 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) xcR +│ +Variable (int32) xc1 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ 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 tDate +│ 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 c003a7bd..24d7ee26 100644 --- a/HMI/US/portrait/diff-filtered.txt +++ b/HMI/US/portrait/diff-filtered.txt @@ -1,115 +1,5 @@ -+++ /dev/fd/62 2022-10-30 14:26:53.333331299 +0000 -++1,9 @@ -+ -+ -+ness.txt -+on.txt -+1.txt -+.txt -+ -+lider1.txt -+14 +116,20 @@ -+e (string) strCommand -+ Max. Text Size: 500 -+14 +158,20 @@ -+ -+e (string) type4 -+ Max. Text Size: 10 -+ -+e (string) type5 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 10 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ntity1 -+14 +249,24 @@ -+ Text : tEntity4 -+ Max. Text Size : 30 -+eading -+14 +309,24 @@ -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+con5 -+ Associated Keyboard : none -+ Text :  -+ Max. Text Size : 5 -+d -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+14 +596,39 @@ -+bDown5 -+ Text :  -+ tSend.txt="event,buttonPress2,"+entn5.txt+",down" -+bNext -+14 +778,39 @@ -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+bStop5 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ tSend.txt="event,buttonPress2,"+entn5.txt+",stop" -+bText1 -+14 +903,39 @@ -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+bText5 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 45 -+ tSend.txt="event,buttonPress2,"+entn5.txt+",button" -+bUp1 -+14 +1028,39 @@ -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+bUp5 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ Max. Text Size : 10 -+ tSend.txt="event,buttonPress2,"+entn5.txt+",up" -+ m0 -+,14 +1312,45 @@ ++++ /dev/fd/62 2022-10-30 14:43:58.947875548 +0000 ++,14 +1329,45 @@ + page popupFan + if(type4.txt=="input_sel") + page popupInSel @@ -117,658 +7,54 @@ + { + page popupInSel + } -+ mSpecial +,14 +2079,163 @@ + if(type5.txt=="button"||type5.txt=="input_sel") -+0.txt -+6 +1,397 @@ -+pupThermo -+reensaver -+ Locked : no -+ Swide up page ID : disabled -+ 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 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 -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ popupThermo.bco=defaultBcoColor -+ for(sys0=0;sys0<43;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(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 -+ -+e (string) entn -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 80 -+ -+e (int32) mode -+ributes -+ Scope: local -+e (string) strCommand -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 500 -+ Max. Text Size: 200 -+ -+e (string) tId -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ Max. Text Size: 25 -+ -+e (string) tInstruction -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ Max. Text Size: 50 ++ tSend.txt+="mode-preset_modes,"+tTmp.txt ++ tSend.txt+="mode-preset_modes,"+tTmp.txt ++reensaver.txt ++2 +64,52 @@ + +e (string) tSend +ributes + Scope : local + Text : -+ Max. Text Size: 200 + Max. Text Size: 50 + -+e (string) tTmp -+ Scope : local -+ Text : -+ Max. Text Size: 80 -+ -+e (string) vaModeCur -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 40 -+ -+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 -+ -+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) yc1 +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 : 10 ++e (int32) xc2 ++e (int32) yc2 ++ributes ++ Scope: local ++ Value: 0 + -+e (string) vaType2 -+MPM ++e (int32) yc2 ++e (int32) xc2 +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 ++ Scope: local ++ Value: 0 + -+e (string) vaType3 -+ate ++e (int32) ycR ++e (int32) yc1 +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 ++ Scope: local ++ Value: 0 + -+ading1 -+1Icon ++e (int32) xcR ++e (int32) xc1 +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 -+ 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 -+ -+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 : 40 -+ Max. Text Size : 10 -+ -+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 -+ 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 -+ 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 -+ -+bModeNext -+orecast4 -+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 -+ //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 -+ } -+ -+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 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 10 -+ -+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 ++ Scope: local ++ Value: 0 + +ime +ributes @@ -777,715 +63,12 @@ + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none ++ Text : 21:32 + Text : 21:32 + Max. Text Size : 15 + -+imeAdd ++ate +ributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ 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 -+ -+dModeNext -+ p0 -+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 -+ 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 -+ } -+ -+mCooldown -+m0 -+ributes -+ Scope : local -+ Period (ms): 100 -+ Enabled : no -+ Period (ms): 50 -+ Enabled : yes -+ -+nts -+ Timer Event -+ tmCooldown.en=0 -+ if(tc0.val!=0) -+ { -+ xc2.val=tch0 -+ yc2.val=tch1 -+ } -+ -+mSerial -+ributes -+ Scope : local -+ Period (ms): 50 -+ Enabled : yes -+ -+218 +436,301 @@ -+ { -+ // crc is okay -+ // here is the location where acual code should be -+ // write command to variable strCommand -+ 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) -+ if(tInstruction.txt=="wake") -+ { -+ // change icon -+ 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 -+ //current mode -+ spstr strCommand.txt,vaModeCur.txt,"~",6 -+ //mode list -+ spstr strCommand.txt,vaModeList.txt,"~",7 -+ if(vaModeList.txt=="") -+ { -+ vis bMode1,0 -+ vis bMode2,0 -+ vis bMode3,0 -+ vis bModeNext,0 -+ } -+ if(bMode1.txt=="") -+ { -+ click bModeNext,1 -+ click bModeNext,0 -+ } -+ 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 -+ } -+ //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=="") -+ { -+ vis cMode1,0 -+ vis cMode2,0 -+ vis cMode3,0 -+ vis cModeNext,0 -+ } -+ if(cMode1.txt=="") -+ { -+ click cModeNext,1 -+ click cModeNext,0 -+ } -+ cMode1.pco=defaultFontColor -+ cMode2.pco=defaultFontColor -+ cMode3.pco=defaultFontColor -+ if(cMode1.txt==vaModeCur2.txt) -+ { -+ cMode1.pco=1374 -+ } -+ if(cMode2.txt==vaModeCur2.txt) -+ { -+ cMode2.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=="") -+ { -+ vis dMode1,0 -+ vis dMode2,0 -+ vis dMode3,0 -+ vis dModeNext,0 -+ } -+ if(dMode1.txt=="") -+ { -+ click dModeNext,1 -+ click dModeNext,0 -+ } -+ dMode1.pco=defaultFontColor -+ dMode2.pco=defaultFontColor -+ dMode3.pco=defaultFontColor -+ if(dMode1.txt==vaModeCur3.txt) -+ { -+ dMode1.pco=1374 -+ } -+ if(dMode2.txt==vaModeCur3.txt) -+ { -+ dMode2.pco=1374 -+ } -+ if(dMode3.txt==vaModeCur3.txt) -+ { -+ dMode3.pco=1374 -+ } -+ } -+ 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 -+ //dim=100 -+ click tc0,1 -+ } -+ if(tInstruction.txt=="dimmode") -+ { -+ // get value -+ spstr strCommand.txt,tTmp.txt,"~",1 -+ covx tTmp.txt,dimValue,0,0 -+ dim=dimValue -+ // 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=="time") -+ { -+ //get set time to global variable -+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 -+ spstr pageIcons.vaTime.txt,tTime.txt,"?",0 -+ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1 -+ if(tAMPM.txt=="") -+ { -+ vis tAMPM,0 -+ } -+ spstr strCommand.txt,tTimeAdd.txt,"~",2 -+ } -+ if(tInstruction.txt=="date") -+ { -+ //get set date to global variable -+ spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 -+ tDate.txt=pageIcons.vaDate.txt -+ } -+ if(tInstruction.txt=="timeout") -+ { -+ //set timeout to global var -+ spstr strCommand.txt,tTmp.txt,"~",1 -+ covx tTmp.txt,sleepTimeout,0,0 -+ } -+ if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="") -+ { -+ vis tMainIcon,1 -+ vis tMainIconAlt,0 -+ vis tMainText,1 -+ vis tMainTextAlt,0 -+ vis tMRIcon,0 -+ vis tMR,0 -+ //tMainIcon -+ spstr strCommand.txt,tMainIcon.txt,"~",1 -+ tMainIconAlt.txt=tMainIcon.txt -+ //tMainText -+ spstr strCommand.txt,tMainText.txt,"~",2 -+ tMainTextAlt.txt=tMainText.txt -+ //tForecast1 -+ spstr strCommand.txt,tForecast1.txt,"~",3 -+ //tF1Icon -+ spstr strCommand.txt,tF1Icon.txt,"~",4 -+ //tForecast1Val -+ spstr strCommand.txt,tForecast1Val.txt,"~",5 -+ //tForecast2 -+ spstr strCommand.txt,tForecast2.txt,"~",6 -+ //tF2Icon -+ spstr strCommand.txt,tF2Icon.txt,"~",7 -+ //tForecast2Val -+ spstr strCommand.txt,tForecast2Val.txt,"~",8 -+ //tForecast3 -+ spstr strCommand.txt,tForecast3.txt,"~",9 -+ //tF3Icon -+ spstr strCommand.txt,tF3Icon.txt,"~",10 -+ //tForecast3Val -+ spstr strCommand.txt,tForecast3Val.txt,"~",11 -+ //tForecast4 -+ spstr strCommand.txt,tForecast4.txt,"~",12 -+ //tF4Icon -+ spstr strCommand.txt,tF4Icon.txt,"~",13 -+ //tForecast4Val -+ spstr strCommand.txt,tForecast4Val.txt,"~",14 -+ //alternative layout -+ //tMRIcon -+ spstr strCommand.txt,tMRIcon.txt,"~",15 -+ if(tMRIcon.txt!=""&&p0.w!=320) -+ { -+ //value for tMRIcon, activate alternative layout -+ vis tMainIcon,0 -+ vis tMainText,0 -+ vis tMainTextAlt,1 -+ vis tMainIconAlt,1 -+ vis tMRIcon,1 -+ vis tMR,1 -+ vis tForecast1,0 -+ vis tF1Icon,0 -+ vis tForecast1Val,0 -+ //move forecast values to the right -+ tForecast4.txt=tForecast3.txt -+ tForecast3.txt=tForecast2.txt -+ tForecast2.txt=tForecast1.txt -+ tForecast4Val.txt=tForecast3Val.txt -+ tForecast3Val.txt=tForecast2Val.txt -+ tForecast2Val.txt=tForecast1Val.txt -+ tF4Icon.txt=tF3Icon.txt -+ tF3Icon.txt=tF2Icon.txt -+ tF2Icon.txt=tF1Icon.txt -+ } -+ //tMR -+ spstr strCommand.txt,tMR.txt,"~",16 -+ //statusIcon1 -+ spstr strCommand.txt,tIcon1.txt,"~",17 -+ spstr strCommand.txt,tTmp.txt,"~",18 -+ covx tTmp.txt,tIcon1.pco,0,0 -+ //statusIcon2 -+ spstr strCommand.txt,tIcon2.txt,"~",19 -+ spstr strCommand.txt,tTmp.txt,"~",20 -+ covx tTmp.txt,tIcon2.pco,0,0 -+ } -+ if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="") -+ { -+ spstr strCommand.txt,tTmp.txt,"~",1 -+ covx tTmp.txt,tTime.bco,0,0 -+ if(tTime.bco!=screensaver.bco) -+ { -+ screensaver.bco=tTime.bco -+ tAMPM.bco=tTime.bco -+ tDate.bco=tTime.bco -+ tMainIcon.bco=tTime.bco -+ tMainText.bco=tTime.bco -+ tMainIconAlt.bco=tTime.bco -+ tMainTextAlt.bco=tTime.bco -+ tMRIcon.bco=tTime.bco -+ tMR.bco=tTime.bco -+ tMRIcon.bco=tTime.bco -+ tIcon1.bco=tTime.bco -+ tIcon2.bco=tTime.bco -+ tForecast1.bco=tTime.bco -+ tForecast1Val.bco=tTime.bco -+ tF1Icon.bco=tTime.bco -+ tForecast2.bco=tTime.bco -+ tForecast2Val.bco=tTime.bco -+ tF2Icon.bco=tTime.bco -+ tForecast3.bco=tTime.bco -+ tForecast3Val.bco=tTime.bco -+ tF3Icon.bco=tTime.bco -+ tForecast4.bco=tTime.bco -+ tForecast4Val.bco=tTime.bco -+ tF4Icon.bco=tTime.bco -+ tTimeAdd.bco=tTime.bco -+ } -+ spstr strCommand.txt,tTmp.txt,"~",2 -+ covx tTmp.txt,tTime.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",3 -+ covx tTmp.txt,tAMPM.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",4 -+ covx tTmp.txt,tDate.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",5 -+ covx tTmp.txt,tMainIcon.pco,0,0 -+ tMainIconAlt.pco=tMainIcon.pco -+ spstr strCommand.txt,tTmp.txt,"~",6 -+ covx tTmp.txt,tMainText.pco,0,0 -+ tMainTextAlt.pco=tMainText.pco -+ spstr strCommand.txt,tTmp.txt,"~",7 -+ covx tTmp.txt,tForecast1.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",8 -+ covx tTmp.txt,tForecast2.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",9 -+ covx tTmp.txt,tForecast3.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",10 -+ covx tTmp.txt,tForecast4.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",11 -+ covx tTmp.txt,tF1Icon.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",12 -+ covx tTmp.txt,tF2Icon.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",13 -+ covx tTmp.txt,tF3Icon.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",14 -+ covx tTmp.txt,tF4Icon.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",15 -+ covx tTmp.txt,tForecast1Val.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",16 -+ covx tTmp.txt,tForecast2Val.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",17 -+ covx tTmp.txt,tForecast3Val.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",18 -+ covx tTmp.txt,tForecast4Val.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",19 -+ covx tTmp.txt,t10.bco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",20 -+ covx tTmp.txt,tMRIcon.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",21 -+ covx tTmp.txt,tMR.pco,0,0 -+ spstr strCommand.txt,tTmp.txt,"~",22 -+ covx tTmp.txt,tTimeAdd.pco,0,0 -+ if(tMRIcon.txt!=""&&p0.w!=320) -+ { -+ tF4Icon.pco=tF3Icon.pco -+ tF3Icon.pco=tF2Icon.pco -+ tF2Icon.pco=tF1Icon.pco -+ tForecast4Val.pco=tForecast3Val.pco -+ tForecast3Val.pco=tForecast2Val.pco -+ tForecast2Val.pco=tForecast1Val.pco -+ tForecast4.pco=tForecast3.pco -+ tForecast3.pco=tForecast2.pco -+ tForecast2.pco=tForecast1.pco -+ } -+ } -+ if(tInstruction.txt=="notify") -+ { -+ spstr strCommand.txt,tNotifyHead.txt,"~",1 -+ spstr strCommand.txt,tNotifyText.txt,"~",2 -+ if(tNotifyHead.txt!=""||tNotifyText.txt!="") -+ { -+ vis tNotifyHead,1 -+ vis tNotifyText,1 -+ }else -+ { -+ vis tNotifyHead,0 -+ vis tNotifyText,0 -+ } -+ tNotifyHead.bco=tTime.bco -+ tNotifyText.bco=tTime.bco -+ spstr strCommand.txt,tTmp.txt,"~",3 -+ if(tTmp.txt!="") -+ { -+ covx tTmp.txt,tNotifyHead.pco,0,0 -+ } -+ spstr strCommand.txt,tTmp.txt,"~",4 -+ if(tTmp.txt!="") -+ { -+ covx tTmp.txt,tNotifyText.pco,0,0 -+ } -+ } -+ if(tInstruction.txt=="pageType") -+ { -+ dim=100 -+ //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 -+ udelete u[2]+3 -+ bufferPos=0 -+ if(tId.txt=="pageStartup") -+ { -+ page pageStartup -+ } -+ if(tId.txt=="screensaver") -+ if(tId.txt=="popupLight") -+ { -+ page screensaver -+ pageIcons.tTmp1.txt=tTmp.txt -+ page popupLight -+ } -+ if(tId.txt=="cardEntities") -+ if(tId.txt=="pageStartup") -+ { -+ page cardEntities -+ page pageStartup -+ } -+ if(tId.txt=="cardGrid") -+ if(tId.txt=="cardThermo") -+ { -+ page cardGrid -+ page cardThermo -+ } -+ if(tId.txt=="popupLight") -+ if(tId.txt=="cardMedia") -+ { -+ pageIcons.tTmp1.txt=tTmp.txt -+ page popupLight -+ page cardMedia -+ } -+ if(tId.txt=="popupShutter") -+ if(tId.txt=="pageStartup") -+ { -+ pageIcons.tTmp1.txt=tTmp.txt -+ page popupShutter -+ page pageStartup -+ } -+ if(tId.txt=="popupNotify") -+ { -+ page popupNotify -+ } -+ if(tId.txt=="cardThermo") -+ if(tId.txt=="cardGrid") -+ { -+ page cardThermo -+ page cardGrid -+ } -+ if(tId.txt=="cardMedia") -+ if(tId.txt=="cardEntities") -+ { -+ page cardMedia -+ page cardEntities -+ } -+ if(tId.txt=="cardAlarm") -+ { -+ page cardAlarm -+ } -+ if(tId.txt=="cardQR") -+ { -+27 +757,115 @@ -+ributes -+ Scope : local -+ Period (ms): 1000 -+ Enabled : yes -+ -+nts -+ Timer Event -+ if(sleepTimeout!=0) -+ if(sleepTimeout!=0&&dimValue!=dim) -+ { -+ sleepValue+=1 -+ if(sleepTimeout<=sleepValue) -+ { -+ sleepValue=0 -+ click b0,1 -+ click b0,0 -+ dim=dimValue -+ vaTap.val=0 -+ } -+ } -+ -+p tc0 -+ributes -+ Scope: local -+ Value: 0 -+ -+nts -+ Touch Press Event -+ sleepValue=0 -+ xc1.val=tch0 -+ yc1.val=tch1 -+ tm0.en=1 -+ if(tNotifyHead.txt!=""||tNotifyText.txt!="") -+ { -+ if(dim!=0) -+ { -+ tNotifyHead.txt="" -+ tNotifyText.txt="" -+ vis tNotifyHead,0 -+ vis tNotifyText,0 -+ } -+ } -+ dim=dimValueNormal -+ vaTap.val+=1 -+ covx vaTap.val,tTmp.txt,0,0 -+ tSend.txt="event,buttonPress2,screensaver,bExit,"+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 -+ -+ Touch Release Event -+ tm0.en=0 -+ if(tch0==0) -+ // When this is zero we can interpret that as the real end of the drag event -+ { -+ xcR.val=xc1.val-xc2.val -+ ycR.val=yc1.val-yc2.val -+ // new method -+ // one of the difference values should be low to be a valid direction, in case it has a high value it's not a valid swipe, because it's diagonal -+ // x difference between -125 and 125 (swipe on y-axis) -+ if(xcR.val>-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 -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : please check your backend configuration -+ Text : pls check your backend configuration -+ Max. Text Size : 100 -+ -+end -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+15 +173,15 @@ -+ Max. Text Size : 10 -+ -+nts -+ Touch Press Event -+ recmod=1 -+ bauds=115200 -+ // 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 -Binary file (standard input) matches diff --git a/HMI/US/portrait/n2t-out-visual/cardAlarm.txt b/HMI/US/portrait/n2t-out-visual/cardAlarm.txt new file mode 100644 index 00000000..2507bf41 --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/cardAlarm.txt @@ -0,0 +1,1499 @@ +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) strCommand + Attributes + ID : 6 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) entn + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 80 + +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 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 + +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 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 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 + +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 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 + +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 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 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 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 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 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 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 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="" + +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 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 + +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 + +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(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.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 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) + { + 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 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.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 btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 267 + y coordinate : 306 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + 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 + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Hotspot mSwipeNext + Attributes + ID : 49 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 310 + y coordinate : 5 + Width : 8 + Height : 470 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bNext,1 + +Hotspot mSwipeUp + Attributes + ID : 50 + 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 + +Hotspot mSwipePrev + Attributes + ID : 51 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 470 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Timer tmSerial + Attributes + ID : 3 + 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(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.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 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) + { + 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 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.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 btDetail + 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 + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +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 mSwipeUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,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 + +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(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.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 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) + { + 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 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.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 btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 391 + y coordinate : 200 + 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 + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Hotspot mSwipeNext + Attributes + ID : 34 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 440 + y coordinate : 5 + Width : 40 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bNext,1 + +Hotspot mSwipeUp + Attributes + ID : 35 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 12 + y coordinate : 0 + Width : 426 + Height : 9 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Hotspot mSwipePrev + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 9 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Timer tmSerial + Attributes + ID : 3 + 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(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/cardAlarm.txt b/HMI/n2t-out/cardAlarm.txt new file mode 100644 index 00000000..afd86599 --- /dev/null +++ b/HMI/n2t-out/cardAlarm.txt @@ -0,0 +1,914 @@ +Page cardAlarm + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tInstruction,0 + vis tTmp,0 + vis tId,0 + vis arm1,0 + vis arm2,0 + vis arm3,0 + vis arm4,0 + vis b0,0 + vis b1,0 + vis b2,0 + vis b3,0 + vis b4,0 + vis b5,0 + vis b6,0 + vis b7,0 + vis b8,0 + vis b9,0 + vis b10,0 + vis b11,0 + vis tCode,0 + vis bPrev,0 + vis bNext,0 + cardAlarm.bco=defaultBcoColor + for(sys0=0;sys0<40;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + } + if(defaultBcoColor==0) + { + tCode.bco=6371 + tCode.pco=40179 + } + if(defaultBcoColor==6371) + { + tCode.bco=10565 + tCode.pco=40179 + } + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) va1 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va2 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va3 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va4 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) vaAddBtn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +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 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 tCode + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +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,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 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 1 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"1" + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 2 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"2" + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 3 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"3" + +Button b3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 4 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"4" + +Button b4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 5 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"5" + +Button b5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 6 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"6" + +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 7 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"7" + +Button b7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 8 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"8" + +Button b8 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 9 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"9" + +Button b9 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + if(vaAddBtn.txt!="") + { + tSend.txt+=vaAddBtn.txt+",button" + }else + { + tSend.txt+=entn.txt+",opnSensorNotify" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 0 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"0" + +Button arm1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va1.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va3.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va2.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va4.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : CLR + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt="" + +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 mSwipeUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,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 + +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(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.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 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) + { + 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 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.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 btDetail + 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 + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +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 mSwipeUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,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 + +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(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos-125&&xcR.val<125) + { + //tStatusNew.txt="x low, -> y" + // check if below minimum value (change is negative) + if(ycR.val<-80) + { + //tDirNew.txt="down" + tSend.txt="event,buttonPress2,screensaver,swipeDown" + }else if(ycR.val>80) + { + //tDirNew.txt="up" + tSend.txt="event,buttonPress2,screensaver,swipeUp" + }else + { + //tDirNew.txt="invalid" + } + // y difference between -125 and 125 (swipe on x-axis) + }else if(ycR.val>-125&&ycR.val<125) + { + //tStatusNew.txt="y low, -> x" + if(xcR.val<-80) + { + //tDirNew.txt="right" + tSend.txt="event,buttonPress2,screensaver,swipeRight" + }else if(xcR.val>80) + { + //tDirNew.txt="left" + tSend.txt="event,buttonPress2,screensaver,swipeLeft" + }else + { + //tDirNew.txt="invalid" + } + //diagonal swipe invalid + }else + { + //tStatusNew.txt="invalid" + //tDirNew.txt="diagonal" + } + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + From 75effc896ab751dba9bde9c3016b500d9d1c8a0e Mon Sep 17 00:00:00 2001 From: Jens Hartlep Date: Sun, 30 Oct 2022 15:48:44 +0100 Subject: [PATCH 4/7] removed sleep of 3 seconds for media play/pause --- ioBroker/NsPanelTs.ts | 370 +++++++++++++------------ ioBroker/NsPanelTs_without_Examples.ts | 30 +- 2 files changed, 213 insertions(+), 187 deletions(-) diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index b8c66cf4..a205d0fd 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -63,12 +63,13 @@ ReleaseNotes: - 26.10.2022 - v3.5.0.1 Fix Thermostat for tado Support (by Sternmiere) - 27.10.2022 - v3.5.0.1 Add VirtualDevice Gate - 27.10.2022 - v3.5.0.2 Applied Boy Scout Rule (Fixed some typos, changed var to let, fixed min/max colorTemp Bug) + - 27.10.2022 - v3.5.0.3 Fixed Media Play/Pause icon for alexa (and others) devices Wenn Rule definiert, dann können die Hardware-Tasten ebenfalls für Seitensteuerung (dann nicht mehr als Relais) genutzt werden -Tasmota Konsole: +Tasmota Konsole: Rule2 on Button1#state do Publish %topic%/%prefix%/RESULT {"CustomRecv":"event,button1"} endon on Button2#state do Publish %topic%/%prefix%/RESULT {"CustomRecv":"event,button2"} endon Rule2 1 (Rule aktivieren) - Rule2 0 (Rule deaktivieren) + Rule2 0 (Rule deaktivieren) Mögliche Seiten-Ansichten: screensaver Page - wird nach definiertem Zeitraum (config) mit Dimm-Modus aktiv (Uhrzeit, Datum, Aktuelle Temperatur mit Symbol) @@ -86,39 +87,39 @@ Popup-Pages: popupNotify Page - Info - Seite mit Headline Text und Buttons - Intern für manuelle Updates / Extern zur Befüllung von Datenpunkten unter 0_userdata screensaver Notify - Über zwei externe Datenpunkte in 0_userdata können "Headline" und "Text" an den Screensaver zur Info gesendet werden -Mögliche Aliase: (Vorzugsweise mit ioBroker-Adapter "Geräte verwalten" konfigurieren, da SET, GET, ACTUAL, etc. verwendet werden) +Mögliche Aliase: (Vorzugsweise mit ioBroker-Adapter "Geräte verwalten" konfigurieren, da SET, GET, ACTUAL, etc. verwendet werden) Info - Werte aus Datenpunkt Schieberegler - Slider numerische Werte (SET/ACTUAL) - Lautstärke - Volume (SET/ACTUAL) und MUTE - Lautstärke-Gruppe - analog Lautstärke + Lautstärke - Volume (SET/ACTUAL) und MUTE + Lautstärke-Gruppe - analog Lautstärke Licht - An/Aus (Schalter) Steckdose - An/Aus (Schalter) Dimmer - An/Aus, Brightness - Farbtemperatur - An/Aus, Farbtemperatur und Brightness - HUE-Licht - Zum Schalten von Color-Leuchtmitteln über HUE-Wert, Brightness, Farbtemperatur, An/Aus (HUE kann auch fehlen) - RGB-Licht - RGB-Leuchtmitteln/Stripes welche Rot/Grün/ und Blau separat benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur - RGB-Licht-einzeln - RGB-Leuchtmitteln/Stripes welche HEX-Farbwerte benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur - Jalousien - Up, Stop, Down, Position - Fenster - Sensor open - Tür - Sensor open + Farbtemperatur - An/Aus, Farbtemperatur und Brightness + HUE-Licht - Zum Schalten von Color-Leuchtmitteln über HUE-Wert, Brightness, Farbtemperatur, An/Aus (HUE kann auch fehlen) + RGB-Licht - RGB-Leuchtmitteln/Stripes welche Rot/Grün/ und Blau separat benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur + RGB-Licht-einzeln - RGB-Leuchtmitteln/Stripes welche HEX-Farbwerte benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur + Jalousien - Up, Stop, Down, Position + Fenster - Sensor open + Tür - Sensor open Verschluss - Türschloss SET/ACTUAL/OPEN Taste - Für Szenen oder Radiosender, etc. --> Nur Funktionsaufruf - Kein Taster wie MonoButton - True/False Tastensensor - analog Taste - Thermostat - Aktuelle Raumtemperatur, Setpoint, etc. + Thermostat - Aktuelle Raumtemperatur, Setpoint, etc. Klimaanlage - Buttons zur Steuerung der Klimaanlage im unteren Bereich Temperatur - Anzeige von Temperatur - Datenpunkten, analog Info Feuchtigkeit - Anzeige von Humidity - Datenpunkten, analog Info - Medien - Steuerung von Alexa - Über Alias-Manager im Verzeichnis Player automatisch anlegen (Geräte-Manager funktioniert nicht) + Medien - Steuerung von Alexa - Über Alias-Manager im Verzeichnis Player automatisch anlegen (Geräte-Manager funktioniert nicht) Wettervorhersage - Aktuelle Außen-Temperatur (Temp) und aktuelles AccuWeather-Icon (Icon) für Screensaver Interne Sonoff-Sensoren (über Tasmota): ESP-Temperatur - wird in 0_userdata.0. abgelegt, kann als Alias importiert werden --> SetOption146 1 Temperatur - Raumtemperatur - wird in 0_userdata.0. abgelegt, kann als Alias importiert werden - (!!! Achtung: der interne Sonoff-Sensor liefert keine exakten Daten, da das NSPanel-Board und der ESP selbst Hitze produzieren !!! + (!!! Achtung: der interne Sonoff-Sensor liefert keine exakten Daten, da das NSPanel-Board und der ESP selbst Hitze produzieren !!! ggf. Offset einplanen oder besser einen externen Sensor über Zigbee etc. verwenden) Timestamp - wird in 0_userdata.0. Zeitpunkt der letzten Sensorübertragung -Tasmota-Status0 - (zyklische Ausführung) +Tasmota-Status0 - (zyklische Ausführung) liefert relevanten Tasmota-Informationen und kann bei Bedarf in "function get_tasmota_status0()" erweitert werden. Daten werden in 0_userdata.0. abgelegt Erforderliche Adapter: @@ -133,7 +134,7 @@ Upgrades in Konsole: Tasmota BerryDriver : Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1 TFT EU STABLE Version : FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v3.5.0.tft --------------------------------------------------------------------------------------- -*/ +*/ let Icons = new IconsSelector(); let timeoutSlider: any; let manually_Update = false; @@ -357,7 +358,7 @@ let Subpages_1: PageEntities = }; //Subpage 2 von Subpages_1 - let WLAN: PageQR = + let WLAN: PageQR = { "type": "cardQR", "heading": "Gäste WLAN", @@ -397,65 +398,65 @@ let Radiosender: PageGrid = // NEW: Neue Definition von Medien-Aliasen // adapterPlayerInstance = alexa2.0. or spotify-premium.0. or sonos.0. or chromecast.0. // MEDIA ALIASE können auch per JS-Script erstellt werden https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-ALIAS-Definitionen#medien---cardmedia -let Alexa: PageMedia = +let Alexa: PageMedia = { "type": "cardMedia", "heading": "Alexa", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.NSPanel_1.Media.PlayerAlexa2", + "items": [{ + id: "alias.0.NSPanel_1.Media.PlayerAlexa2", adapterPlayerInstance: "alexa2.0.", - mediaDevice: "G0XXXXXXXXXXXXXX", + mediaDevice: "G0XXXXXXXXXXXXXX", speakerList: ['Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche','Echo Spot Buero'] }] }; -let Sonos: PageMedia = +let Sonos: PageMedia = { "type": "cardMedia", "heading": "Sonos", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.NSPanel_1.Media.PlayerSonos", + "items": [{ + id: "alias.0.NSPanel_1.Media.PlayerSonos", adapterPlayerInstance: "sonos.0.", mediaDevice: "192_168_1_212", speakerList: ['Terrasse'] }] }; -let SpotifyPremium: PageMedia = +let SpotifyPremium: PageMedia = { "type": "cardMedia", "heading": "Spotify-Premium", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.NSPanel_1.Media.PlayerSpotifyPremium", + "items": [{ + id: "alias.0.NSPanel_1.Media.PlayerSpotifyPremium", adapterPlayerInstance: "spotify-premium.0.", speakerList: ['LENOVO-W11-01','Terrasse','Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche','Echo Spot Buero'] - }] + }] }; -let SqueezeboxRPC: PageMedia = +let SqueezeboxRPC: PageMedia = { "type": "cardMedia", "heading": "SqueezeboxRPC", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.Media.LMS.SqueezePlay", + "items": [{ + id: "alias.0.Media.LMS.SqueezePlay", adapterPlayerInstance: "squeezeboxrpc.0.Players.SqueezePlay.", speakerList: ['SqueezePlay'] - }] + }] }; -let Buero_Themostat: PageThermo = +let Buero_Themostat: PageThermo = { "type": "cardThermo", "heading": "Test Thermostat", @@ -465,7 +466,7 @@ let Buero_Themostat: PageThermo = "items": [{ id: "alias.0.NSPanel_1.Thermostat_Buero", minValue: 50, maxValue: 300 }] }; -let Buero_Klimaanlage: PageThermo = +let Buero_Klimaanlage: PageThermo = { "type": "cardThermo", "heading": "Test Klimaanlage", @@ -475,7 +476,7 @@ let Buero_Klimaanlage: PageThermo = "items": [{ id: "alias.0.NSPanel_1.TestKlimaanlage", minValue: 50, maxValue: 250}] }; -let Buero_Alarm: PageAlarm = +let Buero_Alarm: PageAlarm = { "type": "cardAlarm", "heading": "Alarm", @@ -492,7 +493,7 @@ let Service: PageEntities = "heading": "NSPanel Service", "useColor": true, "subPage": false, - "parent": undefined, + "parent": undefined, "items": [ { id: "alias.0.NSPanel_1.NSPanel_AutoUpdate", name: "Auto-Updates" ,icon: "update", offColor: MSRed, onColor: MSGreen}, { navigate: true, id: "NSPanel_Infos", icon: "information-outline", onColor: White, name: "NSPanel Infos"}, @@ -610,8 +611,8 @@ export const config: Config = { active: 100, //Standard-Brightness TFT screenSaverDoubleClick: true, locale: 'de-DE', // en-US, de-DE, nl-NL, da-DK, es-ES, fr-FR, it-IT, ru-RU, etc. - timeFormat: '%H:%M', // currently not used - dateFormat: '%A, %d. %B %Y', // currently not used + timeFormat: '%H:%M', // currently not used + dateFormat: '%A, %d. %B %Y', // currently not used weatherEntity: 'alias.0.Wetter', // Dieser Alias muss erstellt werden, damit die 4 kleineren Icons (Wetter oder DP) angezeigt werden können defaultOffColor: Off, defaultOnColor: On, @@ -625,11 +626,11 @@ export const config: Config = { SpotifyPremium, //Beispiel-Seite Alexa, //Beispiel-Seite Buero_Seite_2, //Beispiel-Seite - Buero_Klimaanlage, //Beispiel-Seite + Buero_Klimaanlage, //Beispiel-Seite Button_1, //Beispiel-Seite Test_Licht1, //Beispiel-Seite Test_Licht2, //Beispiel-Seite - Test_Funktionen, //Beispiel-Seite + Test_Funktionen, //Beispiel-Seite Fenster_1, //Beispiel-Seite Subpages_1, //Beispiel-Seite Buero_Themostat, //Beispiel-Seite @@ -644,7 +645,7 @@ export const config: Config = { NSPanel_Firmware_Updates, //Beispiel-Unterseite Subpage2_Level_2 ], - button1Page: button1Page, //Beispiel-Seite auf Button 1, wenn Rule2 definiert - Wenn nicht definiert --> button1Page: null, + button1Page: button1Page, //Beispiel-Seite auf Button 1, wenn Rule2 definiert - Wenn nicht definiert --> button1Page: null, button2Page: button2Page //Beispiel-Seite auf Button 2, wenn Rule2 definiert - Wenn nicht definiert --> button1Page: null, }; @@ -704,14 +705,14 @@ function ScreensaverDimmode(timeDimMode: DimMode) { } } catch (err) { console.warn('function ScreensaverDimmode: ' + err.message); - } + } } async function InitWeatherForecast() { try { //----Möglichkeit, im Screensaver zwischen Accu-Weather Forecast oder selbstdefinierten Werten zu wählen--------------------------------- - if (existsState(NSPanel_Path + "ScreensaverInfo.weatherForecast") == false || - existsState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer") == false || + if (existsState(NSPanel_Path + "ScreensaverInfo.weatherForecast") == false || + existsState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer") == false || existsState(NSPanel_Path + "ScreensaverInfo.entityChangeTime") == false) { await createStateAsync(NSPanel_Path + "ScreensaverInfo.weatherForecast", true, { type: 'boolean' }); await createStateAsync(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer", true, { type: 'boolean' }); @@ -719,7 +720,7 @@ async function InitWeatherForecast() { } } catch (err) { console.warn('function InitWeatherForecast: ' + err.message); - } + } } InitWeatherForecast(); @@ -771,7 +772,7 @@ async function InitDimmode() { ScreensaverDimmode(timeDimMode); } catch (err) { console.warn('function InitDimmode: ' + err.message); - } + } } InitDimmode(); @@ -794,7 +795,7 @@ const popupNotifyButton2TextColor = NSPanel_Path + 'popupNotify.popupNotifyButto const popupNotifyButton2Text = NSPanel_Path + 'popupNotify.popupNotifyButton2Text'; const popupNotifySleepTimeout = NSPanel_Path + 'popupNotify.popupNotifySleepTimeout'; // in sek. / wenn 0, dann bleibt die Nachricht stehen const popupNotifyAction = NSPanel_Path + 'popupNotify.popupNotifyAction'; // Antwort aus dem Panel true/false -const popupNotifyLayout = NSPanel_Path + 'popupNotify.popupNotifyLayout'; +const popupNotifyLayout = NSPanel_Path + 'popupNotify.popupNotifyLayout'; const popupNotifyFontIdText = NSPanel_Path + 'popupNotify.popupNotifyFontIdText'; // 1 - 5 const popupNotifyIcon = NSPanel_Path + 'popupNotify.popupNotifyIcon'; // 1 - 5 const popupNotifyIconColor = NSPanel_Path + 'popupNotify.popupNotifyIconColor'; // 1 - 5 @@ -812,14 +813,14 @@ async function InitPopupNotify() { } await createStateAsync(popupNotifyHeading, { type: 'string' }); - await createStateAsync(popupNotifyHeadingColor, { type: 'string' }); + await createStateAsync(popupNotifyHeadingColor, { type: 'string' }); await createStateAsync(popupNotifyText, { type: 'string' }); - await createStateAsync(popupNotifyTextColor, { type: 'string' }); + await createStateAsync(popupNotifyTextColor, { type: 'string' }); await createStateAsync(popupNotifyInternalName, { type: 'string' }); await createStateAsync(popupNotifyButton1Text, { type: 'string' }); - await createStateAsync(popupNotifyButton1TextColor, { type: 'string' }); + await createStateAsync(popupNotifyButton1TextColor, { type: 'string' }); await createStateAsync(popupNotifyButton2Text, { type: 'string' }); - await createStateAsync(popupNotifyButton2TextColor, { type: 'string' }); + await createStateAsync(popupNotifyButton2TextColor, { type: 'string' }); await createStateAsync(popupNotifySleepTimeout, { type: 'number' }); await createStateAsync(popupNotifyAction, { type: 'boolean' }); await createStateAsync(popupNotifyLayout, { type: 'number' }); @@ -877,7 +878,7 @@ async function InitPopupNotify() { }); } catch (err) { console.warn('function InitPopupNotify: ' + err.message); - } + } } InitPopupNotify(); @@ -895,7 +896,7 @@ schedule('* * * * *', () => { SendTime(); } catch (err) { console.warn('schedule: ' + err.message); - } + } }); //Wechsel zwischen Screensaver Entities und WeatherForecast @@ -903,13 +904,13 @@ schedule('*/' + getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val try { //WeatherForecast true/false Umschaltung verzögert if (getState(NSPanel_Path + "ScreensaverInfo.popupNotifyHeading").val == '' && getState(NSPanel_Path + "ScreensaverInfo.popupNotifyText").val == '' && getState(NSPanel_Path + "ScreensaverInfo.weatherForecast").val == true && getState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer").val == true) { - setStateDelayed(NSPanel_Path + "ScreensaverInfo.weatherForecast", false, (getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val / 2 * 1000), false); + setStateDelayed(NSPanel_Path + "ScreensaverInfo.weatherForecast", false, (getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val / 2 * 1000), false); } else if (getState(NSPanel_Path + "ScreensaverInfo.popupNotifyHeading").val == '' && getState(NSPanel_Path + "ScreensaverInfo.popupNotifyText").val == '' && getState(NSPanel_Path + "ScreensaverInfo.weatherForecast").val == false && getState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer").val == true) { setStateDelayed(NSPanel_Path + "ScreensaverInfo.weatherForecast", true, (getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val / 2 * 1000), false); } } catch (err) { console.warn('schedule: ' + err.message); - } + } }); function InitHWButton1Color() { @@ -921,7 +922,7 @@ function InitHWButton1Color() { } } catch (err) { console.warn('function InitHWButton1Color: ' + err.message); - } + } } InitHWButton1Color(); @@ -991,7 +992,7 @@ function get_locales() { }); } catch (err) { console.error('error requesting locales in function get_locales: ' + err.message); - } + } } async function check_updates() { @@ -1606,7 +1607,7 @@ function GeneratePage(page: Page): void { } function HandleHardwareButton(method: string): void { - try { + try { let page: (PageThermo | PageMedia | PageAlarm | PageEntities | PageGrid | PageQR | PagePower); if (config.button1Page !== null && method == 'button1') { page = config.button1Page; @@ -1792,7 +1793,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors); } - if (pageItem.interpolateColor != undefined && pageItem.interpolateColor == true) { + if (pageItem.interpolateColor != undefined && pageItem.interpolateColor == true) { if (existsState(pageItem.id + '.HUE')) { if (getState(pageItem.id + '.HUE').val != null) { let huecolor = hsv2rgb(getState(pageItem.id + '.HUE').val, 1, 1); @@ -1919,11 +1920,11 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = iconColor = GetIconColor(pageItem, true, useColors); gateState = findLocale('window', 'opened'); } - + RegisterEntityWatcher(pageItem.id + '.ACTUAL'); - + } - + return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + gateState; case 'door': @@ -2107,7 +2108,7 @@ function findLocale(controlsObject: string, controlsState: string): string { if (Debug) { console.log('function findLocale: missing translation: ' + controlsObject + ' - ' + controlsState); } - } else { + } else { console.warn('function findLocale: ' + err.message); } return controlsState; @@ -2471,7 +2472,7 @@ function GenerateThermoPage(page: PageThermo): Payload[] { function GenerateMediaPage(page: PageMedia): Payload[] { try { let id = page.items[0].id - + let out_msgs: Array = []; out_msgs.push({ payload: 'pageType~cardMedia' }); @@ -2479,7 +2480,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { let name = getState(id + '.ALBUM').val; let title = getState(id + '.TITLE').val; let author = getState(id + '.ARTIST').val; - + let vInstance = page.items[0].adapterPlayerInstance; let v1Adapter = vInstance.split('.'); let v2Adapter = v1Adapter[0]; @@ -2498,7 +2499,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { } else if (name.substring(0,6) == 'Album:') { let nameLength = name.length; name = name.slice(10, nameLength); - } else if (name.substring(0,6) == 'Track') { + } else if (name.substring(0,6) == 'Track') { name = 'Spotify-Premium'; } if (nameLength == 0) { @@ -2509,7 +2510,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { author = getState(id + '.ARTIST').val; } if ((getState(id + '.ARTIST').val).length == 0) { - author = 'no music to control'; + author = 'no music to control'; } } @@ -2520,10 +2521,10 @@ function GenerateMediaPage(page: PageMedia): Payload[] { let nameLenght = name.length; if (nameLenght == 0) { name = 'Sonos Player'; - } + } author = getState(id + '.ARTIST').val + ' | ' + getState(id + '.ALBUM').val; if ((getState(id + '.ARTIST').val).length == 0) { - author = 'no music to control'; + author = 'no music to control'; } } @@ -2534,7 +2535,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { if (nameLength == 0) { name = 'Squeezebox RPC'; author = 'no music to control'; - } + } } //Alexa2 @@ -2543,10 +2544,10 @@ function GenerateMediaPage(page: PageMedia): Payload[] { let nameLength = name.length; if (nameLength == 0) { name = 'Alexa Player'; - author = 'no music to control'; - } + author = 'no music to control'; + } } - + let volume = getState(id + '.VOLUME').val; let iconplaypause = Icons.GetIcon('pause'); //pause let onoffbutton = 1374; @@ -2560,11 +2561,13 @@ function GenerateMediaPage(page: PageMedia): Payload[] { } //Ausnahme für squeezebox, da State = Power - if (getState(id + '.PAUSE').val === false && v2Adapter == 'squeezeboxrpc') { - onoffbutton = 65535; - iconplaypause = Icons.GetIcon('pause'); //pause - } else { - iconplaypause = Icons.GetIcon('play'); //play + if (v2Adapter == 'squeezeboxrpc') { + if (getState(id + '.PAUSE').val === false) { + onoffbutton = 65535; + iconplaypause = Icons.GetIcon('pause'); //pause + } else { + iconplaypause = Icons.GetIcon('play'); //play + } } if (Debug) { @@ -2576,7 +2579,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { if (v2Adapter == 'alexa2') { currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'Echo-Devices.', page.items[0].mediaDevice, '.Info.name'].join(''))).val; } else if (v2Adapter == 'spotify-premium') { - currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'player.device.name'].join(''))).val; + currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'player.device.name'].join(''))).val; } else if (v2Adapter == 'sonos') { currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'root.', page.items[0].mediaDevice, '.members'].join(''))).val; } else if (v2Adapter == 'squeezeboxrpc') { @@ -2620,8 +2623,8 @@ function GenerateMediaPage(page: PageMedia): Payload[] { iconplaypause + '~' + //playpauseicon currentSpeaker + '~' + //currentSpeaker speakerList + '~' + //speakerList-seperated-by-? - onoffbutton - }); //On/Off Button Color + onoffbutton //On/Off Button Color + }); } if (Debug) { console.log(out_msgs); @@ -2636,7 +2639,7 @@ function GenerateAlarmPage(page: PageAlarm): Payload[] { try { activePage = page; let id = page.items[0].id - + let out_msgs: Array = []; out_msgs.push({ payload: 'pageType~cardAlarm' }); let nsPath = NSPanel_Alarm_Path + 'Alarm.'; @@ -2821,18 +2824,18 @@ function GeneratePowerPage(page: PagePower): Payload[] { let demoMode = false; let id; - try { + try { id = page.items[0].id } catch (err) { console.log("Kein PageItem definiert - cardPower Demo-Modus aktiv"); demoMode = true; - } + } let heading = 'cardPower Example'; if (demoMode != true) { let o = getObject(id) heading = page.heading !== undefined ? page.heading : o.common.name.de - } + } const obj = JSON.parse((getState(page.items[0].id + '.ACTUAL').val)); @@ -2853,11 +2856,11 @@ function GeneratePowerPage(page: PagePower): Payload[] { array_icon[obji + 1] = obj[obji].icon; array_powerspeed[obji + 1] = obj[obji].speed; array_powerstate[obji + 1] = obj[obji].value + ' ' + obj[obji].unit ; - } + } } let power_string : any = ''; - + for (let i = 1; i < 7; i++ ) { power_string = power_string + rgb_dec565(array_icon_color[i]) + '~'; // icon_color~ power_string = power_string + Icons.GetIcon(array_icon[i]) + '~'; // icon~ @@ -2865,7 +2868,7 @@ function GeneratePowerPage(page: PagePower): Payload[] { power_string = power_string + array_powerstate[i] + '~'; // entity.state~ } - power_string = power_string.substring(0, power_string.length - 1); + power_string = power_string.substring(0, power_string.length - 1); out_msgs.push({ payload: 'entityUpd~' + //entityUpd~* @@ -2874,7 +2877,7 @@ function GeneratePowerPage(page: PagePower): Payload[] { rgb_dec565(array_icon_color[0]) + '~' + // icon_color~ Mitte Icons.GetIcon(array_icon[0]) + '~' + // icon~ Mitte array_powerspeed[0] + '~' + // entity.state~ Mitte - power_string + power_string }); return out_msgs @@ -2902,7 +2905,7 @@ function setIfExists(id: string, value: any, type: string | null = null): boolea return false; } catch (err) { console.warn('function setIfExists: ' + err.message); - } + } } function toggleState(id: string): boolean { @@ -2915,7 +2918,7 @@ function toggleState(id: string): boolean { return false; } catch (err) { console.warn('function toggleState: ' + err.message); - } + } } function HandleButtonEvent(words): void { @@ -3078,7 +3081,7 @@ function HandleButtonEvent(words): void { break; case 'tiltClose': setIfExists(id + '.TILT_CLOSE', true); - break; + break; case 'tiltSlider': (function () { if (timeoutSlider) { clearTimeout(timeoutSlider); timeoutSlider = null; } })(); timeoutSlider = setTimeout(async function () { @@ -3148,7 +3151,7 @@ function HandleButtonEvent(words): void { setIfExists(id + '.BLUE', rgb.blue); break; case 'rgbSingle': - let pageItem = findPageItem(id); + let pageItem = findPageItem(id); if (pageItem.colormode == "xy") { //Für z.B. Deconz XY setIfExists(id + ".RGB", rgb_to_cie(rgb.red, rgb.green, rgb.blue)); @@ -3168,9 +3171,11 @@ function HandleButtonEvent(words): void { break; case 'media-back': setIfExists(id + '.PREV', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'media-pause': let pageItemTemp = findPageItem(id); @@ -3191,15 +3196,24 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PLAY', true); } } - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.STATE', val: true}, async function () { + on({id: [].concat([id + '.ARTIST']).concat([id + '.ALBUM']).concat([id + '.TITLE']), change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); + }); + on({id: id + '.STATE', val: false}, async function () { + GeneratePage(activePage); + }); break; case 'media-next': setIfExists(id + '.NEXT', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'volumeSlider': setIfExists(id + '.VOLUME', parseInt(words[4])) @@ -3231,7 +3245,7 @@ function HandleButtonEvent(words): void { break; case 'chromecast': break; - } + } break; case 'media-OnOff': let pageItemTem = findPageItem(id); @@ -3257,19 +3271,19 @@ function HandleButtonEvent(words): void { switch (words[4]) { case 'BOOT': setIfExists(words[2] + '.' + 'BOOST', !getState(words[2] + '.' + 'BOOST').val) - break; + break; case 'PART': setIfExists(words[2] + '.' + 'PARTY', !getState(words[2] + '.' + 'PARTY').val) - break; + break; case 'AUTT': setIfExists(words[2] + '.' + 'AUTOMATIC', !getState(words[2] + '.' + 'AUTOMATIC').val) - break; + break; case 'MANT': setIfExists(words[2] + '.' + 'MANUAL', !getState(words[2] + '.' + 'MANUAL').val) - break; + break; case 'VACT': setIfExists(words[2] + '.' + 'VACATION', !getState(words[2] + '.' + 'VACATION').val) - break; + break; } let modes = ['BOOT', 'PART', 'AUTT', 'MANT', 'VACT'] let modesDP = ['BOOST', 'PARTY', 'AUTOMATIC', 'MANUAL', 'VACATION'] @@ -3332,8 +3346,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'A2': // Alarm-Page Alarm 2 aktivieren if (words[4] != '') { @@ -3343,8 +3357,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'A3': // Alarm-Page Alarm 3 aktivieren if (words[4] != '') { @@ -3354,8 +3368,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'A4': // Alarm-Page Alarm 4 aktivieren if (words[4] != '') { @@ -3365,8 +3379,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'D1': // Alarm-Page Alarm Deaktivieren if (Debug) { @@ -3387,7 +3401,7 @@ function HandleButtonEvent(words): void { } setIfExists(id + '.PANEL', NSPanel_Path); setTimeout(function(){ - GeneratePage(activePage); + GeneratePage(activePage); },500) } break; @@ -3423,7 +3437,7 @@ function GetNavigationString(pageId: number): string { } } catch (err) { console.log('function GetNavigationString: ' + err.message); - } + } } function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] { @@ -3802,7 +3816,7 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] { } let textSecondRow = ''; - let icon_id = icon; + let icon_id = icon; let icon_up = Icons.GetIcon('arrow-up'); let icon_stop = Icons.GetIcon('stop'); let icon_down = Icons.GetIcon('arrow-down'); @@ -3862,7 +3876,7 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] { } catch (err) { console.log('function GenerateDetailPage: ' + err.message); - } + } } function scale(number: number, inMin: number, inMax: number, outMin: number, outMax: number): number { @@ -3870,7 +3884,7 @@ function scale(number: number, inMin: number, inMax: number, outMin: number, out return (outMax + outMin) - ((number - inMin) * (outMax - outMin) / (inMax - inMin) + outMin); } catch (err) { console.log('function scale: ' + err.message); - } + } } function UnsubscribeWatcher(): void { @@ -3881,7 +3895,7 @@ function UnsubscribeWatcher(): void { } } catch (err) { console.log('function UnsubscribeWatcher: ' + err.message); - } + } } function HandleScreensaver(): void { @@ -3930,7 +3944,7 @@ function HandleScreensaverUpdate(): void { payloadString += GetScreenSaverEntityString(config.secondScreensaverEntity); payloadString += GetScreenSaverEntityString(config.thirdScreensaverEntity); payloadString += GetScreenSaverEntityString(config.fourthScreensaverEntity); - + const colorScale0: RGB = { red: 99, green: 190, blue: 123 }; const colorScale1: RGB = { red: 129, green: 199, blue: 126 }; const colorScale2: RGB = { red: 161, green: 208, blue: 127 }; @@ -3959,14 +3973,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -3994,7 +4008,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[1] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[1] = rgb_dec565(colorScale8); break; @@ -4004,7 +4018,7 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[1] = rgb_dec565(colorScale10); break; - } + } } if (config.firstScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[1] = rgb_dec565(config.firstScreensaverEntity.ScreensaverEntityIconColor); @@ -4013,7 +4027,7 @@ function HandleScreensaverUpdate(): void { vwIconColor[1] = rgb_dec565(sctF1Icon); } } else { - vwIconColor[1] = rgb_dec565(sctF1Icon); + vwIconColor[1] = rgb_dec565(sctF1Icon); } if (config.secondScreensaverEntity.ScreensaverEntityIconColor != undefined) { @@ -4033,14 +4047,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -4068,7 +4082,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[2] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[2] = rgb_dec565(colorScale8); break; @@ -4078,16 +4092,16 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[2] = rgb_dec565(colorScale10); break; - } + } } if (config.secondScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[2] = rgb_dec565(config.secondScreensaverEntity.ScreensaverEntityIconColor); } } else { - vwIconColor[2] = rgb_dec565(sctF2Icon); + vwIconColor[2] = rgb_dec565(sctF2Icon); } } else { - vwIconColor[2] = rgb_dec565(sctF2Icon); + vwIconColor[2] = rgb_dec565(sctF2Icon); } if (config.thirdScreensaverEntity.ScreensaverEntityIconColor != undefined) { @@ -4107,14 +4121,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -4142,7 +4156,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[3] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[3] = rgb_dec565(colorScale8); break; @@ -4152,16 +4166,16 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[3] = rgb_dec565(colorScale10); break; - } + } } if (config.thirdScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[3] = rgb_dec565(config.thirdScreensaverEntity.ScreensaverEntityIconColor); } } else { - vwIconColor[3] = rgb_dec565(sctF2Icon); + vwIconColor[3] = rgb_dec565(sctF2Icon); } } else { - vwIconColor[3] = rgb_dec565(sctF2Icon); + vwIconColor[3] = rgb_dec565(sctF2Icon); } if (config.fourthScreensaverEntity.ScreensaverEntityIconColor != undefined) { @@ -4181,14 +4195,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -4216,7 +4230,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[4] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[4] = rgb_dec565(colorScale8); break; @@ -4226,42 +4240,42 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[4] = rgb_dec565(colorScale10); break; - } + } } if (config.fourthScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[4] = rgb_dec565(config.fourthScreensaverEntity.ScreensaverEntityIconColor); } } else { - vwIconColor[4] = rgb_dec565(sctF2Icon); + vwIconColor[4] = rgb_dec565(sctF2Icon); } } else { - vwIconColor[4] = rgb_dec565(sctF2Icon); + vwIconColor[4] = rgb_dec565(sctF2Icon); } } //AltLayout if (config.alternativeScreensaverLayout) { - payloadString += parseInt(getState(config.fourthScreensaverEntity.ScreensaverEntity).val) + '~'; + payloadString += parseInt(getState(config.fourthScreensaverEntity.ScreensaverEntity).val) + '~'; payloadString += config.fourthScreensaverEntity.ScreensaverEntityUnitText + '~' } else { - payloadString += '~~' + payloadString += '~~' } - + let hwBtn1Col: any = config.mrIcon1ScreensaverEntity.ScreensaverEntityOffColor; if (config.mrIcon1ScreensaverEntity.ScreensaverEntity != null) { if (typeof (getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val) == 'string') { let hwBtn1: string = getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val; if (hwBtn1 == 'ON') { - hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon1ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn1Col) + '~'; } else if (typeof (getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val) == 'boolean') { let hwBtn1: boolean = getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val; if (hwBtn1) { - hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon1ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn1Col) + '~'; - } + } } else { hwBtn1Col = Black; payloadString += '~~'; @@ -4272,28 +4286,28 @@ function HandleScreensaverUpdate(): void { if (typeof (getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val) == 'string') { let hwBtn2: string = getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val; if (hwBtn2 == 'ON') { - hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon2ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn2Col) + '~'; } else if (typeof (getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val) == 'boolean') { let hwBtn2: boolean = getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val; if (hwBtn2) { - hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon2ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn2Col) + '~'; - } + } } else { hwBtn2Col = Black; payloadString += '~~'; } HandleScreensaverColors(); - + SendToPanel({ payload: payloadString }); - + } } catch (err) { console.log('HandleScreensaverUpdate: ' + err.message); - } + } } function HandleScreensaverColors(): void { @@ -4317,7 +4331,7 @@ function HandleScreensaverColors(): void { vwIcon[1] = vwIconColor[1]; vwIcon[2] = vwIconColor[2]; vwIcon[3] = vwIconColor[3]; - vwIcon[4] = vwIconColor[4]; + vwIcon[4] = vwIconColor[4]; } } @@ -4343,8 +4357,8 @@ function HandleScreensaverColors(): void { rgb_dec565(scbar) + '~' + //bar~ rgb_dec565(sctMainIconAlt) + '~' + //tMainIconAlt rgb_dec565(sctMainTextAlt) + '~' + //tMainTextAlt - rgb_dec565(sctTimeAdd); - //true; + rgb_dec565(sctTimeAdd); + //true; SendToPanel({ payload: payloadString }); } catch (err) { @@ -4452,7 +4466,7 @@ function GetAccuWeatherIconColor(icon: number): number { case 24: // Ice case 30: // Hot case 31: // Cold - return rgb_dec565(swExceptional); // exceptional + return rgb_dec565(swExceptional); // exceptional case 7: // Cloudy case 8: // Dreary (Overcast) @@ -4495,7 +4509,7 @@ function GetAccuWeatherIconColor(icon: number): number { case 26: // Freezing Rain case 39: // Partly Cloudy w/ Showers case 40: // Mostly Cloudy w/ Showers - return rgb_dec565(swRainy); // rainy + return rgb_dec565(swRainy); // rainy case 19: // Flurries case 20: // Mostly Cloudy w/ Flurries @@ -4504,7 +4518,7 @@ function GetAccuWeatherIconColor(icon: number): number { case 23: // Mostly Cloudy w/ Snow case 43: // Mostly Cloudy w/ Flurries case 44: // Mostly Cloudy w/ Snow - return rgb_dec565(swSnowy); // snowy + return rgb_dec565(swSnowy); // snowy case 29: // Rain and Snow return rgb_dec565(swSnowyRainy); // snowy-rainy @@ -4656,18 +4670,18 @@ function rgb_to_cie(red, green, blue) //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device let vred = (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92); let vgreen = (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92); - let vblue = (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92); - + let vblue = (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92); + //RGB values to XYZ using the Wide RGB D65 conversion formula let X = vred * 0.664511 + vgreen * 0.154324 + vblue * 0.162028; let Y = vred * 0.283881 + vgreen * 0.668433 + vblue * 0.047685; let Z = vred * 0.000088 + vgreen * 0.072310 + vblue * 0.986039; - + //Calculate the xy values from the XYZ values let ciex = (X / (X + Y + Z)).toFixed(4); let ciey = (Y / (X + Y + Z)).toFixed(4); let cie = "[" + ciex + "," + ciey + "]" - + return cie; } @@ -4797,7 +4811,7 @@ type Config = { pages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], subPages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], button1Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), - button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower| null), + button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), } type ScreenSaverElement = { diff --git a/ioBroker/NsPanelTs_without_Examples.ts b/ioBroker/NsPanelTs_without_Examples.ts index 7174ac0e..21daafeb 100644 --- a/ioBroker/NsPanelTs_without_Examples.ts +++ b/ioBroker/NsPanelTs_without_Examples.ts @@ -63,6 +63,7 @@ ReleaseNotes: - 26.10.2022 - v3.5.0.1 Fix Thermostat for tado Support (by Sternmiere) - 27.10.2022 - v3.5.0.1 Add VirtualDevice Gate - 27.10.2022 - v3.5.0.2 Applied Boy Scout Rule (Fixed some typos, changed var to let, fixed min/max colorTemp Bug) + - 27.10.2022 - v3.5.0.3 Fixed Media Play/Pause icon for alexa (and others) devices Wenn Rule definiert, dann können die Hardware-Tasten ebenfalls für Seitensteuerung (dann nicht mehr als Relais) genutzt werden Tasmota Konsole: @@ -2751,9 +2752,11 @@ function HandleButtonEvent(words): void { break; case 'media-back': setIfExists(id + '.PREV', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'media-pause': let pageItemTemp = findPageItem(id); @@ -2774,15 +2777,24 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PLAY', true); } } - setTimeout(function(){ + on({id: id + '.STATE', val: true}, async function () { + on({id: [].concat([id + '.ARTIST']).concat([id + '.ALBUM']).concat([id + '.TITLE']), change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); + }); + on({id: id + '.STATE', val: false}, async function () { GeneratePage(activePage); - },3000) + }); break; case 'media-next': setIfExists(id + '.NEXT', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'volumeSlider': setIfExists(id + '.VOLUME', parseInt(words[4])) @@ -4380,7 +4392,7 @@ type Config = { pages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], subPages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], button1Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), - button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower| null), + button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), } type ScreenSaverElement = { From 9df4c90c071fb237400215e649934bbab84365e1 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 30 Oct 2022 16:12:38 +0100 Subject: [PATCH 5/7] Update notifications.md --- docs/notifications.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/notifications.md b/docs/notifications.md index 836e9678..71a2592d 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -8,14 +8,29 @@ This is the notification used by the backend for updates, opening it requires to `pageType popupNotify` -`entityUpdateDetail~internalName~heading~headingColor~button1text~button1color~button2text~tB2Color~notificationText~textColor~sleepTimeout` +`entityUpdateDetail~internalName~heading~headingColor~button1text~button1color~button2text~tB2Color~notificationText~textColor~sleepTimeout~fontIdText` Alternative Layout with Icon: `entityUpdateDetail~internalName~heading~headingColor~button1text~button1color~button2text~tB2Color~notificationText~textColor~sleepTimeout~fontIdText~icon~iconColor` + +`fontIdText` is the font used by the notification text +Possible values are 0-5: +``` +Font 0 - Default - Size 24 (No Icons, Support for various special chars from different langs) +Font 1 - Size 32 (Icons and limited chars) +Font 2 - Size 32 (No Icons, Support for various special chars from different langs) +Font 3 - Size 48 (Icons and limited chars) +Font 4 - Size 80 (Icons and limited chars) +Font 5 - Size 128 (ascii only) +``` + + It is possible to exit from the page by sending `exitPopup` +If you want to add newlines to your message add this string for the newline `{{'\r\n'}}` + Send Message to the Panel combined with a buzzer sound: ``` From 8b04abecfefd3956896c19978ebbe7796dff2e8e Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 30 Oct 2022 18:10:16 +0100 Subject: [PATCH 6/7] Update configure_mqtt.md --- docs/configure_mqtt.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/configure_mqtt.md b/docs/configure_mqtt.md index 8cd816ef..d77a4a6e 100644 --- a/docs/configure_mqtt.md +++ b/docs/configure_mqtt.md @@ -54,6 +54,7 @@ nspanel-1: config: panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" + model: eu ``` Please adjust `tasmota_your_mqtt_topic` to the topic used in Tasmota MQTT Configuration. From 56687b61a063bcd8b0c32234e90764e63a1171a6 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 30 Oct 2022 18:10:42 +0100 Subject: [PATCH 7/7] Update config-overview.md --- docs/config-overview.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/config-overview.md b/docs/config-overview.md index d1c18c62..ccf0928e 100644 --- a/docs/config-overview.md +++ b/docs/config-overview.md @@ -12,6 +12,7 @@ nspanel-1: config: panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" + model: eu ``` You can continue from this point adding configuration for the weather forcecast on the screensaver, configuring a schedule for the brightness of the screensaver and your first cards. @@ -24,6 +25,7 @@ nspanel-1: config: panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" + model: eu sleepTimeout: 20 sleepBrightness: - time: "7:00:00"