From 8a7bafba65f2c3bd81f9e0e777b38478f1a7b718 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Thu, 3 Nov 2022 18:55:28 +0000 Subject: [PATCH] sync (add nextion2text) (add nextion2text) (add nextion2text) --- HMI/US/landscape/diff-eu-version.txt | 1249 +----- .../{arm1.txt => cardAlarm.txt} | 0 .../{bDown1.txt => cardEntities.txt} | 0 .../{bEntity1.txt => cardGrid.txt} | 0 HMI/US/landscape/n2t-out-visual/cardMedia.txt | 1274 ++++++ .../{bNext.txt => cardPower.txt} | 0 HMI/US/landscape/n2t-out-visual/cardQR.txt | 1073 +++++ .../{bDown2.txt => cardThermo.txt} | 0 .../n2t-out-visual/nspanel_US_L_Stats.txt | 76 +- HMI/US/landscape/n2t-out-visual/pageIcons.txt | 141 + .../{bSendStartup.txt => pageStartup.txt} | 0 HMI/US/landscape/n2t-out-visual/pageTest.txt | 474 +++ HMI/US/landscape/n2t-out-visual/popupFan.txt | 959 +++++ .../landscape/n2t-out-visual/popupInSel.txt | 1322 ++++++ .../landscape/n2t-out-visual/popupLight.txt | 1031 +++++ .../landscape/n2t-out-visual/popupNotify.txt | 724 ++++ .../landscape/n2t-out-visual/popupShutter.txt | 1029 +++++ .../{b0.txt => popupThermo.txt} | 0 .../{p0.txt => screensaver.txt} | 0 HMI/US/landscape/n2t-out/Program.s.txt | 16 + HMI/US/landscape/n2t-out/cardAlarm.txt | 921 +++++ HMI/US/landscape/n2t-out/cardEntities.txt | 2010 ++++++++++ HMI/US/landscape/n2t-out/cardGrid.txt | 967 +++++ HMI/US/landscape/n2t-out/cardMedia.txt | 840 ++++ HMI/US/landscape/n2t-out/cardPower.txt | 880 ++++ HMI/US/landscape/n2t-out/cardQR.txt | 772 ++++ HMI/US/landscape/n2t-out/cardThermo.txt | 1271 ++++++ HMI/US/landscape/n2t-out/pageIcons.txt | 61 + HMI/US/landscape/n2t-out/pageStartup.txt | 397 ++ HMI/US/landscape/n2t-out/pageTest.txt | 192 + .../b0.txt => landscape/n2t-out/popupFan.txt} | 0 HMI/US/landscape/n2t-out/popupInSel.txt | 940 +++++ HMI/US/landscape/n2t-out/popupLight.txt | 702 ++++ HMI/US/landscape/n2t-out/popupNotify.txt | 493 +++ HMI/US/landscape/n2t-out/popupShutter.txt | 718 ++++ HMI/US/landscape/n2t-out/popupThermo.txt | 989 +++++ HMI/US/landscape/n2t-out/screensaver.txt | 871 ++++ HMI/US/portrait/diff-eu-version.txt | 915 +---- HMI/US/portrait/diff-filtered.txt | 878 +--- HMI/US/portrait/n2t-out-visual/Program.s.txt | 19 + HMI/US/portrait/n2t-out-visual/cardAlarm.txt | 1511 +++++++ .../portrait/n2t-out-visual/cardEntities.txt | 3549 +++++++++++++++++ HMI/US/portrait/n2t-out-visual/cardGrid.txt | 1420 +++++++ HMI/US/portrait/n2t-out-visual/cardMedia.txt | 1279 ++++++ HMI/US/portrait/n2t-out-visual/cardPower.txt | 1393 +++++++ HMI/US/portrait/n2t-out-visual/cardQR.txt | 1078 +++++ HMI/US/portrait/n2t-out-visual/cardThermo.txt | 1998 ++++++++++ .../n2t-out-visual/nspanel_US_P_Stats.txt | 78 + HMI/US/portrait/n2t-out-visual/pageIcons.txt | 141 + .../portrait/n2t-out-visual/pageStartup.txt | 693 ++++ HMI/US/portrait/n2t-out-visual/pageTest.txt | 474 +++ HMI/US/portrait/n2t-out-visual/popupFan.txt | 959 +++++ HMI/US/portrait/n2t-out-visual/popupInSel.txt | 1322 ++++++ HMI/US/portrait/n2t-out-visual/popupLight.txt | 1031 +++++ .../portrait/n2t-out-visual/popupNotify.txt | 724 ++++ .../portrait/n2t-out-visual/popupShutter.txt | 1029 +++++ .../portrait/n2t-out-visual/popupThermo.txt | 1417 +++++++ .../portrait/n2t-out-visual/screensaver.txt | 1445 +++++++ .../n2t-out/{arm1.txt => cardAlarm.txt} | 0 .../n2t-out/{bDown1.txt => cardEntities.txt} | 0 .../n2t-out/{bEntity1.txt => cardGrid.txt} | 0 .../n2t-out/{bNext.txt => cardMedia.txt} | 0 HMI/US/portrait/n2t-out/cardPower.txt | 885 ++++ HMI/US/portrait/n2t-out/cardQR.txt | 777 ++++ .../n2t-out/{bDown2.txt => cardThermo.txt} | 0 HMI/US/portrait/n2t-out/pageIcons.txt | 61 + .../{bSendStartup.txt => pageStartup.txt} | 0 HMI/US/portrait/n2t-out/pageTest.txt | 192 + HMI/US/portrait/n2t-out/popupFan.txt | 666 ++++ HMI/US/portrait/n2t-out/popupInSel.txt | 940 +++++ HMI/US/portrait/n2t-out/popupLight.txt | 702 ++++ HMI/US/portrait/n2t-out/popupNotify.txt | 493 +++ HMI/US/portrait/n2t-out/popupShutter.txt | 718 ++++ HMI/US/portrait/n2t-out/popupThermo.txt | 989 +++++ .../n2t-out/{p0.txt => screensaver.txt} | 0 HMI/n2t-out-visual/Program.s.txt | 19 + HMI/n2t-out-visual/cardAlarm.txt | 1511 +++++++ HMI/n2t-out-visual/cardEntities.txt | 2970 ++++++++++++++ HMI/n2t-out-visual/cardGrid.txt | 1420 +++++++ HMI/n2t-out-visual/cardMedia.txt | 1279 ++++++ HMI/n2t-out-visual/cardPower.txt | 1393 +++++++ HMI/n2t-out-visual/cardQR.txt | 1078 +++++ HMI/n2t-out-visual/cardThermo.txt | 1998 ++++++++++ HMI/n2t-out-visual/nspanel_Stats.txt | 78 + HMI/n2t-out-visual/pageIcons.txt | 141 + HMI/n2t-out-visual/pageStartup.txt | 693 ++++ HMI/n2t-out-visual/pageTest.txt | 643 +++ HMI/n2t-out-visual/popupFan.txt | 959 +++++ HMI/n2t-out-visual/popupInSel.txt | 1321 ++++++ HMI/n2t-out-visual/popupLight.txt | 1080 +++++ HMI/n2t-out-visual/popupNotify.txt | 724 ++++ HMI/n2t-out-visual/popupShutter.txt | 1029 +++++ HMI/n2t-out-visual/popupThermo.txt | 1417 +++++++ HMI/n2t-out-visual/screensaver.txt | 1445 +++++++ HMI/n2t-out/Program.s.txt | 19 + HMI/n2t-out/cardAlarm.txt | 926 +++++ HMI/n2t-out/cardEntities.txt | 2015 ++++++++++ HMI/n2t-out/cardGrid.txt | 972 +++++ HMI/n2t-out/cardMedia.txt | 845 ++++ HMI/n2t-out/cardPower.txt | 885 ++++ HMI/n2t-out/cardQR.txt | 777 ++++ HMI/n2t-out/cardThermo.txt | 1276 ++++++ HMI/n2t-out/pageIcons.txt | 61 + HMI/n2t-out/pageStartup.txt | 397 ++ HMI/n2t-out/pageTest.txt | 315 ++ HMI/n2t-out/popupFan.txt | 666 ++++ HMI/n2t-out/popupInSel.txt | 939 +++++ HMI/n2t-out/popupLight.txt | 729 ++++ HMI/n2t-out/popupNotify.txt | 493 +++ HMI/n2t-out/popupShutter.txt | 718 ++++ HMI/n2t-out/popupThermo.txt | 989 +++++ HMI/n2t-out/screensaver.txt | 871 ++++ 112 files changed, 84607 insertions(+), 2652 deletions(-) rename HMI/US/landscape/n2t-out-visual/{arm1.txt => cardAlarm.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{bDown1.txt => cardEntities.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{bEntity1.txt => cardGrid.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/cardMedia.txt rename HMI/US/landscape/n2t-out-visual/{bNext.txt => cardPower.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/cardQR.txt rename HMI/US/landscape/n2t-out-visual/{bDown2.txt => cardThermo.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/pageIcons.txt rename HMI/US/landscape/n2t-out-visual/{bSendStartup.txt => pageStartup.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out-visual/pageTest.txt create mode 100644 HMI/US/landscape/n2t-out-visual/popupFan.txt create mode 100644 HMI/US/landscape/n2t-out-visual/popupInSel.txt create mode 100644 HMI/US/landscape/n2t-out-visual/popupLight.txt create mode 100644 HMI/US/landscape/n2t-out-visual/popupNotify.txt create mode 100644 HMI/US/landscape/n2t-out-visual/popupShutter.txt rename HMI/US/landscape/n2t-out-visual/{b0.txt => popupThermo.txt} (100%) rename HMI/US/landscape/n2t-out-visual/{p0.txt => screensaver.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/Program.s.txt create mode 100644 HMI/US/landscape/n2t-out/cardAlarm.txt create mode 100644 HMI/US/landscape/n2t-out/cardEntities.txt create mode 100644 HMI/US/landscape/n2t-out/cardGrid.txt create mode 100644 HMI/US/landscape/n2t-out/cardMedia.txt create mode 100644 HMI/US/landscape/n2t-out/cardPower.txt create mode 100644 HMI/US/landscape/n2t-out/cardQR.txt create mode 100644 HMI/US/landscape/n2t-out/cardThermo.txt create mode 100644 HMI/US/landscape/n2t-out/pageIcons.txt create mode 100644 HMI/US/landscape/n2t-out/pageStartup.txt create mode 100644 HMI/US/landscape/n2t-out/pageTest.txt rename HMI/US/{portrait/n2t-out/b0.txt => landscape/n2t-out/popupFan.txt} (100%) create mode 100644 HMI/US/landscape/n2t-out/popupInSel.txt create mode 100644 HMI/US/landscape/n2t-out/popupLight.txt create mode 100644 HMI/US/landscape/n2t-out/popupNotify.txt create mode 100644 HMI/US/landscape/n2t-out/popupShutter.txt create mode 100644 HMI/US/landscape/n2t-out/popupThermo.txt create mode 100644 HMI/US/landscape/n2t-out/screensaver.txt create mode 100644 HMI/US/portrait/n2t-out-visual/Program.s.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardAlarm.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardEntities.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardGrid.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardMedia.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardPower.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardQR.txt create mode 100644 HMI/US/portrait/n2t-out-visual/cardThermo.txt create mode 100644 HMI/US/portrait/n2t-out-visual/pageIcons.txt create mode 100644 HMI/US/portrait/n2t-out-visual/pageStartup.txt create mode 100644 HMI/US/portrait/n2t-out-visual/pageTest.txt create mode 100644 HMI/US/portrait/n2t-out-visual/popupFan.txt create mode 100644 HMI/US/portrait/n2t-out-visual/popupInSel.txt create mode 100644 HMI/US/portrait/n2t-out-visual/popupLight.txt create mode 100644 HMI/US/portrait/n2t-out-visual/popupNotify.txt create mode 100644 HMI/US/portrait/n2t-out-visual/popupShutter.txt create mode 100644 HMI/US/portrait/n2t-out-visual/popupThermo.txt create mode 100644 HMI/US/portrait/n2t-out-visual/screensaver.txt rename HMI/US/portrait/n2t-out/{arm1.txt => cardAlarm.txt} (100%) rename HMI/US/portrait/n2t-out/{bDown1.txt => cardEntities.txt} (100%) rename HMI/US/portrait/n2t-out/{bEntity1.txt => cardGrid.txt} (100%) rename HMI/US/portrait/n2t-out/{bNext.txt => cardMedia.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/cardPower.txt create mode 100644 HMI/US/portrait/n2t-out/cardQR.txt rename HMI/US/portrait/n2t-out/{bDown2.txt => cardThermo.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/pageIcons.txt rename HMI/US/portrait/n2t-out/{bSendStartup.txt => pageStartup.txt} (100%) create mode 100644 HMI/US/portrait/n2t-out/pageTest.txt create mode 100644 HMI/US/portrait/n2t-out/popupFan.txt create mode 100644 HMI/US/portrait/n2t-out/popupInSel.txt create mode 100644 HMI/US/portrait/n2t-out/popupLight.txt create mode 100644 HMI/US/portrait/n2t-out/popupNotify.txt create mode 100644 HMI/US/portrait/n2t-out/popupShutter.txt create mode 100644 HMI/US/portrait/n2t-out/popupThermo.txt rename HMI/US/portrait/n2t-out/{p0.txt => screensaver.txt} (100%) create mode 100644 HMI/n2t-out-visual/Program.s.txt create mode 100644 HMI/n2t-out-visual/cardAlarm.txt create mode 100644 HMI/n2t-out-visual/cardEntities.txt create mode 100644 HMI/n2t-out-visual/cardGrid.txt create mode 100644 HMI/n2t-out-visual/cardMedia.txt create mode 100644 HMI/n2t-out-visual/cardPower.txt create mode 100644 HMI/n2t-out-visual/cardQR.txt create mode 100644 HMI/n2t-out-visual/cardThermo.txt create mode 100644 HMI/n2t-out-visual/pageIcons.txt create mode 100644 HMI/n2t-out-visual/pageStartup.txt create mode 100644 HMI/n2t-out-visual/pageTest.txt create mode 100644 HMI/n2t-out-visual/popupFan.txt create mode 100644 HMI/n2t-out-visual/popupInSel.txt create mode 100644 HMI/n2t-out-visual/popupLight.txt create mode 100644 HMI/n2t-out-visual/popupNotify.txt create mode 100644 HMI/n2t-out-visual/popupShutter.txt create mode 100644 HMI/n2t-out-visual/popupThermo.txt create mode 100644 HMI/n2t-out-visual/screensaver.txt create mode 100644 HMI/n2t-out/Program.s.txt create mode 100644 HMI/n2t-out/cardAlarm.txt create mode 100644 HMI/n2t-out/cardEntities.txt create mode 100644 HMI/n2t-out/cardGrid.txt create mode 100644 HMI/n2t-out/cardMedia.txt create mode 100644 HMI/n2t-out/cardPower.txt create mode 100644 HMI/n2t-out/cardQR.txt create mode 100644 HMI/n2t-out/cardThermo.txt create mode 100644 HMI/n2t-out/pageIcons.txt create mode 100644 HMI/n2t-out/pageStartup.txt create mode 100644 HMI/n2t-out/pageTest.txt create mode 100644 HMI/n2t-out/popupFan.txt create mode 100644 HMI/n2t-out/popupInSel.txt create mode 100644 HMI/n2t-out/popupLight.txt create mode 100644 HMI/n2t-out/popupNotify.txt create mode 100644 HMI/n2t-out/popupShutter.txt 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 87b69208..96a37df9 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -12,7 +12,7 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup -├── arm1.txt +├── cardAlarm.txt │ @@ -671,19 +671,14 @@ │ } │ if(tTmp.txt=="1") @@ -33,7 +33,7 @@ │ vis arm1,1 │ } │ //id arm1 -├── bDown1.txt +├── cardEntities.txt │ @@ -1253,19 +1253,14 @@ │ } │ if(tTmp.txt=="1") @@ -54,28 +54,7 @@ │ if(type1.txt=="delete"||type1.txt=="") │ { │ vis bUp1,0 -├── bDown2.txt -│ @@ -925,19 +925,14 @@ -│ } -│ if(tTmp.txt=="1") -│ { -│ vis bNext,1 -│ tsw mSwipeNext,1 -│ bNext.txt="" -│ } -│ - if(tTmp.txt=="2") -│ - { -│ - vis bNext,1 -│ - bNext.txt="" -│ - } -│ //entity name -│ spstr strCommand.txt,entn.txt,"~",3 -│ //currentTemp -│ spstr strCommand.txt,tCurTemp.txt,"~",4 -│ //dstTemp -│ spstr strCommand.txt,tTmp.txt,"~",5 -│ covx tTmp.txt,xTempDest1.val,0,0 -├── bEntity1.txt +├── cardGrid.txt │ @@ -680,19 +680,14 @@ │ } │ if(tTmp.txt=="1") @@ -96,737 +75,8 @@ │ if(type1.txt=="delete"||type1.txt=="") │ { │ vis tEntity1,0 -├── bNext.txt -│ @@ -1,8 +1,8 @@ -│ -Page cardMedia -│ +Page cardPower -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Locked : no -│ Swide up page ID : disabled -│ @@ -14,444 +14,343 @@ -│ Preinitialize Event -│ dim=dimValueNormal -│ vis p0,0 -│ vis tSend,0 -│ vis tInstruction,0 -│ vis tTmp,0 -│ vis tId,0 -│ - vis t5,0 -│ vis bPrev,0 -│ vis bNext,0 -│ - cardMedia.bco=defaultBcoColor -│ - for(sys0=0;sys0<34;sys0++) -│ + tsw h0,0 -│ + tsw h1,0 -│ + tsw h2,0 -│ + tsw h3,0 -│ + tsw h4,0 -│ + tsw h5,0 -│ + vis h0,0 -│ + vis h1,0 -│ + vis h2,0 -│ + vis h3,0 -│ + vis h4,0 -│ + vis h5,0 -│ + vis t0Icon,0 -│ + vis t1Icon,0 -│ + vis t2Icon,0 -│ + vis t3Icon,0 -│ + vis t4Icon,0 -│ + vis t5Icon,0 -│ + cardPower.bco=defaultBcoColor -│ + for(sys0=0;sys0<43;sys0++) -│ { -│ if(b[sys0].type==98||b[sys0].type==116) -│ { -│ b[sys0].bco=defaultBcoColor -│ b[sys0].pco=defaultFontColor -│ } -│ - } -│ - if(defaultBcoColor==0) -│ - { -│ - hVolume.pic=14 -│ - hVolume.pic1=13 -│ - hVolume.pic2=15 -│ + if(defaultBcoColor==0) -│ + { -│ + if(b[sys0].type==1) -│ + { -│ + b[sys0].pic=19 -│ + b[sys0].pic1=19 -│ + b[sys0].pic2=15 -│ + } -│ + } -│ } -│ -│ -Variable (string) entn -│ +Variable (string) strCommand -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 80 -│ + Max. Text Size: 275 -│ -│ -Variable (string) strCommand -│ +Variable (int32) t0Speed -│ + Attributes -│ + Scope: local -│ + Value: 0 -│ + -│ +Variable (int32) t1Speed -│ + Attributes -│ + Scope: local -│ + Value: 0 -│ + -│ +Variable (int32) t2Speed -│ + Attributes -│ + Scope: local -│ + Value: 0 -│ + -│ +Variable (int32) t3Speed -│ + Attributes -│ + Scope: local -│ + Value: 0 -│ + -│ +Variable (int32) t4Speed -│ + Attributes -│ + Scope: local -│ + Value: 0 -│ + -│ +Variable (int32) t5Speed -│ + Attributes -│ + Scope: local -│ + Value: 0 -│ + -│ +Variable (string) tId -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 750 -│ + Max. Text Size: 20 -│ -│ -Variable (string) tSend -│ +Variable (string) tInstruction -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 200 -│ + Max. Text Size: 20 -│ -│ -Variable (string) vaMenu -│ +Variable (string) tSend -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 50 -│ + Max. Text Size: 200 -│ -│ -Variable (string) vaSpeakerList -│ +Variable (string) tTmp -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 400 -│ + Max. Text Size: 10 -│ -│ -Variable (int32) vaSpeakerPos -│ +Text t0Icon -│ Attributes -│ - Scope: local -│ - Value: 0 -│ + Scope : local -│ + Dragging : 0 -│ + Disable release event after dragging: 0 -│ + Send Component ID : disabled -│ + Associated Keyboard : none -│ + Text :  -│ + Max. Text Size : 5 -│ -│ -Text t0 -│ +Text t0u -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text : -│ + Max. Text Size : 20 -│ -│ - Events -│ - Touch Press Event -│ - // event,buttonPress2,entn,media-back -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - tSend.txt+="media-back" -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ Text t1 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text :  -│ + Max. Text Size : 5 -│ -│ - Events -│ - Touch Press Event -│ - hVolume.val=hVolume.val-1 -│ - // event,buttonPress2,internalNameEntity,volumeSlider,50 -│ - //craft command -│ - tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -│ - covx hVolume.val,tTmp.txt,0,0 -│ - tSend.txt+=tTmp.txt -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ -Text t2 -│ +Text t1Icon -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text :  -│ + Max. Text Size : 5 -│ -│ - Events -│ - Touch Press Event -│ - // event,buttonPress2,entn,media-next -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - tSend.txt+="media-next" -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ -Text t3 -│ +Text t1u -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text : -│ + Max. Text Size : 20 -│ -│ - Events -│ - Touch Press Event -│ - hVolume.val=hVolume.val+1 -│ - // event,buttonPress2,internalNameEntity,volumeSlider,50 -│ - //craft command -│ - tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -│ - covx hVolume.val,tTmp.txt,0,0 -│ - tSend.txt+=tTmp.txt -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ -Text t4 -│ +Text t2Icon -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text : î ° -│ + Max. Text Size : 5 -│ -│ -Text t5 -│ +Text t2u -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text : -│ + Max. Text Size : 20 -│ -│ - Events -│ - Touch Press Event -│ - // event,buttonPress2,entn,media-next -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - tSend.txt+="media-OnOff" -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ -Text t6 -│ +Text t3Icon -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text : î ° -│ + Max. Text Size : 5 -│ -│ - Events -│ - Touch Press Event -│ - //speaker -│ - tSpeaker.pco=65535 -│ - spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val -│ - vaSpeakerPos.val+=1 -│ - if(tSpeaker.txt=="") -│ - { -│ - vaSpeakerPos.val=0 -│ - spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val -│ - } -│ - -│ -Text tAuthor -│ +Text t3u -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ Text : -│ - Max. Text Size : 50 -│ + Max. Text Size : 20 -│ -│ -Text tHeading -│ +Text t4Icon -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 40 -│ + Text : î´½ -│ + Max. Text Size : 5 -│ -│ -Text tIcon -│ +Text t4u -│ 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 : 20 -│ -│ - Events -│ - Touch Release Event -│ - if(vaMenu.txt!="") -│ - { -│ - tSend.txt="event,buttonPress2,"+vaMenu.txt+",button" -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - } -│ - -│ -Text tId -│ +Text t5Icon -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 20 -│ + Text :  -│ + Max. Text Size : 5 -│ -│ -Text tInstruction -│ +Text t5u -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ Text : -│ Max. Text Size : 20 -│ -│ -Text tPlayPause -│ +Text tHeading -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ - Text :  -│ - Max. Text Size : 10 -│ + Text : -│ + Max. Text Size : 40 -│ -│ - Events -│ - Touch Press Event -│ - // event,buttonPress2,entn,media-pause -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - tSend.txt+="media-pause" -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ -Text tSpeaker -│ +Text tHome -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ Text : -│ - Max. Text Size : 50 -│ + Max. Text Size : 20 -│ -│ - Events -│ - Touch Press Event -│ - // event,buttonPress2,entn,media-next -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - tSend.txt+="speaker-sel,"+tSpeaker.txt -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ -Text tTitle -│ +Picture p0 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ - Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 50 -│ -│ -Text tTmp -│ +Slider h0 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ - Associated Keyboard : none -│ - Text : -│ - Max. Text Size : 10 -│ + Position : 50 -│ + Upper range limit : 100 -│ + Lower range limit : 0 -│ -│ -Picture p0 -│ +Slider h1 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ + Position : 50 -│ + Upper range limit : 100 -│ + Lower range limit : 0 -│ -│ -Slider hVolume -│ +Slider h2 -│ + Attributes -│ + Scope : local -│ + Dragging : 0 -│ + Disable release event after dragging: 0 -│ + Send Component ID : disabled -│ + Position : 50 -│ + Upper range limit : 100 -│ + Lower range limit : 0 -│ + -│ +Slider h3 -│ + Attributes -│ + Scope : local -│ + Dragging : 0 -│ + Disable release event after dragging: 0 -│ + Send Component ID : disabled -│ + Position : 50 -│ + Upper range limit : 100 -│ + Lower range limit : 0 -│ + -│ +Slider h4 -│ + Attributes -│ + Scope : local -│ + Dragging : 0 -│ + Disable release event after dragging: 0 -│ + Send Component ID : disabled -│ + Position : 50 -│ + Upper range limit : 100 -│ + Lower range limit : 0 -│ + -│ +Slider h5 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Position : 50 -│ Upper range limit : 100 -│ Lower range limit : 0 -│ -│ - Events -│ - Touch Release Event -│ - tmCooldown.en=1 -│ - tmCooldown.tim=800 -│ - // event,buttonPress2,internalNameEntity,volumeSlider,50 -│ - //craft command -│ - tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," -│ - covx hVolume.val,tTmp.txt,0,0 -│ - tSend.txt+=tTmp.txt -│ - //send calc crc -│ - btlen tSend.txt,sys0 -│ - crcrest 1,0xffff // reset CRC -│ - crcputh 55 bb -│ - crcputs sys0,2 -│ - crcputs tSend.txt,0 -│ - //send cmd -│ - printh 55 bb -│ - prints sys0,2 -│ - prints tSend.txt,0 -│ - prints crcval,2 -│ - -│ Button bNext -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ Text :  -│ Max. Text Size : 10 -│ -│ Events -│ Touch Press Event -│ - tSend.txt="event,buttonPress2,cardMedia," -│ + tSend.txt="event,buttonPress2,cardPower," -│ if(bPrev.txt=="") -│ { -│ tSend.txt+="bHome" -│ }else -│ { -│ tSend.txt+="bNext" -│ } -│ @@ -475,15 +374,15 @@ -│ Send Component ID : disabled -│ State : unpressed -│ Text :  -│ Max. Text Size : 10 -│ -│ Events -│ Touch Press Event -│ - tSend.txt="event,buttonPress2,cardMedia," -│ + tSend.txt="event,buttonPress2,cardAlarm," -│ if(bPrev.txt=="") -│ { -│ tSend.txt+="bUp" -│ }else -│ { -│ tSend.txt+="bPrev" -│ } -│ @@ -528,23 +427,82 @@ -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ -│ Events -│ Touch Press Event -│ click bPrev,1 -│ -│ -Timer tmCooldown -│ +Timer tm0 -│ Attributes -│ Scope : local -│ Period (ms): 100 -│ - Enabled : no -│ + Enabled : yes -│ -│ Events -│ Timer Event -│ - tmCooldown.en=0 -│ + sys0=h0.val+t0Speed.val -│ + if(sys0>h0.maxval) -│ + { -│ + h0.val=h0.minval -│ + } -│ + if(sys0h1.maxval) -│ + { -│ + h1.val=h1.minval -│ + } -│ + if(sys0h2.maxval) -│ + { -│ + h2.val=h2.minval -│ + } -│ + if(sys0h3.maxval) -│ + { -│ + h3.val=h3.minval -│ + } -│ + if(sys0h4.maxval) -│ + { -│ + h4.val=h4.minval -│ + } -│ + if(sys0h5.maxval) -│ + { -│ + h5.val=h5.minval -│ + } -│ + if(sys01) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + ID : 14 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/landscape/n2t-out-visual/popupNotify.txt b/HMI/US/landscape/n2t-out-visual/popupNotify.txt new file mode 100644 index 00000000..183dbc5b --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/popupNotify.txt @@ -0,0 +1,724 @@ +Page popupNotify + 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 + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) tSend + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 200 + +Variable (int32) vaOldSleepT + Attributes + ID : 15 + Scope: local + Value: 0 + +Text tHeading + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 26 + Width : 345 + 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 : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 74 + Width : 109 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 250 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 115 + y coordinate : 290 + Width : 100 + Height : 29 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + 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 tText + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 74 + Width : 397 + Height : 171 + 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 : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTextAlt + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 74 + Width : 285 + Height : 171 + 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 : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + 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 : 421 + y coordinate : 277 + Width : 34 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + 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 + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,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 b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 39 + y coordinate : 261 + Width : 182 + 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) : 8 + Back. Color (Pressed) : 1024 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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 b2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 254 + y coordinate : 261 + Width : 182 + 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) : 8 + Back. Color (Pressed) : 1024 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSerial + Attributes + ID : 6 + 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(sys01) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + { + xTempDest2.val=xTempDest2.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bUp2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest2.valxTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest.val1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/landscape/n2t-out/popupNotify.txt b/HMI/US/landscape/n2t-out/popupNotify.txt new file mode 100644 index 00000000..a137ef6e --- /dev/null +++ b/HMI/US/landscape/n2t-out/popupNotify.txt @@ -0,0 +1,493 @@ +Page popupNotify + 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 + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (int32) vaOldSleepT + Attributes + Scope: local + Value: 0 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 250 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tText + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTextAlt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button 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 + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,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 b1 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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 b2 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(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 4b50ef0b..6fab4b26 100644 --- a/HMI/US/portrait/diff-eu-version.txt +++ b/HMI/US/portrait/diff-eu-version.txt @@ -14,794 +14,7 @@ │ + // fix touch offset (Removed for US version) │ + //lcd_dev fffb 0002 0000 0020 │ page pageStartup -├── b0.txt -│ @@ -1,8 +1,8 @@ -│ -Page popupThermo -│ +Page popupFan -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Locked : no -│ Swide up page ID : disabled -│ @@ -19,46 +19,50 @@ -│ 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 -│ + tSend.txt="event,pageOpenDetail,popupFan,"+entn.txt -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ crcputh 55 bb -│ crcputs sys0,2 -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ - popupThermo.bco=defaultBcoColor -│ - for(sys0=0;sys0<43;sys0++) -│ + vis hSpeed,0 -│ + popupFan.bco=defaultBcoColor -│ + for(sys0=0;sys0<24;sys0++) -│ { -│ if(b[sys0].type==98||b[sys0].type==116) -│ { -│ b[sys0].bco=defaultBcoColor -│ b[sys0].pco=defaultFontColor -│ } -│ if(b[sys0].type==53&&defaultBcoColor==0) -│ { -│ b[sys0].pic=10 -│ b[sys0].pic2=11 -│ } -│ } -│ + if(defaultBcoColor==0) -│ + { -│ + hSpeed.pic=14 -│ + hSpeed.pic1=13 -│ + hSpeed.pic2=15 -│ + } -│ -│ Variable (string) entn -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 80 -│ -│ @@ -74,164 +78,134 @@ -│ -│ Variable (string) strCommand -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 500 -│ -│ -Variable (string) tId -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ - -│ -Variable (string) tInstruction -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ - -│ Variable (string) tSend -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 200 -│ -│ -Variable (string) tTmp -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 80 -│ - -│ Variable (string) vaModeCur -│ Attributes -│ Scope : local -│ Text : -│ - Max. Text Size: 40 -│ - -│ -Variable (string) vaModeCur2 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 40 -│ - -│ -Variable (string) vaModeCur3 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 40 -│ - -│ -Variable (string) vaModeList -│ - Attributes -│ - Scope : local -│ - Text : -│ Max. Text Size: 400 -│ -│ -Variable (string) vaModeList2 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 400 -│ - -│ -Variable (string) vaModeList3 -│ +Variable (string) vaModeList -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 400 -│ -│ Variable (int32) vaModePos -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) vaModePos2 -│ - Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (int32) vaModePos3 -│ +Text t1 -│ Attributes -│ - Scope: local -│ - Value: 0 -│ - -│ -Variable (string) vaType -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ - -│ -Variable (string) vaType2 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ - -│ -Variable (string) vaType3 -│ - Attributes -│ - Scope : local -│ - Text : -│ - Max. Text Size: 20 -│ + Scope : local -│ + Dragging : 0 -│ + Disable release event after dragging: 0 -│ + Send Component ID : disabled -│ + Associated Keyboard : none -│ + Text : -│ + Max. Text Size : 50 -│ -│ -Text heading1 -│ +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 heading2 -│ +Text tIcon1 -│ 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 tId -│ 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 : 20 -│ -│ -Text tEntity -│ +Text tInstruction -│ 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 : 20 -│ -│ -Text tIcon1 -│ +Text tTmp -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ Associated Keyboard : none -│ Text : -│ - Max. Text Size : 10 -│ + Max. Text Size : 80 -│ -│ Picture p0 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ -│ +Slider hSpeed -│ + Attributes -│ + Scope : local -│ + Dragging : 0 -│ + Disable release event after dragging: 0 -│ + Send Component ID : disabled -│ + Position : 50 -│ + Upper range limit : 100 -│ + Lower range limit : 0 -│ + -│ + Events -│ + Touch Release Event -│ + tmCooldown.en=1 -│ + tmCooldown.tim=2500 -│ + //craft command -│ + tSend.txt="event,buttonPress2,"+entn.txt+",number-set," -│ + covx hSpeed.val,tTmp.txt,0,0 -│ + tSend.txt+=tTmp.txt -│ + //send calc crc -│ + btlen tSend.txt,sys0 -│ + crcrest 1,0xffff // reset CRC -│ + crcputh 55 bb -│ + crcputs sys0,2 -│ + crcputs tSend.txt,0 -│ + //send cmd -│ + printh 55 bb -│ + prints sys0,2 -│ + prints tSend.txt,0 -│ + prints crcval,2 -│ + -│ Button b0 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ @@ -266,15 +240,15 @@ -│ 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+="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 -│ @@ -296,15 +270,15 @@ -│ 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 -│ + 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 -│ @@ -326,15 +300,15 @@ -│ 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 -│ + 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 -│ @@ -347,15 +321,15 @@ -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ Text :  -│ - Max. Text Size : 3 -│ + Max. Text Size : 5 -│ -│ Events -│ Touch Press Event -│ //if(bMode3.txt=="") -│ spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val -│ if(tTmp.txt=="") -│ { -│ @@ -388,290 +362,42 @@ -│ bMode2.pco=1374 -│ } -│ if(bMode3.txt==vaModeCur.txt) -│ { -│ bMode3.pco=1374 -│ } -│ -│ -Button cMode1 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - State : unpressed -│ - Text : -│ - Max. Text Size : 40 -│ - -│ - Events -│ - Touch Press Event -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - sys2=vaModePos2.val-3 -│ - 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 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - State : unpressed -│ - Text : -│ - Max. Text Size : 40 -│ - -│ - Events -│ - Touch Press Event -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - sys2=vaModePos2.val-2 -│ - 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 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - State : unpressed -│ - Text : -│ - Max. Text Size : 40 -│ - -│ - Events -│ - Touch Press Event -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - sys2=vaModePos2.val-1 -│ - 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 -│ - 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 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 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - State : unpressed -│ - Text : -│ - Max. Text Size : 40 -│ - -│ - Events -│ - Touch Press Event -│ - //craft command -│ - tSend.txt="event,buttonPress2," -│ - tSend.txt+=entn.txt+"," -│ - sys2=vaModePos3.val-3 -│ - 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 -│ +Dual-state Button btOnOff1 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ State : unpressed -│ Text : -│ - Max. Text Size : 40 -│ - -│ - 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 -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - State : unpressed -│ - 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-1 -│ - covx sys2,tTmp.txt,0,0 -│ - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -│ + tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," -│ + covx btOnOff1.val,tTmp.txt,0,0 -│ + tSend.txt+=tTmp.txt -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ crcputh 55 bb -│ crcputs sys0,2 -│ crcputs tSend.txt,0 -│ //send cmd -│ printh 55 bb -│ prints sys0,2 -│ prints tSend.txt,0 -│ prints crcval,2 -│ -│ -Button dModeNext -│ - Attributes -│ - Scope : local -│ - Dragging : 0 -│ - Disable release event after dragging: 0 -│ - Send Component ID : disabled -│ - State : unpressed -│ - Text :  -│ - Max. Text Size : 3 -│ - -│ - Events -│ - Touch Press Event -│ - spstr vaModeList3.txt,tTmp.txt,"?",vaModePos3.val -│ - if(tTmp.txt=="") -│ - { -│ - vaModePos3.val=0 -│ - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val -│ - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 -│ - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 -│ - } -│ - spstr vaModeList3.txt,dMode1.txt,"?",vaModePos3.val -│ - spstr vaModeList3.txt,dMode2.txt,"?",vaModePos3.val+1 -│ - spstr vaModeList3.txt,dMode3.txt,"?",vaModePos3.val+2 -│ - vaModePos3.val+=3 -│ - spstr vaModeList3.txt,tTmp.txt,"?",3 -│ - if(tTmp.txt=="") -│ - { -│ - vis dModeNext,0 -│ - }else -│ - { -│ - vis dModeNext,1 -│ - } -│ - dMode1.pco=defaultFontColor -│ - dMode2.pco=defaultFontColor -│ - dMode3.pco=defaultFontColor -│ - if(dMode1.txt==vaModeCur.txt) -│ - { -│ - dMode1.pco=1374 -│ - } -│ - if(dMode2.txt==vaModeCur.txt) -│ - { -│ - dMode2.pco=1374 -│ - } -│ - if(dMode3.txt==vaModeCur.txt) -│ - { -│ - dMode3.pco=1374 -│ - } -│ - -│ Timer tmCooldown -│ Attributes -│ Scope : local -│ Period (ms): 100 -│ Enabled : no -│ -│ Events -│ @@ -729,28 +455,49 @@ -│ ucopy strCommand.txt,4,payloadLength-5,0 -│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default) -│ spstr strCommand.txt,tInstruction.txt,"~",0 -│ spstr strCommand.txt,tTmp.txt,"~",1 -│ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt) -│ { -│ // change icon -│ - spstr strCommand.txt,tIcon1.txt,"~",2 -│ + //spstr strCommand.txt,tIcon1.txt,"~",2 -│ vis tIcon1,1 -│ // change icon color -│ spstr strCommand.txt,tTmp.txt,"~",3 -│ covx tTmp.txt,sys0,0,0 -│ tIcon1.pco=sys0 -│ - //mode 1 heading -│ - spstr strCommand.txt,heading1.txt,"~",4 -│ - //mode 1 type -│ - spstr strCommand.txt,vaType.txt,"~",5 -│ + // get Button State -│ + spstr strCommand.txt,tTmp.txt,"~",4 -│ + covx tTmp.txt,sys0,0,0 -│ + btOnOff1.val=sys0 -│ + // get Speed value -│ + spstr strCommand.txt,tTmp.txt,"~",5 -│ + if(tTmp.txt=="disable") -│ + { -│ + vis t1,0 -│ + vis hSpeed,0 -│ + }else -│ + { -│ + vis t1,1 -│ + vis hSpeed,1 -│ + covx tTmp.txt,sys0,0,0 -│ + if(tmCooldown.en==0) -│ + { -│ + hSpeed.val=sys0 -│ + } -│ + } -│ + // set hSpeed maxValue -│ + spstr strCommand.txt,tTmp.txt,"~",6 -│ + covx tTmp.txt,hSpeed.maxval,0,0 -│ + // set t1 Speed (Localization) -│ + spstr strCommand.txt,t1.txt,"~",7 -│ //current mode -│ - spstr strCommand.txt,vaModeCur.txt,"~",6 -│ + spstr strCommand.txt,vaModeCur.txt,"~",8 -│ //mode list -│ - spstr strCommand.txt,vaModeList.txt,"~",7 -│ + spstr strCommand.txt,vaModeList.txt,"~",9 -│ if(vaModeList.txt=="") -│ { -│ vis bMode1,0 -│ vis bMode2,0 -│ vis bMode3,0 -│ vis bModeNext,0 -│ } -│ @@ -770,84 +517,14 @@ -│ { -│ 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") -├── bDown1.txt +├── cardEntities.txt │ @@ -61,14 +61,24 @@ │ vis tIcon4,0 │ vis tEntity4,0 @@ -1398,7 +611,7 @@ │ //command format pageType,specialPageName │ //write name of speical page to tId │ spstr strCommand.txt,tId.txt,"~",1 -├── bSendStartup.txt +├── pageStartup.txt │ @@ -118,15 +118,15 @@ │ Text tMsg3 │ Attributes @@ -1433,3 +646,127 @@ │ crcputs sys0,2 │ crcputs tSend.txt,0 │ //send cmd +├── popupInSel.txt +│ @@ -14,14 +14,15 @@ +│ 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 +│ @@ -69,15 +70,15 @@ +│ Scope: local +│ Value: 0 +│ +│ Variable (string) strCommand +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 960 +│ + Max. Text Size: 500 +│ +│ Variable (string) tId +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 20 +│ +│ @@ -105,15 +106,15 @@ +│ Text : +│ Max. Text Size: 40 +│ +│ Variable (string) vaModeList +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 900 +│ + Max. Text Size: 400 +│ +│ Variable (int32) vaModePos +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ Variable (string) vaType +├── popupLight.txt +│ @@ -19,15 +19,14 @@ +│ 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 bEffect,0 +│ //page open event +│ // event,pageOpenDetail,typeOfPage,tEntityName +│ // craft command +│ tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt +│ //send calc crc +│ btlen tSend.txt,sys0 +│ crcrest 1,0xffff // reset CRC +│ @@ -362,31 +361,14 @@ +│ //enable color temp +│ vis t4,1 +│ vis t3,1 +│ vis hTempSlider,1 +│ } +│ } +│ +│ -Button bEffect +│ - 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=tEntity.txt +│ - pageIcons.tTmp2.txt=entn.txt +│ - pageIcons.tTmp3.txt=tIcon1.txt +│ - page popupInSel +│ - +│ Dual-state Button btOnOff1 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ State : unpressed +│ @@ -571,23 +553,14 @@ +│ } +│ // set t0 Color (Localization) +│ spstr strCommand.txt,t0.txt,"~",8 +│ // set t4 Temperature (Localization) +│ spstr strCommand.txt,t4.txt,"~",9 +│ // set t1 Brightness (Localization) +│ spstr strCommand.txt,t1.txt,"~",10 +│ - // activate effect button +│ - spstr strCommand.txt,tTmp.txt,"~",11 +│ - if(tTmp.txt=="enable") +│ - { +│ - vis bEffect,1 +│ - }else +│ - { +│ - vis bEffect,0 +│ - } +│ } +│ if(tInstruction.txt=="time") +│ { +│ // get set time to global variable +│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 +│ } +│ if(tInstruction.txt=="date") diff --git a/HMI/US/portrait/diff-filtered.txt b/HMI/US/portrait/diff-filtered.txt index 77348142..60a264ad 100644 --- a/HMI/US/portrait/diff-filtered.txt +++ b/HMI/US/portrait/diff-filtered.txt @@ -1,792 +1,4 @@ -+++ /dev/fd/62 2022-11-03 18:42:47.339776246 +0000 -+.txt -++1,8 @@ -+pupThermo -+pupFan -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Locked : no -+ Swide up page ID : disabled -+6 +19,50 @@ -+ 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 -+ tSend.txt="event,pageOpenDetail,popupFan,"+entn.txt -+ //send calc crc -+ btlen tSend.txt,sys0 -+ crcrest 1,0xffff // reset CRC -+ crcputh 55 bb -+ crcputs sys0,2 -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ popupThermo.bco=defaultBcoColor -+ for(sys0=0;sys0<43;sys0++) -+ vis hSpeed,0 -+ popupFan.bco=defaultBcoColor -+ for(sys0=0;sys0<24;sys0++) -+ { -+ if(b[sys0].type==98||b[sys0].type==116) -+ { -+ b[sys0].bco=defaultBcoColor -+ b[sys0].pco=defaultFontColor -+ } -+ if(b[sys0].type==53&&defaultBcoColor==0) -+ { -+ b[sys0].pic=10 -+ b[sys0].pic2=11 -+ } -+ } -+ if(defaultBcoColor==0) -+ { -+ hSpeed.pic=14 -+ hSpeed.pic1=13 -+ hSpeed.pic2=15 -+ } -+ -+e (string) entn -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 80 -+ -+64 +78,134 @@ -+ -+e (string) strCommand -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 500 -+ -+e (string) tId -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+e (string) tInstruction -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+e (string) tSend -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 200 -+ -+e (string) tTmp -+ributes -+ 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 -+ -+e (string) vaModeCur3 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 40 -+ -+e (string) vaModeList -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 400 -+ -+e (string) vaModeList2 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 400 -+ -+e (string) vaModeList3 -+e (string) vaModeList -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 400 -+ -+e (int32) vaModePos -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) vaModePos2 -+ributes -+ Scope: local -+ Value: 0 -+ -+e (int32) vaModePos3 -+ -+ributes -+ Scope: local -+ Value: 0 -+ -+e (string) vaType -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+e (string) vaType2 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ -+e (string) vaType3 -+ributes -+ Scope : local -+ Text : -+ Max. Text Size: 20 -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 50 -+ -+ading1 -+ntity -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Associated Keyboard : none -+ Text : -+ Max. Text Size : 25 -+ -+ading2 -+con1 -+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 -+d -+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 : 20 -+ -+ntity -+nstruction -+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 : 20 -+ -+con1 -+mp -+ributes -+ 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 : 80 -+ -+ p0 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ -+hSpeed -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ Position : 50 -+ Upper range limit : 100 -+ Lower range limit : 0 -+ -+nts -+ Touch Release Event -+ tmCooldown.en=1 -+ tmCooldown.tim=2500 -+ //craft command -+ tSend.txt="event,buttonPress2,"+entn.txt+",number-set," -+ covx hSpeed.val,tTmp.txt,0,0 -+ tSend.txt+=tTmp.txt -+ //send calc crc -+ btlen tSend.txt,sys0 -+ crcrest 1,0xffff // reset CRC -+ crcputh 55 bb -+ crcputs sys0,2 -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+b0 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+15 +240,15 @@ -+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 -+ 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 -+15 +270,15 @@ -+nts -+ 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 -+ 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 -+15 +300,15 @@ -+nts -+ 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 -+ 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 -+15 +321,15 @@ -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text :  -+ Max. Text Size : 3 -+ Max. Text Size : 5 -+ -+nts -+ Touch Press Event -+ //if(bMode3.txt=="") -+ spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val -+ if(tTmp.txt=="") -+ { -+290 +362,42 @@ -+ bMode2.pco=1374 -+ } -+ if(bMode3.txt==vaModeCur.txt) -+ { -+ bMode3.pco=1374 -+ } -+ -+cMode1 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos2.val-3 -+ 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 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos2.val-2 -+ 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 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos2.val-1 -+ 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 -+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 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 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos3.val-3 -+ 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 -+ate Button btOnOff1 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ Text : -+ Max. Text Size : 40 -+ -+nts -+ Touch Press Event -+ //craft command -+ tSend.txt="event,buttonPress2," -+ tSend.txt+=entn.txt+"," -+ sys2=vaModePos3.val-2 -+ 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 -+ -+dMode3 -+ributes -+ Scope : local -+ Dragging : 0 -+ Disable release event after dragging: 0 -+ Send Component ID : disabled -+ State : unpressed -+ 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-1 -+ covx sys2,tTmp.txt,0,0 -+ tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt -+ tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," -+ covx btOnOff1.val,tTmp.txt,0,0 -+ tSend.txt+=tTmp.txt -+ //send calc crc -+ btlen tSend.txt,sys0 -+ crcrest 1,0xffff // reset CRC -+ crcputh 55 bb -+ crcputs sys0,2 -+ crcputs tSend.txt,0 -+ //send cmd -+ printh 55 bb -+ prints sys0,2 -+ prints tSend.txt,0 -+ prints crcval,2 -+ -+dModeNext -+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 -+ributes -+ Scope : local -+ Period (ms): 100 -+ Enabled : no -+ -+nts -+28 +455,49 @@ -+ ucopy strCommand.txt,4,payloadLength-5,0 -+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default) -+ spstr strCommand.txt,tInstruction.txt,"~",0 -+ spstr strCommand.txt,tTmp.txt,"~",1 -+ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt) -+ { -+ // change icon -+ spstr strCommand.txt,tIcon1.txt,"~",2 -+ //spstr strCommand.txt,tIcon1.txt,"~",2 -+ vis tIcon1,1 -+ // change icon color -+ spstr strCommand.txt,tTmp.txt,"~",3 -+ covx tTmp.txt,sys0,0,0 -+ tIcon1.pco=sys0 -+ //mode 1 heading -+ spstr strCommand.txt,heading1.txt,"~",4 -+ //mode 1 type -+ spstr strCommand.txt,vaType.txt,"~",5 -+ // get Button State -+ spstr strCommand.txt,tTmp.txt,"~",4 -+ covx tTmp.txt,sys0,0,0 -+ btOnOff1.val=sys0 -+ // get Speed value -+ spstr strCommand.txt,tTmp.txt,"~",5 -+ if(tTmp.txt=="disable") -+ { -+ vis t1,0 -+ vis hSpeed,0 -+ }else -+ { -+ vis t1,1 -+ vis hSpeed,1 -+ covx tTmp.txt,sys0,0,0 -+ if(tmCooldown.en==0) -+ { -+ hSpeed.val=sys0 -+ } -+ } -+ // set hSpeed maxValue -+ spstr strCommand.txt,tTmp.txt,"~",6 -+ covx tTmp.txt,hSpeed.maxval,0,0 -+ // set t1 Speed (Localization) -+ spstr strCommand.txt,t1.txt,"~",7 -+ //current mode -+ spstr strCommand.txt,vaModeCur.txt,"~",6 -+ spstr strCommand.txt,vaModeCur.txt,"~",8 -+ //mode list -+ spstr strCommand.txt,vaModeList.txt,"~",7 -+ spstr strCommand.txt,vaModeList.txt,"~",9 -+ if(vaModeList.txt=="") -+ { -+ vis bMode1,0 -+ vis bMode2,0 -+ vis bMode3,0 -+ vis bModeNext,0 -+ } -+84 +517,14 @@ -+ { -+ 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") -+own1.txt ++++ /dev/fd/62 2022-11-03 18:55:21.474851026 +0000 +14 +116,20 @@ +e (string) strCommand + Max. Text Size: 500 @@ -900,6 +112,92 @@ + mSpecial +,14 +2091,163 @@ + if(type5.txt=="button"||type5.txt=="input_sel") -+endStartup.txt +15 +118,15 @@ +end ++pupInSel.txt ++4 +14,15 @@ ++ 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 ++5 +70,15 @@ ++e (string) strCommand ++ Scope : local ++ Text : ++ Max. Text Size: 960 ++ Max. Text Size: 500 ++e (string) tId ++ Max. Text Size: 20 ++ ++15 +106,15 @@ ++ Text : ++ Max. Text Size: 40 ++ Max. Text Size: 900 ++e (string) vaType ++pupLight.txt ++5 +19,14 @@ ++ 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 bEffect,0 ++ //page open event ++ // event,pageOpenDetail,typeOfPage,tEntityName ++ // craft command ++ tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt ++ //send calc crc ++ btlen tSend.txt,sys0 ++ crcrest 1,0xffff // reset CRC ++31 +361,14 @@ ++ //enable color temp ++ vis t4,1 ++ vis t3,1 ++ vis hTempSlider,1 ++ } ++ } ++bEffect ++ Text :  ++ Max. Text Size : 10 ++ pageIcons.tTmp1.txt=tEntity.txt ++ pageIcons.tTmp2.txt=entn.txt ++ pageIcons.tTmp3.txt=tIcon1.txt ++ page popupInSel ++ate Button btOnOff1 ++23 +553,14 @@ ++ } ++ // set t0 Color (Localization) ++ spstr strCommand.txt,t0.txt,"~",8 ++ // set t4 Temperature (Localization) ++ spstr strCommand.txt,t4.txt,"~",9 ++ // set t1 Brightness (Localization) ++ spstr strCommand.txt,t1.txt,"~",10 ++ // activate effect button ++ spstr strCommand.txt,tTmp.txt,"~",11 ++ if(tTmp.txt=="enable") ++ { ++ vis bEffect,1 ++ }else ++ { ++ vis bEffect,0 ++ } ++ } ++ if(tInstruction.txt=="time") ++ { ++ // get set time to global variable ++ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 ++ } ++ if(tInstruction.txt=="date") diff --git a/HMI/US/portrait/n2t-out-visual/Program.s.txt b/HMI/US/portrait/n2t-out-visual/Program.s.txt new file mode 100644 index 00000000..9f8fa6dd --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/Program.s.txt @@ -0,0 +1,19 @@ +Program.s + //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data + int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement + int bufferPos=0 + int recvCrc=0 + int payloadLength=0 + int par0=0,par1=0 + // sleep timeout in s + int sleepTimeout=20 + int sleepValue=0 + // dim value + int dimValue=40 + int dimValueNormal=100 + //color vars + int defaultFontColor=65535 + int defaultBcoColor=6371 + // fix touch offset (Removed for US version) + //lcd_dev fffb 0002 0000 0020 + page pageStartup diff --git a/HMI/US/portrait/n2t-out-visual/cardAlarm.txt b/HMI/US/portrait/n2t-out-visual/cardAlarm.txt new file mode 100644 index 00000000..524a0641 --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/cardAlarm.txt @@ -0,0 +1,1511 @@ +Page cardAlarm + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tInstruction,0 + vis tTmp,0 + vis tId,0 + vis arm1,0 + vis arm2,0 + vis arm3,0 + vis arm4,0 + vis b0,0 + vis b1,0 + vis b2,0 + vis b3,0 + vis b4,0 + vis b5,0 + vis b6,0 + vis b7,0 + vis b8,0 + vis b9,0 + vis b10,0 + vis b11,0 + vis tCode,0 + vis bPrev,0 + vis bNext,0 + cardAlarm.bco=defaultBcoColor + for(sys0=0;sys0<40;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + } + if(defaultBcoColor==0) + { + tCode.bco=6371 + tCode.pco=40179 + } + if(defaultBcoColor==6371) + { + tCode.bco=10565 + tCode.pco=40179 + } + +Variable (string) entn + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + ID : 6 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tSend + Attributes + ID : 25 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) va1 + Attributes + ID : 30 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va2 + Attributes + ID : 31 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va3 + Attributes + ID : 32 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va4 + Attributes + ID : 33 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) vaAddBtn + Attributes + ID : 39 + Scope : local + Text : + Max. Text Size: 80 + +Text tCode + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 68 + y coordinate : 17 + Width : 192 + Height : 49 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 10565 + Font Color : 40179 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : password + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 26 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 129 + y coordinate : 73 + Width : 64 + Height : 49 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 99 + y coordinate : 290 + Width : 39 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 290 + Width : 100 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 42 + y coordinate : 443 + Width : 34 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 319 + Height : 479 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button arm1 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 17 + y coordinate : 132 + Width : 141 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va1.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm2 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 17 + y coordinate : 193 + Width : 141 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va2.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm3 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 171 + y coordinate : 131 + Width : 140 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va3.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm4 + Attributes + ID : 29 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 172 + y coordinate : 193 + Width : 141 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va4.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b0 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 25 + y coordinate : 252 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 1 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"1" + +Button b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 117 + y coordinate : 252 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 2 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"2" + +Button b10 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 117 + y coordinate : 424 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 0 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"0" + +Button b11 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 209 + y coordinate : 424 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : CLR + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt="" + +Button b2 + Attributes + ID : 14 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 209 + y coordinate : 251 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 3 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"3" + +Button b3 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 25 + y coordinate : 310 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 4 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"4" + +Button b4 + Attributes + ID : 16 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 117 + y coordinate : 310 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 5 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"5" + +Button b5 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 209 + y coordinate : 310 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 6 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"6" + +Button b6 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 25 + y coordinate : 368 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 7 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"7" + +Button b7 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 117 + y coordinate : 368 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 8 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"8" + +Button b8 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 209 + y coordinate : 368 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 9 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"9" + +Button b9 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 24 + y coordinate : 424 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 2 + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + if(vaAddBtn.txt!="") + { + tSend.txt+=vaAddBtn.txt+",button" + }else + { + tSend.txt+=entn.txt+",opnSensorNotify" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button bNext + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 265 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bHome" + }else + { + tSend.txt+="bNext" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 9 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Hotspot mSwipeNext + Attributes + ID : 35 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 311 + y coordinate : 5 + Width : 9 + Height : 470 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bNext,1 + +Hotspot mSwipePrev + Attributes + ID : 37 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 9 + Height : 470 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Hotspot mSwipeUp + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 10 + y coordinate : 0 + Width : 300 + Height : 9 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Timer tmFlash + Attributes + ID : 34 + Scope : local + Period (ms): 600 + Enabled : no + + Events + Timer Event + if(tIcon.isbr==1) + { + tIcon.isbr=0 + vis tIcon,0 + }else + { + tIcon.isbr=1 + vis tIcon,1 + } + +Timer tmSerial + Attributes + ID : 5 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + { + xTempDest2.val=xTempDest2.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bUp2 + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 57 + y coordinate : 176 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest2.valxTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 210 + y coordinate : 288 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btUp + Attributes + ID : 44 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 136 + y coordinate : 177 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + ID : 14 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out-visual/popupNotify.txt b/HMI/US/portrait/n2t-out-visual/popupNotify.txt new file mode 100644 index 00000000..bba94a71 --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/popupNotify.txt @@ -0,0 +1,724 @@ +Page popupNotify + 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 + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) tSend + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 200 + +Variable (int32) vaOldSleepT + Attributes + ID : 15 + Scope: local + Value: 0 + +Text tHeading + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 21 + Width : 260 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 3 + y coordinate : 74 + Width : 308 + Height : 90 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 250 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 113 + y coordinate : 410 + Width : 100 + Height : 29 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 13 + y coordinate : 409 + 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 tText + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 4 + y coordinate : 76 + Width : 307 + Height : 260 + 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 : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTextAlt + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 4 + y coordinate : 164 + Width : 306 + Height : 171 + 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 : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + 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 : 281 + y coordinate : 409 + Width : 34 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 319 + Height : 479 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 268 + y coordinate : 14 + 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 + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,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 b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 348 + Width : 150 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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 b2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 162 + y coordinate : 348 + Width : 150 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSerial + Attributes + ID : 6 + 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/portrait/n2t-out/arm1.txt b/HMI/US/portrait/n2t-out/cardAlarm.txt similarity index 100% rename from HMI/US/portrait/n2t-out/arm1.txt rename to HMI/US/portrait/n2t-out/cardAlarm.txt diff --git a/HMI/US/portrait/n2t-out/bDown1.txt b/HMI/US/portrait/n2t-out/cardEntities.txt similarity index 100% rename from HMI/US/portrait/n2t-out/bDown1.txt rename to HMI/US/portrait/n2t-out/cardEntities.txt diff --git a/HMI/US/portrait/n2t-out/bEntity1.txt b/HMI/US/portrait/n2t-out/cardGrid.txt similarity index 100% rename from HMI/US/portrait/n2t-out/bEntity1.txt rename to HMI/US/portrait/n2t-out/cardGrid.txt diff --git a/HMI/US/portrait/n2t-out/bNext.txt b/HMI/US/portrait/n2t-out/cardMedia.txt similarity index 100% rename from HMI/US/portrait/n2t-out/bNext.txt rename to HMI/US/portrait/n2t-out/cardMedia.txt diff --git a/HMI/US/portrait/n2t-out/cardPower.txt b/HMI/US/portrait/n2t-out/cardPower.txt new file mode 100644 index 00000000..e01a63c2 --- /dev/null +++ b/HMI/US/portrait/n2t-out/cardPower.txt @@ -0,0 +1,885 @@ +Page cardPower + 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 bPrev,0 + vis bNext,0 + tsw h0,0 + tsw h1,0 + tsw h2,0 + tsw h3,0 + tsw h4,0 + tsw h5,0 + vis h0,0 + vis h1,0 + vis h2,0 + vis h3,0 + vis h4,0 + vis h5,0 + vis t0Icon,0 + vis t1Icon,0 + vis t2Icon,0 + vis t3Icon,0 + vis t4Icon,0 + vis t5Icon,0 + cardPower.bco=defaultBcoColor + for(sys0=0;sys0<43;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + if(defaultBcoColor==0) + { + if(b[sys0].type==1) + { + b[sys0].pic=19 + b[sys0].pic1=19 + b[sys0].pic2=15 + } + } + } + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 275 + +Variable (int32) t0Speed + Attributes + Scope: local + Value: 0 + +Variable (int32) t1Speed + Attributes + Scope: local + Value: 0 + +Variable (int32) t2Speed + Attributes + Scope: local + Value: 0 + +Variable (int32) t3Speed + Attributes + Scope: local + Value: 0 + +Variable (int32) t4Speed + Attributes + Scope: local + Value: 0 + +Variable (int32) t5Speed + Attributes + Scope: local + Value: 0 + +Variable (string) tId + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + Scope : local + Text : + Max. Text Size: 10 + +Text t0Icon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text :  + Max. Text Size : 5 + +Text t0u + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text t1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text :  + Max. Text Size : 5 + +Text t1Icon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text :  + Max. Text Size : 5 + +Text t1u + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text t2Icon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : î ° + Max. Text Size : 5 + +Text t2u + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text t3Icon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : î ° + Max. Text Size : 5 + +Text t3u + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text t4Icon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : î´½ + Max. Text Size : 5 + +Text t4u + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text t5Icon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text :  + Max. Text Size : 5 + +Text t5u + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tHome + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Slider h0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + +Slider h1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + +Slider h2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + +Slider h3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + +Slider h4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + +Slider h5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + +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,cardPower," + if(bPrev.txt=="") + { + tSend.txt+="bHome" + }else + { + tSend.txt+="bNext" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Hotspot mSwipeNext + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bNext,1 + +Hotspot mSwipePrev + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,1 + +Hotspot mSwipeUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,1 + +Timer tm0 + Attributes + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + sys0=h0.val+t0Speed.val + if(sys0>h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out/popupNotify.txt b/HMI/US/portrait/n2t-out/popupNotify.txt new file mode 100644 index 00000000..a137ef6e --- /dev/null +++ b/HMI/US/portrait/n2t-out/popupNotify.txt @@ -0,0 +1,493 @@ +Page popupNotify + 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 + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (int32) vaOldSleepT + Attributes + Scope: local + Value: 0 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 250 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tText + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTextAlt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button 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 + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,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 b1 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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 b2 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(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(sys01) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + { + xTempDest2.val=xTempDest2.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bUp2 + Attributes + ID : 39 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 178 + y coordinate : 67 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest2.valxTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 331 + y coordinate : 179 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btUp + Attributes + ID : 47 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 257 + y coordinate : 68 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + // activate effect button + spstr strCommand.txt,tTmp.txt,"~",11 + if(tTmp.txt=="enable") + { + vis bEffect,1 + }else + { + vis bEffect,0 + } + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + ID : 14 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/n2t-out-visual/popupNotify.txt b/HMI/n2t-out-visual/popupNotify.txt new file mode 100644 index 00000000..b4ea9d1d --- /dev/null +++ b/HMI/n2t-out-visual/popupNotify.txt @@ -0,0 +1,724 @@ +Page popupNotify + 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 + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) tSend + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 200 + +Variable (int32) vaOldSleepT + Attributes + ID : 15 + Scope: local + Value: 0 + +Text tHeading + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 26 + Width : 345 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 74 + Width : 109 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 250 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 290 + Width : 100 + Height : 29 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 8 + 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 tText + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 74 + Width : 397 + Height : 171 + 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 : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTextAlt + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 135 + y coordinate : 74 + Width : 285 + Height : 171 + 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 : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + 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 : 406 + y coordinate : 277 + Width : 34 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 397 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,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 b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 24 + y coordinate : 261 + Width : 182 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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 b2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 239 + y coordinate : 261 + Width : 182 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSerial + Attributes + ID : 6 + 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/n2t-out/Program.s.txt b/HMI/n2t-out/Program.s.txt new file mode 100644 index 00000000..217dbf1f --- /dev/null +++ b/HMI/n2t-out/Program.s.txt @@ -0,0 +1,19 @@ +Program.s + //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data + int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement + int bufferPos=0 + int recvCrc=0 + int payloadLength=0 + int par0=0,par1=0 + // sleep timeout in s + int sleepTimeout=20 + int sleepValue=0 + // dim value + int dimValue=40 + int dimValueNormal=100 + //color vars + int defaultFontColor=65535 + int defaultBcoColor=6371 + // fix touch offset + lcd_dev fffb 0002 0000 0020 + page pageStartup diff --git a/HMI/n2t-out/cardAlarm.txt b/HMI/n2t-out/cardAlarm.txt new file mode 100644 index 00000000..2ecbfcd8 --- /dev/null +++ b/HMI/n2t-out/cardAlarm.txt @@ -0,0 +1,926 @@ +Page cardAlarm + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tInstruction,0 + vis tTmp,0 + vis tId,0 + vis arm1,0 + vis arm2,0 + vis arm3,0 + vis arm4,0 + vis b0,0 + vis b1,0 + vis b2,0 + vis b3,0 + vis b4,0 + vis b5,0 + vis b6,0 + vis b7,0 + vis b8,0 + vis b9,0 + vis b10,0 + vis b11,0 + vis tCode,0 + vis bPrev,0 + vis bNext,0 + cardAlarm.bco=defaultBcoColor + for(sys0=0;sys0<40;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + } + if(defaultBcoColor==0) + { + tCode.bco=6371 + tCode.pco=40179 + } + if(defaultBcoColor==6371) + { + tCode.bco=10565 + tCode.pco=40179 + } + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) va1 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va2 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va3 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) va4 + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) vaAddBtn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Text tCode + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button arm1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va1.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va2.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va3.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va4.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 1 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"1" + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 2 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"2" + +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 0 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"0" + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : CLR + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt="" + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 3 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"3" + +Button b3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 4 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"4" + +Button b4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 5 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"5" + +Button b5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 6 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"6" + +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 7 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"7" + +Button b7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 8 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"8" + +Button b8 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : 9 + Max. Text Size : 10 + + Events + Touch Press Event + tCode.txt=tCode.txt+"9" + +Button b9 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + if(vaAddBtn.txt!="") + { + tSend.txt+=vaAddBtn.txt+",button" + }else + { + tSend.txt+=entn.txt+",opnSensorNotify" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button bNext + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bHome" + }else + { + tSend.txt+="bNext" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Hotspot mSwipeNext + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bNext,1 + +Hotspot mSwipePrev + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,1 + +Hotspot mSwipeUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + + Events + Touch Press Event + click bPrev,1 + +Timer tmFlash + Attributes + Scope : local + Period (ms): 600 + Enabled : no + + Events + Timer Event + if(tIcon.isbr==1) + { + tIcon.isbr=0 + vis tIcon,0 + }else + { + tIcon.isbr=1 + vis tIcon,1 + } + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + { + xTempDest2.val=xTempDest2.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bUp2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest2.valxTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpdHighLow," + //convert temperature + covx xTempDest1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + tSend.txt+="|" + covx xTempDest2.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btUp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest.val1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + // activate effect button + spstr strCommand.txt,tTmp.txt,"~",11 + if(tTmp.txt=="enable") + { + vis bEffect,1 + }else + { + vis bEffect,0 + } + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/n2t-out/popupNotify.txt b/HMI/n2t-out/popupNotify.txt new file mode 100644 index 00000000..a137ef6e --- /dev/null +++ b/HMI/n2t-out/popupNotify.txt @@ -0,0 +1,493 @@ +Page popupNotify + 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 + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Variable (int32) vaOldSleepT + Attributes + Scope: local + Value: 0 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 250 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tText + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTextAlt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button 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 + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,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 b1 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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 b2 + 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 + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(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 +