diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index ce9d344a..44730e29 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -32,200 +32,6 @@ │ tCode.bco=6371 │ tCode.pco=40179 │ } -│ --- HMI/n2t-out/cardEntities.txt -├── +++ HMI/US/landscape/n2t-out/cardEntities.txt -│ @@ -1019,18 +1019,14 @@ -│ { -│ page popupFan -│ } -│ if(type1.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type1.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Hotspot m1 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ @@ -1054,18 +1050,14 @@ -│ { -│ page popupFan -│ } -│ if(type2.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type2.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Hotspot m2 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ @@ -1089,18 +1081,14 @@ -│ { -│ page popupFan -│ } -│ if(type3.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type3.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Hotspot m3 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ @@ -1124,18 +1112,14 @@ -│ { -│ page popupFan -│ } -│ if(type4.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type4.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Hotspot mSpecial -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ --- HMI/n2t-out/cardGrid.txt -├── +++ HMI/US/landscape/n2t-out/cardGrid.txt -│ @@ -258,18 +258,14 @@ -│ { -│ page popupShutter -│ } -│ if(type1.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type1.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Touch Release Event -│ tmLP.en=0 -│ tSend.txt="event,buttonPress2,"+entn1.txt+",button" -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ @@ -303,18 +299,14 @@ -│ { -│ page popupShutter -│ } -│ if(type2.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type2.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Touch Release Event -│ tmLP.en=0 -│ tSend.txt="event,buttonPress2,"+entn2.txt+",button" -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ @@ -348,18 +340,14 @@ -│ { -│ page popupShutter -│ } -│ if(type3.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type3.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Touch Release Event -│ tmLP.en=0 -│ tSend.txt="event,buttonPress2,"+entn3.txt+",button" -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ @@ -393,18 +381,14 @@ -│ { -│ page popupShutter -│ } -│ if(type4.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type4.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Touch Release Event -│ tmLP.en=0 -│ tSend.txt="event,buttonPress2,"+entn4.txt+",button" -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ @@ -438,18 +422,14 @@ -│ { -│ page popupShutter -│ } -│ if(type5.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type5.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Touch Release Event -│ tmLP.en=0 -│ tSend.txt="event,buttonPress2,"+entn5.txt+",button" -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC -│ @@ -483,18 +463,14 @@ -│ { -│ page popupShutter -│ } -│ if(type6.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type6.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Touch Release Event -│ tmLP.en=0 -│ tSend.txt="event,buttonPress2,"+entn6.txt+",button" -│ //send calc crc -│ btlen tSend.txt,sys0 -│ crcrest 1,0xffff // reset CRC │ --- HMI/n2t-out/pageStartup.txt ├── +++ HMI/US/landscape/n2t-out/pageStartup.txt │ @@ -173,15 +173,15 @@ diff --git a/HMI/US/landscape/n2t-out-visual/cardEntities.txt b/HMI/US/landscape/n2t-out-visual/cardEntities.txt index 7b72d0e3..e83fe465 100644 --- a/HMI/US/landscape/n2t-out-visual/cardEntities.txt +++ b/HMI/US/landscape/n2t-out-visual/cardEntities.txt @@ -1912,6 +1912,10 @@ Hotspot m0 { page popupInSel } + if(type1.txt=="timer") + { + page popupTimer + } Hotspot m1 Attributes @@ -1952,6 +1956,10 @@ Hotspot m1 { page popupInSel } + if(type2.txt=="timer") + { + page popupTimer + } Hotspot m2 Attributes @@ -1992,6 +2000,10 @@ Hotspot m2 { page popupInSel } + if(type3.txt=="timer") + { + page popupTimer + } Hotspot m3 Attributes @@ -2032,6 +2044,10 @@ Hotspot m3 { page popupInSel } + if(type4.txt=="timer") + { + page popupTimer + } Hotspot mSpecial Attributes @@ -2876,6 +2892,10 @@ Timer tmSerial { page cardPower } + if(tId.txt=="cardChart") + { + page cardChart + } } 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 c9960673..2d8ccbb4 100644 --- a/HMI/US/landscape/n2t-out-visual/cardGrid.txt +++ b/HMI/US/landscape/n2t-out-visual/cardGrid.txt @@ -516,6 +516,10 @@ Button bEntity1 { page popupInSel } + if(type1.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -579,6 +583,10 @@ Button bEntity2 { page popupInSel } + if(type2.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -642,6 +650,10 @@ Button bEntity3 { page popupInSel } + if(type3.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -705,6 +717,10 @@ Button bEntity4 { page popupInSel } + if(type4.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -768,6 +784,10 @@ Button bEntity5 { page popupInSel } + if(type5.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -831,6 +851,10 @@ Button bEntity6 { page popupInSel } + if(type6.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 diff --git a/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt b/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt index 6300b01f..d9a6ffe2 100644 --- a/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt +++ b/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt @@ -46,6 +46,10 @@ cardQR 32 Component(s) 425 Line(s) of event code 244 Unique line(s) of event code +cardGrid + 42 Component(s) + 538 Line(s) of event code + 300 Unique line(s) of event code screensaver 45 Component(s) 410 Line(s) of event code @@ -66,21 +70,17 @@ cardMedia 57 Component(s) 660 Line(s) of event code 325 Unique line(s) of event code -cardGrid - 42 Component(s) - 514 Line(s) of event code - 293 Unique line(s) of event code +cardEntities + 65 Component(s) + 1185 Line(s) of event code + 537 Unique line(s) of event code cardThermo 55 Component(s) 555 Line(s) of event code 322 Unique line(s) of event code -cardEntities - 65 Component(s) - 1165 Line(s) of event code - 530 Unique line(s) of event code Total 19 Page(s) 670 Component(s) - 8332 Line(s) of event code - 2109 Unique line(s) of event code + 8376 Line(s) of event code + 2116 Unique line(s) of event code diff --git a/HMI/US/landscape/n2t-out/cardEntities.txt b/HMI/US/landscape/n2t-out/cardEntities.txt index 59f2bb72..79bd7775 100644 --- a/HMI/US/landscape/n2t-out/cardEntities.txt +++ b/HMI/US/landscape/n2t-out/cardEntities.txt @@ -1023,6 +1023,10 @@ Hotspot m0 { page popupInSel } + if(type1.txt=="timer") + { + page popupTimer + } Hotspot m1 Attributes @@ -1054,6 +1058,10 @@ Hotspot m1 { page popupInSel } + if(type2.txt=="timer") + { + page popupTimer + } Hotspot m2 Attributes @@ -1085,6 +1093,10 @@ Hotspot m2 { page popupInSel } + if(type3.txt=="timer") + { + page popupTimer + } Hotspot m3 Attributes @@ -1116,6 +1128,10 @@ Hotspot m3 { page popupInSel } + if(type4.txt=="timer") + { + page popupTimer + } Hotspot mSpecial Attributes @@ -1923,6 +1939,10 @@ Timer tmSerial { page cardPower } + if(tId.txt=="cardChart") + { + page cardChart + } } if(tInstruction.txt=="time") { diff --git a/HMI/US/landscape/n2t-out/cardGrid.txt b/HMI/US/landscape/n2t-out/cardGrid.txt index 2244d8ee..71ce4b2d 100644 --- a/HMI/US/landscape/n2t-out/cardGrid.txt +++ b/HMI/US/landscape/n2t-out/cardGrid.txt @@ -262,6 +262,10 @@ Button bEntity1 { page popupInSel } + if(type1.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -303,6 +307,10 @@ Button bEntity2 { page popupInSel } + if(type2.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -344,6 +352,10 @@ Button bEntity3 { page popupInSel } + if(type3.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -385,6 +397,10 @@ Button bEntity4 { page popupInSel } + if(type4.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -426,6 +442,10 @@ Button bEntity5 { page popupInSel } + if(type5.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 @@ -467,6 +487,10 @@ Button bEntity6 { page popupInSel } + if(type6.txt=="timer") + { + page popupTimer + } Touch Release Event tmLP.en=0 diff --git a/HMI/US/portrait/diff-eu-version.txt b/HMI/US/portrait/diff-eu-version.txt index 552afdc8..393d202e 100644 --- a/HMI/US/portrait/diff-eu-version.txt +++ b/HMI/US/portrait/diff-eu-version.txt @@ -1,16 +1,5 @@ --- HMI/n2t-out +++ HMI/US/portrait/n2t-out -├── file list -│ @@ -12,9 +12,8 @@ -│ pageTest.txt -│ popupFan.txt -│ popupInSel.txt -│ popupLight.txt -│ popupNotify.txt -│ popupShutter.txt -│ popupThermo.txt -│ -popupTimer.txt -│ screensaver.txt │ --- HMI/n2t-out/Program.s.txt ├── +++ HMI/US/portrait/n2t-out/Program.s.txt │ @@ -10,10 +10,10 @@ @@ -26,25 +15,6 @@ │ + // fix touch offset (Removed for US version) │ + //lcd_dev fffb 0002 0000 0020 │ page pageStartup -│ --- HMI/n2t-out/cardAlarm.txt -├── +++ HMI/US/portrait/n2t-out/cardAlarm.txt -│ @@ -39,15 +39,15 @@ -│ 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 -│ + b[sys0].pco=defaultFontColor -│ } -│ } -│ if(defaultBcoColor==0) -│ { -│ tCode.bco=6371 -│ tCode.pco=40179 -│ } │ --- HMI/n2t-out/cardChart.txt ├── +++ HMI/US/portrait/n2t-out/cardChart.txt │ @@ -175,15 +175,15 @@ @@ -690,73 +660,14 @@ │ Disable release event after dragging: 0 │ Send Component ID : disabled │ -│ @@ -1019,18 +1421,14 @@ -│ { -│ page popupFan -│ } -│ if(type1.txt=="input_sel") -│ { +│ @@ -1129,14 +1531,84 @@ │ page popupInSel │ } -│ - if(type1.txt=="timer") -│ - { -│ - page popupTimer -│ - } +│ if(type4.txt=="timer") +│ { +│ page popupTimer +│ } │ -│ Hotspot m1 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ @@ -1054,18 +1452,14 @@ -│ { -│ page popupFan -│ } -│ if(type2.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type2.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Hotspot m2 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ @@ -1089,18 +1483,14 @@ -│ { -│ page popupFan -│ } -│ if(type3.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type3.txt=="timer") -│ - { -│ - page popupTimer -│ - } -│ -│ Hotspot m3 -│ Attributes -│ Scope : local -│ Dragging : 0 -│ Disable release event after dragging: 0 -│ Send Component ID : disabled -│ @@ -1124,17 +1514,75 @@ -│ { -│ page popupFan -│ } -│ if(type4.txt=="input_sel") -│ { -│ page popupInSel -│ } -│ - if(type4.txt=="timer") -│ + │ +Hotspot m4 │ + Attributes │ + Scope : local @@ -775,8 +686,7 @@ │ + page popupShutter │ + } │ + if(type5.txt=="light") -│ { -│ - page popupTimer +│ + { │ + //popupLight.tEntity.txt=tEntity5.txt │ + page popupLight │ + } @@ -788,6 +698,10 @@ │ + { │ + page popupInSel │ + } +│ + if(type5.txt=="timer") +│ + { +│ + page popupTimer +│ + } │ + │ +Hotspot m5 │ + Attributes @@ -818,14 +732,20 @@ │ + if(type6.txt=="input_sel") │ + { │ + page popupInSel -│ } -│ +│ + } +│ + if(type6.txt=="timer") +│ + { +│ + page popupTimer +│ + } +│ + │ Hotspot mSpecial │ Attributes │ Scope : local │ Dragging : 0 │ Disable release event after dragging: 0 -│ @@ -1367,15 +1815,15 @@ +│ Send Component ID : disabled +│ +│ @@ -1367,15 +1839,15 @@ │ vis hSlider1,0 │ vis nNum1,0 │ // get Button State (optional Value) @@ -842,7 +762,7 @@ │ vis btOnOff1,0 │ vis bText1,1 │ tsw bText1,0 -│ @@ -1516,15 +1964,15 @@ +│ @@ -1516,15 +1988,15 @@ │ vis hSlider2,0 │ vis nNum2,0 │ // get Button State (optional Value) @@ -859,7 +779,7 @@ │ vis btOnOff2,0 │ vis bText2,1 │ tsw bText2,0 -│ @@ -1665,15 +2113,15 @@ +│ @@ -1665,15 +2137,15 @@ │ vis hSlider3,0 │ vis nNum3,0 │ // get Button State (optional Value) @@ -876,7 +796,7 @@ │ vis btOnOff3,0 │ vis bText3,1 │ tsw bText3,0 -│ @@ -1814,15 +2262,15 @@ +│ @@ -1814,15 +2286,15 @@ │ vis hSlider4,0 │ vis nNum4,0 │ // get Button State (optional Value) @@ -893,7 +813,7 @@ │ vis btOnOff4,0 │ vis bText4,1 │ tsw bText4,0 -│ @@ -1870,14 +2318,312 @@ +│ @@ -1870,14 +2342,312 @@ │ covx tTmp.txt,sys0,0,0 │ hSlider4.minval=sys0 │ //third value is max value @@ -1206,6 +1126,1155 @@ │ //command format pageType,specialPageName │ //write name of speical page to tId │ spstr strCommand.txt,tId.txt,"~",1 +│ @@ -1935,18 +2705,14 @@ +│ { +│ page cardQR +│ } +│ if(tId.txt=="cardPower") +│ { +│ page cardPower +│ } +│ - if(tId.txt=="cardChart") +│ - { +│ - page cardChart +│ - } +│ } +│ if(tInstruction.txt=="time") +│ { +│ // get set time to global variable +│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 +│ } +│ if(tInstruction.txt=="date") +│ @@ -1998,33 +2764,1112 @@ +│ Attributes +│ Scope : local +│ Period (ms): 1000 +│ Enabled : yes +│ +│ Events +│ Timer Event +│ - if(sleepTimeout!=0&&dimValue!=dim) +│ + // data available +│ + if(usize>1) +│ { +│ - sleepValue+=1 +│ - if(sleepTimeout<=sleepValue) +│ + bufferPos=0 +│ + while(bufferPos1) ++ { ++ sleepValue+=1 ++ if(sleepTimeout<=sleepValue) ++ bufferPos=0 ++ while(bufferPos1) { - sleepValue+=1 - if(sleepTimeout<=sleepValue) + bufferPos=0 + while(bufferPos59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+1 + if(n2.val>59) + { + n2.val=59 + } + } + +Button bZ2M + Attributes + ID : 35 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 98 + y coordinate : 344 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val-5 + if(n1.val<0) + { + n1.val=0 + } + } + if(n2.pco==63488) + { + n2.val=n2.val-5 + if(n2.val<0) + { + n2.val=0 + } + } + +Button bZ2P + Attributes + ID : 34 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 98 + y coordinate : 271 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val+5 + if(n1.val>59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+5 + if(n2.val>59) + { + n2.val=59 + } + } + +Button bZ3M + Attributes + ID : 37 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 166 + y coordinate : 343 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val-10 + if(n1.val<0) + { + n1.val=0 + } + } + if(n2.pco==63488) + { + n2.val=n2.val-10 + if(n2.val<0) + { + n2.val=0 + } + } + +Button bZ3P + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 167 + y coordinate : 271 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val+10 + if(n1.val>59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+10 + if(n2.val>59) + { + n2.val=59 + } + } + +Button bZ4M + Attributes + ID : 39 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 236 + y coordinate : 344 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val-15 + if(n1.val<0) + { + n1.val=0 + } + } + if(n2.pco==63488) + { + n2.val=n2.val-15 + if(n2.val<0) + { + n2.val=0 + } + } + +Button bZ4P + Attributes + ID : 38 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 236 + y coordinate : 271 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val+15 + if(n1.val>59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+15 + if(n2.val>59) + { + n2.val=59 + } + } + +Button fToggleEdit + Attributes + ID : 40 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 250 + y coordinate : 436 + Width : 64 + Height : 37 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 0 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : hidden + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(editable.val==1&&fToggleEdit.txt=="hidden") + { + vis bZ1P,1 + vis bZ1M,1 + vis bZ2P,1 + vis bZ2M,1 + vis bZ3P,1 + vis bZ3M,1 + vis bZ4P,1 + vis bZ4M,1 + vis t0,1 + vis b1,0 + vis b2,0 + vis b3,0 + fToggleEdit.txt="shown" + }else + { + vis bZ1P,0 + vis bZ1M,0 + vis bZ2P,0 + vis bZ2M,0 + vis bZ3P,0 + vis bZ3M,0 + vis bZ4P,0 + vis bZ4M,0 + vis t0,0 + if(va1.txt!="") + { + vis b1,1 + } + if(va2.txt!="") + { + vis b2,1 + } + if(va3.txt!="") + { + vis b3,1 + } + fToggleEdit.txt="hidden" + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + covx n1.val,strTmp.txt,0,0 + tSend.txt+="timer-start,00:"+strTmp.txt+":" + covx n2.val,strTmp.txt,0,0 + tSend.txt+=strTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + } + +Timer tmSerial + Attributes + ID : 7 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) { - sleepValue+=1 - if(sleepTimeout<=sleepValue) + bufferPos=0 + while(bufferPos59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+1 + if(n2.val>59) + { + n2.val=59 + } + } + +Button bZ2M + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val-5 + if(n1.val<0) + { + n1.val=0 + } + } + if(n2.pco==63488) + { + n2.val=n2.val-5 + if(n2.val<0) + { + n2.val=0 + } + } + +Button bZ2P + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val+5 + if(n1.val>59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+5 + if(n2.val>59) + { + n2.val=59 + } + } + +Button bZ3M + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val-10 + if(n1.val<0) + { + n1.val=0 + } + } + if(n2.pco==63488) + { + n2.val=n2.val-10 + if(n2.val<0) + { + n2.val=0 + } + } + +Button bZ3P + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val+10 + if(n1.val>59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+10 + if(n2.val>59) + { + n2.val=59 + } + } + +Button bZ4M + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val-15 + if(n1.val<0) + { + n1.val=0 + } + } + if(n2.pco==63488) + { + n2.val=n2.val-15 + if(n2.val<0) + { + n2.val=0 + } + } + +Button bZ4P + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + if(n1.pco==63488) + { + n1.val=n1.val+15 + if(n1.val>59) + { + n1.val=59 + } + } + if(n2.pco==63488) + { + n2.val=n2.val+15 + if(n2.val>59) + { + n2.val=59 + } + } + +Button fToggleEdit + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : hidden + Max. Text Size : 10 + + Events + Touch Press Event + if(editable.val==1&&fToggleEdit.txt=="hidden") + { + vis bZ1P,1 + vis bZ1M,1 + vis bZ2P,1 + vis bZ2M,1 + vis bZ3P,1 + vis bZ3M,1 + vis bZ4P,1 + vis bZ4M,1 + vis t0,1 + vis b1,0 + vis b2,0 + vis b3,0 + fToggleEdit.txt="shown" + }else + { + vis bZ1P,0 + vis bZ1M,0 + vis bZ2P,0 + vis bZ2M,0 + vis bZ3P,0 + vis bZ3M,0 + vis bZ4P,0 + vis bZ4M,0 + vis t0,0 + if(va1.txt!="") + { + vis b1,1 + } + if(va2.txt!="") + { + vis b2,1 + } + if(va3.txt!="") + { + vis b3,1 + } + fToggleEdit.txt="hidden" + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + covx n1.val,strTmp.txt,0,0 + tSend.txt+="timer-start,00:"+strTmp.txt+":" + covx n2.val,strTmp.txt,0,0 + tSend.txt+=strTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 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(bufferPos