From 6376eed1e22b97a0f214a3ba29975fa1d887dd4f Mon Sep 17 00:00:00 2001 From: joBr99 Date: Sat, 21 May 2022 12:30:17 +0000 Subject: [PATCH] US (add nextion2text) --- HMI/US/landscape/diff-eu-version.txt | 296 +----- HMI/US/landscape/n2t-out-visual/Program.s.txt | 1 + HMI/US/landscape/n2t-out-visual/cardAlarm.txt | 10 +- .../landscape/n2t-out-visual/cardEntities.txt | 198 ++-- HMI/US/landscape/n2t-out-visual/cardGrid.txt | 52 +- HMI/US/landscape/n2t-out-visual/cardMedia.txt | 50 +- HMI/US/landscape/n2t-out-visual/cardQR.txt | 891 ++++++++++++++++++ .../landscape/n2t-out-visual/cardThermo.txt | 82 +- .../n2t-out-visual/nspanel_US_L_Stats.txt | 90 +- .../landscape/n2t-out-visual/pageStartup.txt | 6 +- HMI/US/landscape/n2t-out-visual/pageTest.txt | 36 + .../landscape/n2t-out-visual/popupLight.txt | 38 +- .../landscape/n2t-out-visual/popupNotify.txt | 4 + .../landscape/n2t-out-visual/popupShutter.txt | 4 + .../landscape/n2t-out-visual/screensaver.txt | 4 + HMI/US/landscape/n2t-out/Program.s.txt | 1 + HMI/US/landscape/n2t-out/cardAlarm.txt | 4 + HMI/US/landscape/n2t-out/cardEntities.txt | 92 ++ HMI/US/landscape/n2t-out/cardGrid.txt | 4 + HMI/US/landscape/n2t-out/cardMedia.txt | 4 + HMI/US/landscape/n2t-out/cardQR.txt | 601 ++++++++++++ HMI/US/landscape/n2t-out/cardThermo.txt | 4 + HMI/US/landscape/n2t-out/pageStartup.txt | 6 +- HMI/US/landscape/n2t-out/pageTest.txt | 14 + HMI/US/landscape/n2t-out/popupLight.txt | 4 + HMI/US/landscape/n2t-out/popupNotify.txt | 4 + HMI/US/landscape/n2t-out/popupShutter.txt | 4 + HMI/US/landscape/n2t-out/screensaver.txt | 4 + HMI/US/portrait/diff-eu-version.txt | 48 +- HMI/US/portrait/diff-filtered.txt | 50 +- 30 files changed, 2063 insertions(+), 543 deletions(-) create mode 100644 HMI/US/landscape/n2t-out-visual/cardQR.txt create mode 100644 HMI/US/landscape/n2t-out/cardQR.txt diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 714e8ccb..6b924f62 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -1,212 +1,16 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt ---- HMI/n2t-out/Program.s.txt 2022-05-21 11:46:43.729351186 +0000 -+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-21 11:46:44.825339225 +0000 -@@ -11,6 +11,3 @@ +--- HMI/n2t-out/Program.s.txt 2022-05-21 12:30:15.820142077 +0000 ++++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-21 12:30:16.796150142 +0000 +@@ -11,6 +11,4 @@ // dim value int dimValue=40 int dimValueNormal=100 - // fix touch offset - lcd_dev fffb 0002 0000 0020 -- page pageStartup -diff -bur HMI/n2t-out/cardAlarm.txt HMI/US/landscape/n2t-out/cardAlarm.txt ---- HMI/n2t-out/cardAlarm.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/cardAlarm.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -788,10 +788,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 -diff -bur HMI/n2t-out/cardEntities.txt HMI/US/landscape/n2t-out/cardEntities.txt ---- HMI/n2t-out/cardEntities.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/cardEntities.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -1277,28 +1277,6 @@ - vis bText1,0 - vis hSlider1,0 - vis nNum1,0 -- // get Button State (optional Value) -- spstr strCommand.txt,tId.txt,"~",8 -- spstr tId.txt,tTmp.txt,"|",0 -- if(tTmp.txt=="0") -- { -- bUp1.pco=27501 -- tsw bUp1,0 -- }else -- { -- bUp1.pco=65535 -- tsw bUp1,1 -- } -- spstr tId.txt,tTmp.txt,"|",1 -- if(tTmp.txt=="0") -- { -- bDown1.pco=27501 -- tsw bDown1,0 -- }else -- { -- bDown1.pco=65535 -- tsw bDown1,1 -- } - } - if(type1.txt=="light") - { -@@ -1421,28 +1399,6 @@ - vis bText2,0 - vis hSlider2,0 - vis nNum2,0 -- // get Button State (optional Value) -- spstr strCommand.txt,tId.txt,"~",14 -- spstr tId.txt,tTmp.txt,"|",0 -- if(tTmp.txt=="0") -- { -- bUp2.pco=27501 -- tsw bUp2,0 -- }else -- { -- bUp2.pco=65535 -- tsw bUp2,1 -- } -- spstr tId.txt,tTmp.txt,"|",1 -- if(tTmp.txt=="0") -- { -- bDown2.pco=27501 -- tsw bDown2,0 -- }else -- { -- bDown2.pco=65535 -- tsw bDown2,1 -- } - } - if(type2.txt=="light") - { -@@ -1565,28 +1521,6 @@ - vis bText3,0 - vis hSlider3,0 - vis nNum3,0 -- // get Button State (optional Value) -- spstr strCommand.txt,tId.txt,"~",20 -- spstr tId.txt,tTmp.txt,"|",0 -- if(tTmp.txt=="0") -- { -- bUp3.pco=27501 -- tsw bUp3,0 -- }else -- { -- bUp3.pco=65535 -- tsw bUp3,1 -- } -- spstr tId.txt,tTmp.txt,"|",1 -- if(tTmp.txt=="0") -- { -- bDown3.pco=27501 -- tsw bDown3,0 -- }else -- { -- bDown3.pco=65535 -- tsw bDown3,1 -- } - } - if(type3.txt=="light") - { -@@ -1709,28 +1643,6 @@ - vis bText4,0 - vis hSlider4,0 - vis nNum4,0 -- // get Button State (optional Value) -- spstr strCommand.txt,tId.txt,"~",26 -- spstr tId.txt,tTmp.txt,"|",0 -- if(tTmp.txt=="0") -- { -- bUp4.pco=27501 -- tsw bUp4,0 -- }else -- { -- bUp4.pco=65535 -- tsw bUp4,1 -- } -- spstr tId.txt,tTmp.txt,"|",1 -- if(tTmp.txt=="0") -- { -- bDown4.pco=27501 -- tsw bDown4,0 -- }else -- { -- bDown4.pco=65535 -- tsw bDown4,1 -- } - } - if(type4.txt=="light") - { -@@ -1871,10 +1783,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - if(tInstruction.txt=="time") - { -diff -bur HMI/n2t-out/cardGrid.txt HMI/US/landscape/n2t-out/cardGrid.txt ---- HMI/n2t-out/cardGrid.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/cardGrid.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -869,10 +869,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - if(tInstruction.txt=="time") - { -diff -bur HMI/n2t-out/cardMedia.txt HMI/US/landscape/n2t-out/cardMedia.txt ---- HMI/n2t-out/cardMedia.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/cardMedia.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -740,10 +740,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 -Only in HMI/n2t-out: cardQR.txt -diff -bur HMI/n2t-out/cardThermo.txt HMI/US/landscape/n2t-out/cardThermo.txt ---- HMI/n2t-out/cardThermo.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/cardThermo.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -1192,10 +1192,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - if(tInstruction.txt=="time") - { + page pageStartup diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt ---- HMI/n2t-out/pageStartup.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -152,7 +152,7 @@ - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none -- Text : 35 -+ Text : 34 - Max. Text Size : 10 - - Picture p0 +--- HMI/n2t-out/pageStartup.txt 2022-05-21 12:30:15.820142077 +0000 ++++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-21 12:30:16.796150142 +0000 @@ -177,7 +177,7 @@ recmod=1 bauds=115200 @@ -216,91 +20,3 @@ diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC -@@ -330,10 +330,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 -diff -bur HMI/n2t-out/pageTest.txt HMI/US/landscape/n2t-out/pageTest.txt ---- HMI/n2t-out/pageTest.txt 2022-05-21 11:46:43.729351186 +0000 -+++ HMI/US/landscape/n2t-out/pageTest.txt 2022-05-21 11:46:44.825339225 +0000 -@@ -176,17 +176,3 @@ - Touch Press Event - bauds=115200 - --Button b2 -- Attributes -- Scope : local -- Dragging : 0 -- Disable release event after dragging: 0 -- Send Component ID : disabled -- State : unpressed -- Text : qr -- Max. Text Size : 10 -- -- Events -- Touch Press Event -- page cardQR -- -diff -bur HMI/n2t-out/popupLight.txt HMI/US/landscape/n2t-out/popupLight.txt ---- HMI/n2t-out/popupLight.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/popupLight.txt 2022-05-21 11:46:44.825339225 +0000 -@@ -618,10 +618,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 -diff -bur HMI/n2t-out/popupNotify.txt HMI/US/landscape/n2t-out/popupNotify.txt ---- HMI/n2t-out/popupNotify.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/popupNotify.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -381,10 +381,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 -diff -bur HMI/n2t-out/popupShutter.txt HMI/US/landscape/n2t-out/popupShutter.txt ---- HMI/n2t-out/popupShutter.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/popupShutter.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -422,10 +422,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 -diff -bur HMI/n2t-out/screensaver.txt HMI/US/landscape/n2t-out/screensaver.txt ---- HMI/n2t-out/screensaver.txt 2022-05-21 11:46:43.733351142 +0000 -+++ HMI/US/landscape/n2t-out/screensaver.txt 2022-05-21 11:46:44.829339181 +0000 -@@ -607,10 +607,6 @@ - { - page cardAlarm - } -- if(tId.txt=="cardQR") -- { -- page cardQR -- } - } - // end of user code - udelete payloadLength-1 diff --git a/HMI/US/landscape/n2t-out-visual/Program.s.txt b/HMI/US/landscape/n2t-out-visual/Program.s.txt index 82d30254..f321685e 100644 --- a/HMI/US/landscape/n2t-out-visual/Program.s.txt +++ b/HMI/US/landscape/n2t-out-visual/Program.s.txt @@ -11,3 +11,4 @@ Program.s // dim value int dimValue=40 int dimValueNormal=100 + page pageStartup diff --git a/HMI/US/landscape/n2t-out-visual/cardAlarm.txt b/HMI/US/landscape/n2t-out-visual/cardAlarm.txt index 32da500c..0669f985 100644 --- a/HMI/US/landscape/n2t-out-visual/cardAlarm.txt +++ b/HMI/US/landscape/n2t-out-visual/cardAlarm.txt @@ -1003,9 +1003,9 @@ Hotspot mSwipeNext Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 472 + x coordinate : 471 y coordinate : 5 - Width : 8 + Width : 9 Height : 310 Effect : load Effect Priority : 0 @@ -1042,7 +1042,7 @@ Hotspot mSwipeUp Opacity : 127 x coordinate : 12 y coordinate : 0 - Width : 426 + Width : 450 Height : 9 Effect : load Effect Priority : 0 @@ -1345,6 +1345,10 @@ Timer tmSerial { page cardAlarm } + if(tId.txt=="cardQR") + { + page cardQR + } } // end of user code udelete payloadLength-1 diff --git a/HMI/US/landscape/n2t-out-visual/cardEntities.txt b/HMI/US/landscape/n2t-out-visual/cardEntities.txt index 3d0aafc7..6212c5bc 100644 --- a/HMI/US/landscape/n2t-out-visual/cardEntities.txt +++ b/HMI/US/landscape/n2t-out-visual/cardEntities.txt @@ -144,7 +144,7 @@ Number nNum1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 394 + x coordinate : 393 y coordinate : 76 Width : 46 Height : 50 @@ -174,7 +174,7 @@ Number nNum2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 394 + x coordinate : 393 y coordinate : 132 Width : 46 Height : 50 @@ -204,7 +204,7 @@ Number nNum3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 394 + x coordinate : 393 y coordinate : 186 Width : 45 Height : 50 @@ -234,7 +234,7 @@ Number nNum4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 394 + x coordinate : 393 y coordinate : 242 Width : 44 Height : 50 @@ -264,7 +264,7 @@ Text tHeading Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 127 + x coordinate : 126 y coordinate : 26 Width : 227 Height : 30 @@ -294,7 +294,7 @@ Text tEntity1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 93 + x coordinate : 92 y coordinate : 85 Width : 180 Height : 30 @@ -324,7 +324,7 @@ Text tEntity2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 94 + x coordinate : 93 y coordinate : 142 Width : 180 Height : 30 @@ -354,7 +354,7 @@ Text tEntity3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 94 + x coordinate : 93 y coordinate : 198 Width : 180 Height : 30 @@ -384,7 +384,7 @@ Text tEntity4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 94 + x coordinate : 93 y coordinate : 254 Width : 180 Height : 30 @@ -414,7 +414,7 @@ Text tIcon1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 41 + x coordinate : 40 y coordinate : 84 Width : 45 Height : 30 @@ -444,7 +444,7 @@ Text tIcon2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 41 + x coordinate : 40 y coordinate : 141 Width : 45 Height : 30 @@ -474,7 +474,7 @@ Text tIcon3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 41 + x coordinate : 40 y coordinate : 197 Width : 45 Height : 30 @@ -504,7 +504,7 @@ Text tIcon4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 41 + x coordinate : 40 y coordinate : 254 Width : 45 Height : 30 @@ -534,7 +534,7 @@ Text tSend Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 16 + x coordinate : 15 y coordinate : 0 Width : 230 Height : 24 @@ -564,7 +564,7 @@ Text tTmp Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 410 + x coordinate : 409 y coordinate : 289 Width : 34 Height : 30 @@ -594,7 +594,7 @@ Text tInstruction Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 16 + x coordinate : 15 y coordinate : 290 Width : 100 Height : 30 @@ -624,7 +624,7 @@ Text tId Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 115 + x coordinate : 114 y coordinate : 290 Width : 39 Height : 30 @@ -654,7 +654,7 @@ Picture p0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 1 + x coordinate : 0 y coordinate : 0 Width : 479 Height : 319 @@ -671,7 +671,7 @@ Slider hSlider1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 291 + x coordinate : 290 y coordinate : 79 Width : 100 Height : 43 @@ -714,7 +714,7 @@ Slider hSlider2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 292 + x coordinate : 291 y coordinate : 135 Width : 100 Height : 43 @@ -757,7 +757,7 @@ Slider hSlider3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 292 + x coordinate : 291 y coordinate : 189 Width : 100 Height : 43 @@ -800,7 +800,7 @@ Slider hSlider4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 290 + x coordinate : 289 y coordinate : 244 Width : 100 Height : 43 @@ -843,7 +843,7 @@ Button bDown1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 393 + x coordinate : 392 y coordinate : 75 Width : 50 Height : 50 @@ -890,7 +890,7 @@ Button bUp1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 291 + x coordinate : 290 y coordinate : 75 Width : 50 Height : 50 @@ -937,7 +937,7 @@ Button bStop1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 341 + x coordinate : 340 y coordinate : 75 Width : 50 Height : 50 @@ -984,7 +984,7 @@ Button bStop2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 342 + x coordinate : 341 y coordinate : 132 Width : 50 Height : 50 @@ -1031,7 +1031,7 @@ Button bDown2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 393 + x coordinate : 392 y coordinate : 131 Width : 50 Height : 50 @@ -1078,7 +1078,7 @@ Button bUp2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 291 + x coordinate : 290 y coordinate : 132 Width : 50 Height : 50 @@ -1125,7 +1125,7 @@ Button bStop3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 342 + x coordinate : 341 y coordinate : 185 Width : 50 Height : 50 @@ -1172,7 +1172,7 @@ Button bDown3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 394 + x coordinate : 393 y coordinate : 185 Width : 50 Height : 50 @@ -1219,7 +1219,7 @@ Button bUp3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 291 + x coordinate : 290 y coordinate : 186 Width : 50 Height : 50 @@ -1266,7 +1266,7 @@ Button bStop4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 342 + x coordinate : 341 y coordinate : 241 Width : 50 Height : 50 @@ -1313,7 +1313,7 @@ Button bDown4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 393 + x coordinate : 392 y coordinate : 241 Width : 50 Height : 50 @@ -1360,7 +1360,7 @@ Button bUp4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 291 + x coordinate : 290 y coordinate : 242 Width : 50 Height : 50 @@ -1407,7 +1407,7 @@ Button bPrev Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 25 + x coordinate : 24 y coordinate : 16 Width : 50 Height : 50 @@ -1461,7 +1461,7 @@ Button bNext Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 407 + x coordinate : 406 y coordinate : 16 Width : 50 Height : 50 @@ -1508,7 +1508,7 @@ Button bText1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 293 + x coordinate : 292 y coordinate : 84 Width : 145 Height : 30 @@ -1555,7 +1555,7 @@ Button bText2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 292 + x coordinate : 291 y coordinate : 140 Width : 145 Height : 30 @@ -1602,7 +1602,7 @@ Button bText3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 293 + x coordinate : 292 y coordinate : 197 Width : 145 Height : 30 @@ -1649,7 +1649,7 @@ Button bText4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 293 + x coordinate : 292 y coordinate : 254 Width : 145 Height : 30 @@ -1696,7 +1696,7 @@ Dual-state Button btOnOff1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 388 + x coordinate : 387 y coordinate : 75 Width : 50 Height : 50 @@ -1741,7 +1741,7 @@ Dual-state Button btOnOff2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 389 + x coordinate : 388 y coordinate : 132 Width : 50 Height : 50 @@ -1786,7 +1786,7 @@ Dual-state Button btOnOff3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 390 + x coordinate : 389 y coordinate : 186 Width : 50 Height : 50 @@ -1831,7 +1831,7 @@ Dual-state Button btOnOff4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 390 + x coordinate : 389 y coordinate : 242 Width : 50 Height : 50 @@ -1876,7 +1876,7 @@ Hotspot mSpecial Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 324 + x coordinate : 323 y coordinate : 0 Width : 83 Height : 67 @@ -1902,7 +1902,7 @@ Hotspot m2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 41 + x coordinate : 40 y coordinate : 184 Width : 250 Height : 60 @@ -1933,7 +1933,7 @@ Hotspot m1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 40 + x coordinate : 39 y coordinate : 127 Width : 247 Height : 60 @@ -1964,7 +1964,7 @@ Hotspot m0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 38 + x coordinate : 37 y coordinate : 70 Width : 244 Height : 56 @@ -1995,7 +1995,7 @@ Hotspot m3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 39 + x coordinate : 38 y coordinate : 237 Width : 244 Height : 60 @@ -2026,9 +2026,9 @@ Hotspot mSwipeNext Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 473 + x coordinate : 471 y coordinate : 5 - Width : 7 + Width : 9 Height : 310 Effect : load Effect Priority : 0 @@ -2065,7 +2065,7 @@ Hotspot mSwipeUp Opacity : 127 x coordinate : 12 y coordinate : 0 - Width : 426 + Width : 454 Height : 9 Effect : load Effect Priority : 0 @@ -2102,7 +2102,7 @@ Hotspot mSwipePrev Opacity : 127 x coordinate : 0 y coordinate : 5 - Width : 8 + Width : 9 Height : 310 Effect : load Effect Priority : 0 @@ -2249,6 +2249,28 @@ Timer tmSerial vis bText1,0 vis hSlider1,0 vis nNum1,0 + // get Button State (optional Value) + spstr strCommand.txt,tId.txt,"~",8 + spstr tId.txt,tTmp.txt,"|",0 + if(tTmp.txt=="0") + { + bUp1.pco=27501 + tsw bUp1,0 + }else + { + bUp1.pco=65535 + tsw bUp1,1 + } + spstr tId.txt,tTmp.txt,"|",1 + if(tTmp.txt=="0") + { + bDown1.pco=27501 + tsw bDown1,0 + }else + { + bDown1.pco=65535 + tsw bDown1,1 + } } if(type1.txt=="light") { @@ -2371,6 +2393,28 @@ Timer tmSerial vis bText2,0 vis hSlider2,0 vis nNum2,0 + // get Button State (optional Value) + spstr strCommand.txt,tId.txt,"~",14 + spstr tId.txt,tTmp.txt,"|",0 + if(tTmp.txt=="0") + { + bUp2.pco=27501 + tsw bUp2,0 + }else + { + bUp2.pco=65535 + tsw bUp2,1 + } + spstr tId.txt,tTmp.txt,"|",1 + if(tTmp.txt=="0") + { + bDown2.pco=27501 + tsw bDown2,0 + }else + { + bDown2.pco=65535 + tsw bDown2,1 + } } if(type2.txt=="light") { @@ -2493,6 +2537,28 @@ Timer tmSerial vis bText3,0 vis hSlider3,0 vis nNum3,0 + // get Button State (optional Value) + spstr strCommand.txt,tId.txt,"~",20 + spstr tId.txt,tTmp.txt,"|",0 + if(tTmp.txt=="0") + { + bUp3.pco=27501 + tsw bUp3,0 + }else + { + bUp3.pco=65535 + tsw bUp3,1 + } + spstr tId.txt,tTmp.txt,"|",1 + if(tTmp.txt=="0") + { + bDown3.pco=27501 + tsw bDown3,0 + }else + { + bDown3.pco=65535 + tsw bDown3,1 + } } if(type3.txt=="light") { @@ -2615,6 +2681,28 @@ Timer tmSerial vis bText4,0 vis hSlider4,0 vis nNum4,0 + // get Button State (optional Value) + spstr strCommand.txt,tId.txt,"~",26 + spstr tId.txt,tTmp.txt,"|",0 + if(tTmp.txt=="0") + { + bUp4.pco=27501 + tsw bUp4,0 + }else + { + bUp4.pco=65535 + tsw bUp4,1 + } + spstr tId.txt,tTmp.txt,"|",1 + if(tTmp.txt=="0") + { + bDown4.pco=27501 + tsw bDown4,0 + }else + { + bDown4.pco=65535 + tsw bDown4,1 + } } if(type4.txt=="light") { @@ -2755,6 +2843,10 @@ Timer tmSerial { page cardAlarm } + if(tId.txt=="cardQR") + { + page cardQR + } } if(tInstruction.txt=="time") { diff --git a/HMI/US/landscape/n2t-out-visual/cardGrid.txt b/HMI/US/landscape/n2t-out-visual/cardGrid.txt index e66039e4..24d9bcb5 100644 --- a/HMI/US/landscape/n2t-out-visual/cardGrid.txt +++ b/HMI/US/landscape/n2t-out-visual/cardGrid.txt @@ -144,9 +144,9 @@ Text tHeading Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 125 - y coordinate : 25 - Width : 226 + x coordinate : 128 + y coordinate : 26 + Width : 227 Height : 30 Effect : load Effect Priority : 0 @@ -174,7 +174,7 @@ Text tEntity1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 21 + x coordinate : 23 y coordinate : 155 Width : 140 Height : 30 @@ -324,7 +324,7 @@ Text tEntity2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 172 + x coordinate : 174 y coordinate : 155 Width : 140 Height : 30 @@ -354,7 +354,7 @@ Text tEntity3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 322 + x coordinate : 324 y coordinate : 155 Width : 140 Height : 30 @@ -384,7 +384,7 @@ Text tEntity4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 21 + x coordinate : 23 y coordinate : 274 Width : 140 Height : 30 @@ -414,7 +414,7 @@ Text tEntity5 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 172 + x coordinate : 174 y coordinate : 274 Width : 140 Height : 30 @@ -444,7 +444,7 @@ Text tEntity6 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 322 + x coordinate : 324 y coordinate : 274 Width : 140 Height : 30 @@ -474,7 +474,7 @@ Picture p0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 0 + x coordinate : 1 y coordinate : 0 Width : 479 Height : 319 @@ -491,7 +491,7 @@ Button bPrev Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 24 + x coordinate : 26 y coordinate : 16 Width : 50 Height : 50 @@ -545,7 +545,7 @@ Button bNext Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 406 + x coordinate : 408 y coordinate : 16 Width : 50 Height : 50 @@ -592,7 +592,7 @@ Button bEntity1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 51 + x coordinate : 53 y coordinate : 75 Width : 80 Height : 80 @@ -650,7 +650,7 @@ Button bEntity2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 202 + x coordinate : 204 y coordinate : 75 Width : 80 Height : 80 @@ -708,7 +708,7 @@ Button bEntity3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 352 + x coordinate : 354 y coordinate : 75 Width : 80 Height : 80 @@ -766,7 +766,7 @@ Button bEntity4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 51 + x coordinate : 37 y coordinate : 194 Width : 80 Height : 80 @@ -824,7 +824,7 @@ Button bEntity5 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 202 + x coordinate : 204 y coordinate : 194 Width : 80 Height : 80 @@ -882,7 +882,7 @@ Button bEntity6 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 352 + x coordinate : 354 y coordinate : 194 Width : 80 Height : 80 @@ -940,7 +940,7 @@ Hotspot mSpecial Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 308 + x coordinate : 322 y coordinate : 0 Width : 83 Height : 67 @@ -968,7 +968,7 @@ Hotspot mSwipeNext Opacity : 127 x coordinate : 471 y coordinate : 5 - Width : 7 + Width : 9 Height : 310 Effect : load Effect Priority : 0 @@ -1003,10 +1003,10 @@ Hotspot mSwipeUp Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 10 + x coordinate : 12 y coordinate : 0 - Width : 425 - Height : 7 + Width : 426 + Height : 9 Effect : load Effect Priority : 0 Effect Time : 300 @@ -1042,7 +1042,7 @@ Hotspot mSwipePrev Opacity : 127 x coordinate : 0 y coordinate : 5 - Width : 8 + Width : 9 Height : 310 Effect : load Effect Priority : 0 @@ -1333,6 +1333,10 @@ Timer tmSerial { page cardAlarm } + if(tId.txt=="cardQR") + { + page cardQR + } } if(tInstruction.txt=="time") { diff --git a/HMI/US/landscape/n2t-out-visual/cardMedia.txt b/HMI/US/landscape/n2t-out-visual/cardMedia.txt index 10a4b00b..52ba5c7a 100644 --- a/HMI/US/landscape/n2t-out-visual/cardMedia.txt +++ b/HMI/US/landscape/n2t-out-visual/cardMedia.txt @@ -64,7 +64,7 @@ Text tSend Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 16 + x coordinate : 17 y coordinate : 0 Width : 230 Height : 15 @@ -94,7 +94,7 @@ Text tTmp Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 14 + x coordinate : 31 y coordinate : 156 Width : 27 Height : 30 @@ -124,7 +124,7 @@ Text tInstruction Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 296 + x coordinate : 313 y coordinate : 0 Width : 100 Height : 20 @@ -154,7 +154,7 @@ Text tId Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 49 + x coordinate : 66 y coordinate : 159 Width : 30 Height : 30 @@ -184,7 +184,7 @@ Text tHeading Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 126 + x coordinate : 128 y coordinate : 26 Width : 228 Height : 30 @@ -214,7 +214,7 @@ Text tTitle Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 99 + x coordinate : 101 y coordinate : 78 Width : 358 Height : 25 @@ -244,7 +244,7 @@ Text tAuthor Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 100 + x coordinate : 102 y coordinate : 108 Width : 358 Height : 25 @@ -274,7 +274,7 @@ Text t2 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 317 + x coordinate : 319 y coordinate : 145 Width : 50 Height : 50 @@ -323,7 +323,7 @@ Text tPlayPause Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 214 + x coordinate : 216 y coordinate : 145 Width : 50 Height : 50 @@ -372,7 +372,7 @@ Text t0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 107 + x coordinate : 109 y coordinate : 145 Width : 50 Height : 50 @@ -421,7 +421,7 @@ Text tIcon Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 26 + x coordinate : 28 y coordinate : 75 Width : 71 Height : 62 @@ -451,7 +451,7 @@ Text t1 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 22 + x coordinate : 24 y coordinate : 201 Width : 50 Height : 50 @@ -501,7 +501,7 @@ Text t3 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 408 + x coordinate : 410 y coordinate : 201 Width : 50 Height : 50 @@ -551,7 +551,7 @@ Text t4 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 36 + x coordinate : 38 y coordinate : 262 Width : 50 Height : 50 @@ -581,7 +581,7 @@ Text tSpeaker Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 109 + x coordinate : 111 y coordinate : 262 Width : 267 Height : 50 @@ -630,7 +630,7 @@ Text t6 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 396 + x coordinate : 398 y coordinate : 262 Width : 50 Height : 50 @@ -672,7 +672,7 @@ Text t5 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 408 + x coordinate : 410 y coordinate : 145 Width : 50 Height : 50 @@ -738,7 +738,7 @@ Slider hVolume Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 76 + x coordinate : 78 y coordinate : 206 Width : 328 Height : 43 @@ -784,7 +784,7 @@ Button bNext Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 406 + x coordinate : 408 y coordinate : 16 Width : 50 Height : 50 @@ -831,7 +831,7 @@ Button bPrev Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 24 + x coordinate : 26 y coordinate : 16 Width : 50 Height : 50 @@ -885,9 +885,9 @@ Hotspot mSwipeNext Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 472 + x coordinate : 471 y coordinate : 5 - Width : 8 + Width : 9 Height : 310 Effect : load Effect Priority : 0 @@ -924,7 +924,7 @@ Hotspot mSwipeUp Opacity : 127 x coordinate : 12 y coordinate : 0 - Width : 426 + Width : 451 Height : 9 Effect : load Effect Priority : 0 @@ -1189,6 +1189,10 @@ Timer tmSerial { page cardAlarm } + if(tId.txt=="cardQR") + { + page cardQR + } } // end of user code udelete payloadLength-1 diff --git a/HMI/US/landscape/n2t-out-visual/cardQR.txt b/HMI/US/landscape/n2t-out-visual/cardQR.txt new file mode 100644 index 00000000..b3e2a0f7 --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/cardQR.txt @@ -0,0 +1,891 @@ +Page cardQR + 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 + vis p0,0 + vis tSend,0 + vis tInstruction,0 + vis tTmp,0 + vis tId,0 + vis bPrev,0 + vis bNext,0 + +Variable (string) strCommand + Attributes + ID : 6 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) entn + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tSend + Attributes + ID : 10 + Scope : local + Text : + Max. Text Size: 100 + +Variable (string) tTmp + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) tId + Attributes + ID : 15 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) entn1 + Attributes + ID : 26 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn2 + Attributes + ID : 27 + Scope : local + Text : + Max. Text Size: 80 + +Text tEntity1 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 286 + y coordinate : 97 + Width : 170 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : tEntity1 + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 234 + y coordinate : 96 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 5 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tEntity2 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 287 + y coordinate : 204 + Width : 170 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : tEntity1 + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon2 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 235 + y coordinate : 203 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 5 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tHeading + Attributes + ID : 25 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 81 + y coordinate : 26 + Width : 320 + 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 : center + Vertical Alignment : center + Input Type : character + Text : testHeading + Max. Text Size : 40 + 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 + +QR Code qr0 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 28 + y coordinate : 91 + Width : 200 + Height : 200 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Logo overlay : no + Text : WIFI:S:SSID;T:WPA;P:PASSWORD;; + Max. Text Size : 105 + +Button bNext + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 406 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm,bNext" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 24 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bText1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 235 + y coordinate : 146 + Width : 214 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn1.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 + +Button bText2 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 237 + y coordinate : 253 + Width : 213 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn1.txt+",button" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btOnOff1 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 399 + y coordinate : 137 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : image + Font ID : 0 + Background Picture ID (Unpressed) : 1 + Back. Picture ID (Pressed) : 2 + 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,"+entn1.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 + +Dual-state Button btOnOff2 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 400 + y coordinate : 244 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : image + Font ID : 0 + Background Picture ID (Unpressed) : 1 + Back. Picture ID (Pressed) : 2 + 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,"+entn1.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 + +Hotspot mSwipeNext + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 471 + y coordinate : 5 + Width : 9 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + //This thin hotspot down the edge will intercept swipes + //from the bezel into the screen area before the + //Nextion register touch for any other components - + //IF the hotspot is 'layered' at the top (use the up + //arrow at the far left of the Nextion Editor Tool Bar). + // + //Calibrate how wide the edge hotspot has to be on your + //own physical device using this screen to test the + //x & y coordinates where the swipe is first detected.) + //--------------------------- + //The navigation text is stored as local variable within tld.txt + //Pressing right button if swiped on the right side of the screen + // + spstr tId.txt,tTmp.txt,"|",1 + if(tTmp.txt=="1") + { + click bNext,1 + } + +Hotspot mSwipeUp + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 12 + y coordinate : 0 + Width : 454 + Height : 9 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + //This thin hotspot down the edge will intercept swipes + //from the bezel into the screen area before the + //Nextion register touch for any other components - + //IF the hotspot is 'layered' at the top (use the up + //arrow at the far left of the Nextion Editor Tool Bar). + // + //Calibrate how wide the edge hotspot has to be on your + //own physical device using this screen to test the + //x & y coordinates where the swipe is first detected.) + //--------------------------- + //The navigation text is stored as local variable within tld.txt + //Pressing up button if swiped on the top side of the screen + // + spstr tId.txt,tTmp.txt,"|",0 + if(tTmp.txt=="2") + { + click bPrev,1 + } + +Hotspot mSwipePrev + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 9 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + //This thin hotspot down the edge will intercept swipes + //from the bezel into the screen area before the + //Nextion register touch for any other components - + //IF the hotspot is 'layered' at the top (use the up + //arrow at the far left of the Nextion Editor Tool Bar). + // + //Calibrate how wide the edge hotspot has to be on your + //own physical device using this screen to test the + //x & y coordinates where the swipe is first detected.) + //--------------------------- + //The navigation text is stored as local variable within tld.txt + //Pressing left button if swiped on the left side of the screen + // + spstr tId.txt,tTmp.txt,"|",0 + if(tTmp.txt=="1") + { + click bPrev,1 + } + +Timer tmSerial + Attributes + ID : 5 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos