From f79a2e525bca10da2c79cfcbc0ad5aeaf9b10cd4 Mon Sep 17 00:00:00 2001 From: joBr99 Date: Sun, 30 Oct 2022 14:44:06 +0000 Subject: [PATCH] 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 +