mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 15:34:26 +01:00
Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
bad5a61c12
commit
6a977a543b
@@ -15,332 +15,6 @@
|
|||||||
│ + // fix touch offset (Removed for US version)
|
│ + // fix touch offset (Removed for US version)
|
||||||
│ + //lcd_dev fffb 0002 0000 0020
|
│ + //lcd_dev fffb 0002 0000 0020
|
||||||
│ page pageStartup
|
│ page pageStartup
|
||||||
│ --- HMI/n2t-out/cardAlarm.txt
|
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardAlarm.txt
|
|
||||||
│ @@ -634,88 +634,94 @@
|
|
||||||
│ ucopy strCommand.txt,4,payloadLength-5,0
|
|
||||||
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
│ if(tInstruction.txt=="entityUpd")
|
|
||||||
│ {
|
|
||||||
│ //entn
|
|
||||||
│ spstr strCommand.txt,entn.txt,"~",1
|
|
||||||
│ - // navigation icon left
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",2 //type
|
|
||||||
│ - if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
│ + // navigation icons
|
|
||||||
│ + spstr strCommand.txt,tId.txt,"~",2
|
|
||||||
│ + spstr tId.txt,tTmp.txt,"|",0
|
|
||||||
│ + if(tTmp.txt=="0")
|
|
||||||
│ {
|
|
||||||
│ vis bPrev,0
|
|
||||||
│ - }else
|
|
||||||
│ + tsw mSwipePrev,0
|
|
||||||
│ + tsw mSwipeUp,0
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="1")
|
|
||||||
│ + {
|
|
||||||
│ + vis bPrev,1
|
|
||||||
│ + tsw mSwipePrev,1
|
|
||||||
│ + tsw mSwipeUp,0
|
|
||||||
│ + bPrev.txt="î°"
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="2")
|
|
||||||
│ {
|
|
||||||
│ - // get internal name
|
|
||||||
│ - spstr strCommand.txt,nent1.txt,"~",3
|
|
||||||
│ - // change icon
|
|
||||||
│ - spstr strCommand.txt,bPrev.txt,"~",4
|
|
||||||
│ - // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",5
|
|
||||||
│ - covx tTmp.txt,sys0,0,0
|
|
||||||
│ - bPrev.pco=sys0
|
|
||||||
│ vis bPrev,1
|
|
||||||
│ + tsw mSwipePrev,0
|
|
||||||
│ + tsw mSwipeUp,1
|
|
||||||
│ + bPrev.txt="î¶"
|
|
||||||
│ }
|
|
||||||
│ - // navigation icon right
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",8 //type
|
|
||||||
│ - if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
│ + spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
│ + if(tTmp.txt=="0")
|
|
||||||
│ {
|
|
||||||
│ vis bNext,0
|
|
||||||
│ - }else
|
|
||||||
│ + tsw mSwipeNext,0
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="1")
|
|
||||||
│ + {
|
|
||||||
│ + vis bNext,1
|
|
||||||
│ + tsw mSwipeNext,1
|
|
||||||
│ + bNext.txt="î³"
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="2")
|
|
||||||
│ {
|
|
||||||
│ - // get internal name
|
|
||||||
│ - spstr strCommand.txt,nent2.txt,"~",9
|
|
||||||
│ - // change icon
|
|
||||||
│ - spstr strCommand.txt,bNext.txt,"~",10
|
|
||||||
│ - // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",11
|
|
||||||
│ - covx tTmp.txt,sys0,0,0
|
|
||||||
│ - bNext.pco=sys0
|
|
||||||
│ vis bNext,1
|
|
||||||
│ + bNext.txt="î"
|
|
||||||
│ }
|
|
||||||
│ //text arm1
|
|
||||||
│ - spstr strCommand.txt,arm1.txt,"~",14
|
|
||||||
│ + spstr strCommand.txt,arm1.txt,"~",3
|
|
||||||
│ if(arm1.txt!="")
|
|
||||||
│ {
|
|
||||||
│ vis arm1,1
|
|
||||||
│ }
|
|
||||||
│ //id arm1
|
|
||||||
│ - spstr strCommand.txt,va1.txt,"~",15
|
|
||||||
│ + spstr strCommand.txt,va1.txt,"~",4
|
|
||||||
│ //text arm2
|
|
||||||
│ - spstr strCommand.txt,arm2.txt,"~",16
|
|
||||||
│ + spstr strCommand.txt,arm2.txt,"~",5
|
|
||||||
│ if(arm2.txt!="")
|
|
||||||
│ {
|
|
||||||
│ vis arm2,1
|
|
||||||
│ }
|
|
||||||
│ //id arm2
|
|
||||||
│ - spstr strCommand.txt,va2.txt,"~",17
|
|
||||||
│ + spstr strCommand.txt,va2.txt,"~",6
|
|
||||||
│ //text arm3
|
|
||||||
│ - spstr strCommand.txt,arm3.txt,"~",18
|
|
||||||
│ + spstr strCommand.txt,arm3.txt,"~",7
|
|
||||||
│ if(arm3.txt!="")
|
|
||||||
│ {
|
|
||||||
│ vis arm3,1
|
|
||||||
│ }
|
|
||||||
│ //id arm3
|
|
||||||
│ - spstr strCommand.txt,va3.txt,"~",19
|
|
||||||
│ + spstr strCommand.txt,va3.txt,"~",8
|
|
||||||
│ //text arm4
|
|
||||||
│ - spstr strCommand.txt,arm4.txt,"~",20
|
|
||||||
│ + spstr strCommand.txt,arm4.txt,"~",9
|
|
||||||
│ if(arm4.txt!="")
|
|
||||||
│ {
|
|
||||||
│ vis arm4,1
|
|
||||||
│ }
|
|
||||||
│ //id arm4
|
|
||||||
│ - spstr strCommand.txt,va4.txt,"~",21
|
|
||||||
│ + spstr strCommand.txt,va4.txt,"~",10
|
|
||||||
│ //icon
|
|
||||||
│ - spstr strCommand.txt,tIcon.txt,"~",22
|
|
||||||
│ + spstr strCommand.txt,tIcon.txt,"~",11
|
|
||||||
│ //icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",23
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",12
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ tIcon.pco=sys0
|
|
||||||
│ //numpad status
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",24
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",13
|
|
||||||
│ if(tTmp.txt!="disable")
|
|
||||||
│ {
|
|
||||||
│ vis b0,1
|
|
||||||
│ vis b1,1
|
|
||||||
│ vis b2,1
|
|
||||||
│ vis b3,1
|
|
||||||
│ vis b4,1
|
|
||||||
│ @@ -740,30 +746,30 @@
|
|
||||||
│ vis b8,0
|
|
||||||
│ vis b9,0
|
|
||||||
│ vis b10,0
|
|
||||||
│ vis b11,0
|
|
||||||
│ vis tCode,0
|
|
||||||
│ }
|
|
||||||
│ //flashing status
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",25
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",14
|
|
||||||
│ if(tTmp.txt=="enable")
|
|
||||||
│ {
|
|
||||||
│ tmFlash.en=1
|
|
||||||
│ }else
|
|
||||||
│ {
|
|
||||||
│ tmFlash.en=0
|
|
||||||
│ }
|
|
||||||
│ // extra button
|
|
||||||
│ - spstr strCommand.txt,b9.txt,"~",26
|
|
||||||
│ + spstr strCommand.txt,b9.txt,"~",15
|
|
||||||
│ if(b9.txt!="")
|
|
||||||
│ {
|
|
||||||
│ vis b9,1
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",27
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
│ covx tTmp.txt,b9.pco,0,0
|
|
||||||
│ - spstr strCommand.txt,vaAddBtn.txt,"~",28
|
|
||||||
│ + spstr strCommand.txt,vaAddBtn.txt,"~",17
|
|
||||||
│ }
|
|
||||||
│ }
|
|
||||||
│ if(tInstruction.txt=="time")
|
|
||||||
│ {
|
|
||||||
│ // get set time to global variable
|
|
||||||
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
|
||||||
│ }
|
|
||||||
│ --- HMI/n2t-out/cardChart.txt
|
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardChart.txt
|
|
||||||
│ @@ -393,88 +393,94 @@
|
|
||||||
│ // here is the location where acual code should be
|
|
||||||
│ ucopy strCommand.txt,4,payloadLength-5,0
|
|
||||||
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
│ if(tInstruction.txt=="entityUpd")
|
|
||||||
│ {
|
|
||||||
│ spstr strCommand.txt,tHeading.txt,"~",1
|
|
||||||
│ - // navigation icon left
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",2 //type
|
|
||||||
│ - if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
│ + // navigation icons
|
|
||||||
│ + spstr strCommand.txt,tId.txt,"~",2
|
|
||||||
│ + spstr tId.txt,tTmp.txt,"|",0
|
|
||||||
│ + if(tTmp.txt=="0")
|
|
||||||
│ {
|
|
||||||
│ vis bPrev,0
|
|
||||||
│ - }else
|
|
||||||
│ + tsw mSwipePrev,0
|
|
||||||
│ + tsw mSwipeUp,0
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="1")
|
|
||||||
│ + {
|
|
||||||
│ + vis bPrev,1
|
|
||||||
│ + tsw mSwipePrev,1
|
|
||||||
│ + tsw mSwipeUp,0
|
|
||||||
│ + bPrev.txt="î°"
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="2")
|
|
||||||
│ {
|
|
||||||
│ - // get internal name
|
|
||||||
│ - spstr strCommand.txt,nent1.txt,"~",3
|
|
||||||
│ - // change icon
|
|
||||||
│ - spstr strCommand.txt,bPrev.txt,"~",4
|
|
||||||
│ - // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",5
|
|
||||||
│ - covx tTmp.txt,sys0,0,0
|
|
||||||
│ - bPrev.pco=sys0
|
|
||||||
│ vis bPrev,1
|
|
||||||
│ + tsw mSwipePrev,0
|
|
||||||
│ + tsw mSwipeUp,1
|
|
||||||
│ + bPrev.txt="î¶"
|
|
||||||
│ }
|
|
||||||
│ - // navigation icon right
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",8 //type
|
|
||||||
│ - if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
│ + spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
│ + if(tTmp.txt=="0")
|
|
||||||
│ {
|
|
||||||
│ vis bNext,0
|
|
||||||
│ - }else
|
|
||||||
│ + tsw mSwipeNext,0
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="1")
|
|
||||||
│ + {
|
|
||||||
│ + vis bNext,1
|
|
||||||
│ + tsw mSwipeNext,1
|
|
||||||
│ + bNext.txt="î³"
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="2")
|
|
||||||
│ {
|
|
||||||
│ - // get internal name
|
|
||||||
│ - spstr strCommand.txt,nent2.txt,"~",9
|
|
||||||
│ - // change icon
|
|
||||||
│ - spstr strCommand.txt,bNext.txt,"~",10
|
|
||||||
│ - // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",11
|
|
||||||
│ - covx tTmp.txt,sys0,0,0
|
|
||||||
│ - bNext.pco=sys0
|
|
||||||
│ vis bNext,1
|
|
||||||
│ + bNext.txt="î"
|
|
||||||
│ }
|
|
||||||
│ // extract color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",14
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",3
|
|
||||||
│ covx tTmp.txt,vaColorL.val,0,0
|
|
||||||
│ // prepare dark color
|
|
||||||
│ sys0=vaColorL.val>>11 // red
|
|
||||||
│ vaColorD.val=sys0*8/10<<11 // store and shift
|
|
||||||
│ sys0=vaColorL.val>>5%64 // green
|
|
||||||
│ vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
|
|
||||||
│ sys0=vaColorL.val%32
|
|
||||||
│ vaColorD.val=sys0*8/10+vaColorD.val // store and add
|
|
||||||
│ //
|
|
||||||
│ // detect nValues and maxValue
|
|
||||||
│ vNValues.val=0
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
|
||||||
│ strlen tTmp.txt,sya0
|
|
||||||
│ while(sya0>0)
|
|
||||||
│ {
|
|
||||||
│ covx tTmp.txt,sya1,0,0
|
|
||||||
│ if(sya1>vMax.val)
|
|
||||||
│ {
|
|
||||||
│ vMax.val=sya1
|
|
||||||
│ }
|
|
||||||
│ // next
|
|
||||||
│ vNValues.val++
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
|
||||||
│ strlen tTmp.txt,sya0
|
|
||||||
│ }
|
|
||||||
│ //
|
|
||||||
│ // calculate unit width
|
|
||||||
│ sys0=vNValues.val*4
|
|
||||||
│ sys0+=vNValues.val-1
|
|
||||||
│ vaUnit.val=m0.w-25-40*100
|
|
||||||
│ vaUnit.val/=sys0
|
|
||||||
│ vaBottom.val=m0.y+m0.h-24
|
|
||||||
│ vaLeft.val=m0.x+25+40*100
|
|
||||||
│ vaYUnit.val=m0.h-24/vMax.val
|
|
||||||
│ //
|
|
||||||
│ line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
|
||||||
│ line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
|
||||||
│ - spstr strCommand.txt,strTmp.txt,"~",16
|
|
||||||
│ + spstr strCommand.txt,strTmp.txt,"~",5
|
|
||||||
│ sya1=0
|
|
||||||
│ spstr strTmp.txt,tTmp.txt,":",sya1
|
|
||||||
│ strlen tTmp.txt,sya0
|
|
||||||
│ while(sya0>0)
|
|
||||||
│ {
|
|
||||||
│ covx tTmp.txt,sys1,0,0
|
|
||||||
│ if(sys1<=vMax.val)
|
|
||||||
│ @@ -499,15 +505,15 @@
|
|
||||||
│ // next
|
|
||||||
│ sya1++
|
|
||||||
│ spstr strTmp.txt,tTmp.txt,":",sya1
|
|
||||||
│ strlen tTmp.txt,sya0
|
|
||||||
│ }
|
|
||||||
│ //
|
|
||||||
│ // y achis label
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",4
|
|
||||||
│ // tTmp.txt="Gas [kW]"
|
|
||||||
│ strlen tTmp.txt,sys1
|
|
||||||
│ sya1=sys1*12+m0.h-48/2
|
|
||||||
│ for(sys0=0;sys0<sys1;sys0++)
|
|
||||||
│ {
|
|
||||||
│ substr tTmp.txt,strTmp.txt,sys0,1
|
|
||||||
│ xstr m0.x,sys0*-12+m0.y+sya1,30,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
|
|
||||||
│ @@ -515,15 +521,15 @@
|
|
||||||
│ for(sys0=0;sys0<vNValues.val;sys0++)
|
|
||||||
│ {
|
|
||||||
│ if(sys0>0)
|
|
||||||
│ {
|
|
||||||
│ vaValues.txt+="~"
|
|
||||||
│ }
|
|
||||||
│ // extract next entry
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
|
||||||
│ // calculate left
|
|
||||||
│ sys1=sys0*5*vaUnit.val
|
|
||||||
│ sys1+=vaLeft.val
|
|
||||||
│ // if there is a colon in the obtained value we have a label/and gridline
|
|
||||||
│ spstr tTmp.txt,strTmp.txt,"^",1
|
|
||||||
│ strlen strTmp.txt,sya0
|
|
||||||
│ if(sya0>0)
|
|
||||||
│ --- HMI/n2t-out/cardEntities.txt
|
│ --- HMI/n2t-out/cardEntities.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardEntities.txt
|
├── +++ HMI/US/portrait/n2t-out/cardEntities.txt
|
||||||
│ @@ -61,14 +61,24 @@
|
│ @@ -61,14 +61,24 @@
|
||||||
@@ -1362,23 +1036,6 @@
|
|||||||
│ spstr strCommand.txt,tId.txt,"~",1
|
│ spstr strCommand.txt,tId.txt,"~",1
|
||||||
│ --- HMI/n2t-out/cardGrid.txt
|
│ --- HMI/n2t-out/cardGrid.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardGrid.txt
|
├── +++ HMI/US/portrait/n2t-out/cardGrid.txt
|
||||||
│ @@ -94,15 +94,15 @@
|
|
||||||
│ Text :
|
|
||||||
│ Max. Text Size: 80
|
|
||||||
│
|
|
||||||
│ Variable (string) strCommand
|
|
||||||
│ Attributes
|
|
||||||
│ Scope : local
|
|
||||||
│ Text :
|
|
||||||
│ - Max. Text Size: 700
|
|
||||||
│ + Max. Text Size: 500
|
|
||||||
│
|
|
||||||
│ Variable (string) tSend
|
|
||||||
│ Attributes
|
|
||||||
│ Scope : local
|
|
||||||
│ Text :
|
|
||||||
│ Max. Text Size: 200
|
|
||||||
│
|
|
||||||
│ @@ -631,14 +631,18 @@
|
│ @@ -631,14 +631,18 @@
|
||||||
│ {
|
│ {
|
||||||
│ page popupLight
|
│ page popupLight
|
||||||
@@ -1429,228 +1086,6 @@
|
|||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size: 20
|
│ Max. Text Size: 20
|
||||||
│
|
|
||||||
│ @@ -440,171 +440,177 @@
|
|
||||||
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
│ if(tInstruction.txt=="entityUpd")
|
|
||||||
│ {
|
|
||||||
│ // command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
|
||||||
│ //tHeading
|
|
||||||
│ spstr strCommand.txt,tHeading.txt,"~",1
|
|
||||||
│ - // navigation icon left
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",2 //type
|
|
||||||
│ - if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
│ + // navigation icons
|
|
||||||
│ + spstr strCommand.txt,tId.txt,"~",2
|
|
||||||
│ + spstr tId.txt,tTmp.txt,"|",0
|
|
||||||
│ + if(tTmp.txt=="0")
|
|
||||||
│ {
|
|
||||||
│ vis bPrev,0
|
|
||||||
│ - }else
|
|
||||||
│ + tsw mSwipePrev,0
|
|
||||||
│ + tsw mSwipeUp,0
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="1")
|
|
||||||
│ + {
|
|
||||||
│ + vis bPrev,1
|
|
||||||
│ + tsw mSwipePrev,1
|
|
||||||
│ + tsw mSwipeUp,0
|
|
||||||
│ + bPrev.txt="î°"
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="2")
|
|
||||||
│ {
|
|
||||||
│ - // get internal name
|
|
||||||
│ - spstr strCommand.txt,nent1.txt,"~",3
|
|
||||||
│ - // change icon
|
|
||||||
│ - spstr strCommand.txt,bPrev.txt,"~",4
|
|
||||||
│ - // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",5
|
|
||||||
│ - covx tTmp.txt,sys0,0,0
|
|
||||||
│ - bPrev.pco=sys0
|
|
||||||
│ vis bPrev,1
|
|
||||||
│ + tsw mSwipePrev,0
|
|
||||||
│ + tsw mSwipeUp,1
|
|
||||||
│ + bPrev.txt="î¶"
|
|
||||||
│ }
|
|
||||||
│ - // navigation icon right
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",8 //type
|
|
||||||
│ - if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
│ + spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
│ + if(tTmp.txt=="0")
|
|
||||||
│ {
|
|
||||||
│ vis bNext,0
|
|
||||||
│ - }else
|
|
||||||
│ + tsw mSwipeNext,0
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="1")
|
|
||||||
│ + {
|
|
||||||
│ + vis bNext,1
|
|
||||||
│ + tsw mSwipeNext,1
|
|
||||||
│ + bNext.txt="î³"
|
|
||||||
│ + }
|
|
||||||
│ + if(tTmp.txt=="2")
|
|
||||||
│ {
|
|
||||||
│ - // get internal name
|
|
||||||
│ - spstr strCommand.txt,nent2.txt,"~",9
|
|
||||||
│ - // change icon
|
|
||||||
│ - spstr strCommand.txt,bNext.txt,"~",10
|
|
||||||
│ - // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",11
|
|
||||||
│ - covx tTmp.txt,sys0,0,0
|
|
||||||
│ - bNext.pco=sys0
|
|
||||||
│ vis bNext,1
|
|
||||||
│ + bNext.txt="î"
|
|
||||||
│ }
|
|
||||||
│ //text qrcode
|
|
||||||
│ - spstr strCommand.txt,vaQR.txt,"~",14
|
|
||||||
│ + spstr strCommand.txt,vaQR.txt,"~",3
|
|
||||||
│ // get Type
|
|
||||||
│ - spstr strCommand.txt,type1.txt,"~",15
|
|
||||||
│ + spstr strCommand.txt,type1.txt,"~",4
|
|
||||||
│ // get internal name
|
|
||||||
│ - spstr strCommand.txt,entn1.txt,"~",16
|
|
||||||
│ + spstr strCommand.txt,entn1.txt,"~",5
|
|
||||||
│ if(type1.txt=="delete"||type1.txt=="")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff1,0
|
|
||||||
│ vis tEntity1,0
|
|
||||||
│ vis tIcon1,0
|
|
||||||
│ vis bText1,0
|
|
||||||
│ }else
|
|
||||||
│ {
|
|
||||||
│ // change icon
|
|
||||||
│ - spstr strCommand.txt,tIcon1.txt,"~",17
|
|
||||||
│ + spstr strCommand.txt,tIcon1.txt,"~",6
|
|
||||||
│ vis tIcon1,1
|
|
||||||
│ // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",18
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",7
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ tIcon1.pco=sys0
|
|
||||||
│ // set name
|
|
||||||
│ - spstr strCommand.txt,tEntity1.txt,"~",19
|
|
||||||
│ + spstr strCommand.txt,tEntity1.txt,"~",8
|
|
||||||
│ vis tEntity1,1
|
|
||||||
│ }
|
|
||||||
│ if(type1.txt=="light")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff1,1
|
|
||||||
│ vis bText1,0
|
|
||||||
│ // get Button State (optional Value)
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",20
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ btOnOff1.val=sys0
|
|
||||||
│ }
|
|
||||||
│ if(type1.txt=="switch")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff1,1
|
|
||||||
│ vis bText1,0
|
|
||||||
│ // get Button State (optional Value)
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",20
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ btOnOff1.val=sys0
|
|
||||||
│ }
|
|
||||||
│ if(type1.txt=="text")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff1,0
|
|
||||||
│ vis bText1,1
|
|
||||||
│ tsw bText1,0
|
|
||||||
│ bText1.pco=65535
|
|
||||||
│ bText1.pco2=65535
|
|
||||||
│ // get Text (optional Value)
|
|
||||||
│ - spstr strCommand.txt,bText1.txt,"~",20
|
|
||||||
│ + spstr strCommand.txt,bText1.txt,"~",9
|
|
||||||
│ }
|
|
||||||
│ if(type1.txt=="button")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff1,0
|
|
||||||
│ vis bText1,1
|
|
||||||
│ tsw bText1,1
|
|
||||||
│ bText1.pco=1374
|
|
||||||
│ bText1.pco2=1374
|
|
||||||
│ // get Text (optional Value)
|
|
||||||
│ - spstr strCommand.txt,bText1.txt,"~",20
|
|
||||||
│ + spstr strCommand.txt,bText1.txt,"~",9
|
|
||||||
│ }
|
|
||||||
│ // get Type
|
|
||||||
│ - spstr strCommand.txt,type2.txt,"~",21
|
|
||||||
│ + spstr strCommand.txt,type2.txt,"~",10
|
|
||||||
│ // get internal name
|
|
||||||
│ - spstr strCommand.txt,entn2.txt,"~",22
|
|
||||||
│ + spstr strCommand.txt,entn2.txt,"~",11
|
|
||||||
│ if(type2.txt=="delete"||type2.txt=="")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff2,0
|
|
||||||
│ vis tEntity2,0
|
|
||||||
│ vis tIcon2,0
|
|
||||||
│ vis bText2,0
|
|
||||||
│ }else
|
|
||||||
│ {
|
|
||||||
│ // change icon
|
|
||||||
│ - spstr strCommand.txt,tIcon2.txt,"~",23
|
|
||||||
│ + spstr strCommand.txt,tIcon2.txt,"~",12
|
|
||||||
│ vis tIcon2,1
|
|
||||||
│ // change icon color
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",24
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",13
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ tIcon2.pco=sys0
|
|
||||||
│ // set name
|
|
||||||
│ - spstr strCommand.txt,tEntity2.txt,"~",25
|
|
||||||
│ + spstr strCommand.txt,tEntity2.txt,"~",14
|
|
||||||
│ vis tEntity2,1
|
|
||||||
│ }
|
|
||||||
│ if(type2.txt=="light")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff2,1
|
|
||||||
│ vis bText2,0
|
|
||||||
│ // get Button State (optional Value)
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",26
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ btOnOff2.val=sys0
|
|
||||||
│ }
|
|
||||||
│ if(type2.txt=="switch")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff2,1
|
|
||||||
│ vis bText2,0
|
|
||||||
│ // get Button State (optional Value)
|
|
||||||
│ - spstr strCommand.txt,tTmp.txt,"~",26
|
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
│ covx tTmp.txt,sys0,0,0
|
|
||||||
│ btOnOff2.val=sys0
|
|
||||||
│ }
|
|
||||||
│ if(type2.txt=="text")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff2,0
|
|
||||||
│ vis bText2,1
|
|
||||||
│ tsw bText2,0
|
|
||||||
│ bText2.pco=65535
|
|
||||||
│ bText2.pco2=65535
|
|
||||||
│ // get Text (optional Value)
|
|
||||||
│ - spstr strCommand.txt,bText2.txt,"~",26
|
|
||||||
│ + spstr strCommand.txt,bText2.txt,"~",15
|
|
||||||
│ }
|
|
||||||
│ if(type2.txt=="button")
|
|
||||||
│ {
|
|
||||||
│ vis btOnOff2,0
|
|
||||||
│ vis bText2,1
|
|
||||||
│ tsw bText2,1
|
|
||||||
│ bText2.pco=1374
|
|
||||||
│ bText2.pco2=1374
|
|
||||||
│ // get Text (optional Value)
|
|
||||||
│ - spstr strCommand.txt,bText2.txt,"~",26
|
|
||||||
│ + spstr strCommand.txt,bText2.txt,"~",15
|
|
||||||
│ }
|
|
||||||
│ if(type2.txt=="delete"||type2.txt=="")
|
|
||||||
│ {
|
|
||||||
│ if(type1.txt=="delete"||type1.txt=="")
|
|
||||||
│ {
|
|
||||||
│ qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
|
|
||||||
│ }
|
|
||||||
│ --- HMI/n2t-out/cardThermo.txt
|
│ --- HMI/n2t-out/cardThermo.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardThermo.txt
|
├── +++ HMI/US/portrait/n2t-out/cardThermo.txt
|
||||||
│ @@ -829,208 +829,214 @@
|
│ @@ -829,208 +829,214 @@
|
||||||
|
|||||||
@@ -1,332 +1,6 @@
|
|||||||
+++ /dev/fd/62 2022-12-31 14:00:50.738431612 +0000
|
+++ /dev/fd/62 2022-12-31 14:38:21.065618305 +0000
|
||||||
+I/n2t-out/Program.s.txt
|
+I/n2t-out/Program.s.txt
|
||||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
+I/n2t-out/cardAlarm.txt
|
|
||||||
++ HMI/US/portrait/n2t-out/cardAlarm.txt
|
|
||||||
+88 +634,94 @@
|
|
||||||
+ ucopy strCommand.txt,4,payloadLength-5,0
|
|
||||||
+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
+ spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
+ if(tInstruction.txt=="entityUpd")
|
|
||||||
+ {
|
|
||||||
+ //entn
|
|
||||||
+ spstr strCommand.txt,entn.txt,"~",1
|
|
||||||
+ // navigation icon left
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",2 //type
|
|
||||||
+ if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
+ // navigation icons
|
|
||||||
+ spstr strCommand.txt,tId.txt,"~",2
|
|
||||||
+ spstr tId.txt,tTmp.txt,"|",0
|
|
||||||
+ if(tTmp.txt=="0")
|
|
||||||
+ {
|
|
||||||
+ vis bPrev,0
|
|
||||||
+ }else
|
|
||||||
+ tsw mSwipePrev,0
|
|
||||||
+ tsw mSwipeUp,0
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="1")
|
|
||||||
+ {
|
|
||||||
+ vis bPrev,1
|
|
||||||
+ tsw mSwipePrev,1
|
|
||||||
+ tsw mSwipeUp,0
|
|
||||||
+ bPrev.txt="î°"
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="2")
|
|
||||||
+ {
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,nent1.txt,"~",3
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,bPrev.txt,"~",4
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",5
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ bPrev.pco=sys0
|
|
||||||
+ vis bPrev,1
|
|
||||||
+ tsw mSwipePrev,0
|
|
||||||
+ tsw mSwipeUp,1
|
|
||||||
+ bPrev.txt="î¶"
|
|
||||||
+ }
|
|
||||||
+ // navigation icon right
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",8 //type
|
|
||||||
+ if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
+ spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
+ if(tTmp.txt=="0")
|
|
||||||
+ {
|
|
||||||
+ vis bNext,0
|
|
||||||
+ }else
|
|
||||||
+ tsw mSwipeNext,0
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="1")
|
|
||||||
+ {
|
|
||||||
+ vis bNext,1
|
|
||||||
+ tsw mSwipeNext,1
|
|
||||||
+ bNext.txt="î³"
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="2")
|
|
||||||
+ {
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,nent2.txt,"~",9
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,bNext.txt,"~",10
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",11
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ bNext.pco=sys0
|
|
||||||
+ vis bNext,1
|
|
||||||
+ bNext.txt="î"
|
|
||||||
+ }
|
|
||||||
+ //text arm1
|
|
||||||
+ spstr strCommand.txt,arm1.txt,"~",14
|
|
||||||
+ spstr strCommand.txt,arm1.txt,"~",3
|
|
||||||
+ if(arm1.txt!="")
|
|
||||||
+ {
|
|
||||||
+ vis arm1,1
|
|
||||||
+ }
|
|
||||||
+ //id arm1
|
|
||||||
+ spstr strCommand.txt,va1.txt,"~",15
|
|
||||||
+ spstr strCommand.txt,va1.txt,"~",4
|
|
||||||
+ //text arm2
|
|
||||||
+ spstr strCommand.txt,arm2.txt,"~",16
|
|
||||||
+ spstr strCommand.txt,arm2.txt,"~",5
|
|
||||||
+ if(arm2.txt!="")
|
|
||||||
+ {
|
|
||||||
+ vis arm2,1
|
|
||||||
+ }
|
|
||||||
+ //id arm2
|
|
||||||
+ spstr strCommand.txt,va2.txt,"~",17
|
|
||||||
+ spstr strCommand.txt,va2.txt,"~",6
|
|
||||||
+ //text arm3
|
|
||||||
+ spstr strCommand.txt,arm3.txt,"~",18
|
|
||||||
+ spstr strCommand.txt,arm3.txt,"~",7
|
|
||||||
+ if(arm3.txt!="")
|
|
||||||
+ {
|
|
||||||
+ vis arm3,1
|
|
||||||
+ }
|
|
||||||
+ //id arm3
|
|
||||||
+ spstr strCommand.txt,va3.txt,"~",19
|
|
||||||
+ spstr strCommand.txt,va3.txt,"~",8
|
|
||||||
+ //text arm4
|
|
||||||
+ spstr strCommand.txt,arm4.txt,"~",20
|
|
||||||
+ spstr strCommand.txt,arm4.txt,"~",9
|
|
||||||
+ if(arm4.txt!="")
|
|
||||||
+ {
|
|
||||||
+ vis arm4,1
|
|
||||||
+ }
|
|
||||||
+ //id arm4
|
|
||||||
+ spstr strCommand.txt,va4.txt,"~",21
|
|
||||||
+ spstr strCommand.txt,va4.txt,"~",10
|
|
||||||
+ //icon
|
|
||||||
+ spstr strCommand.txt,tIcon.txt,"~",22
|
|
||||||
+ spstr strCommand.txt,tIcon.txt,"~",11
|
|
||||||
+ //icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",23
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",12
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ tIcon.pco=sys0
|
|
||||||
+ //numpad status
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",24
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",13
|
|
||||||
+ if(tTmp.txt!="disable")
|
|
||||||
+ {
|
|
||||||
+ vis b0,1
|
|
||||||
+ vis b1,1
|
|
||||||
+ vis b2,1
|
|
||||||
+ vis b3,1
|
|
||||||
+ vis b4,1
|
|
||||||
+30 +746,30 @@
|
|
||||||
+ vis b8,0
|
|
||||||
+ vis b9,0
|
|
||||||
+ vis b10,0
|
|
||||||
+ vis b11,0
|
|
||||||
+ vis tCode,0
|
|
||||||
+ }
|
|
||||||
+ //flashing status
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",25
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",14
|
|
||||||
+ if(tTmp.txt=="enable")
|
|
||||||
+ {
|
|
||||||
+ tmFlash.en=1
|
|
||||||
+ }else
|
|
||||||
+ {
|
|
||||||
+ tmFlash.en=0
|
|
||||||
+ }
|
|
||||||
+ // extra button
|
|
||||||
+ spstr strCommand.txt,b9.txt,"~",26
|
|
||||||
+ spstr strCommand.txt,b9.txt,"~",15
|
|
||||||
+ if(b9.txt!="")
|
|
||||||
+ {
|
|
||||||
+ vis b9,1
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",27
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
+ covx tTmp.txt,b9.pco,0,0
|
|
||||||
+ spstr strCommand.txt,vaAddBtn.txt,"~",28
|
|
||||||
+ spstr strCommand.txt,vaAddBtn.txt,"~",17
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ if(tInstruction.txt=="time")
|
|
||||||
+ {
|
|
||||||
+ // get set time to global variable
|
|
||||||
+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
|
||||||
+ }
|
|
||||||
+I/n2t-out/cardChart.txt
|
|
||||||
++ HMI/US/portrait/n2t-out/cardChart.txt
|
|
||||||
+88 +393,94 @@
|
|
||||||
+ // here is the location where acual code should be
|
|
||||||
+ ucopy strCommand.txt,4,payloadLength-5,0
|
|
||||||
+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
+ spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
+ if(tInstruction.txt=="entityUpd")
|
|
||||||
+ {
|
|
||||||
+ spstr strCommand.txt,tHeading.txt,"~",1
|
|
||||||
+ // navigation icon left
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",2 //type
|
|
||||||
+ if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
+ // navigation icons
|
|
||||||
+ spstr strCommand.txt,tId.txt,"~",2
|
|
||||||
+ spstr tId.txt,tTmp.txt,"|",0
|
|
||||||
+ if(tTmp.txt=="0")
|
|
||||||
+ {
|
|
||||||
+ vis bPrev,0
|
|
||||||
+ }else
|
|
||||||
+ tsw mSwipePrev,0
|
|
||||||
+ tsw mSwipeUp,0
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="1")
|
|
||||||
+ {
|
|
||||||
+ vis bPrev,1
|
|
||||||
+ tsw mSwipePrev,1
|
|
||||||
+ tsw mSwipeUp,0
|
|
||||||
+ bPrev.txt="î°"
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="2")
|
|
||||||
+ {
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,nent1.txt,"~",3
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,bPrev.txt,"~",4
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",5
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ bPrev.pco=sys0
|
|
||||||
+ vis bPrev,1
|
|
||||||
+ tsw mSwipePrev,0
|
|
||||||
+ tsw mSwipeUp,1
|
|
||||||
+ bPrev.txt="î¶"
|
|
||||||
+ }
|
|
||||||
+ // navigation icon right
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",8 //type
|
|
||||||
+ if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
+ spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
+ if(tTmp.txt=="0")
|
|
||||||
+ {
|
|
||||||
+ vis bNext,0
|
|
||||||
+ }else
|
|
||||||
+ tsw mSwipeNext,0
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="1")
|
|
||||||
+ {
|
|
||||||
+ vis bNext,1
|
|
||||||
+ tsw mSwipeNext,1
|
|
||||||
+ bNext.txt="î³"
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="2")
|
|
||||||
+ {
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,nent2.txt,"~",9
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,bNext.txt,"~",10
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",11
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ bNext.pco=sys0
|
|
||||||
+ vis bNext,1
|
|
||||||
+ bNext.txt="î"
|
|
||||||
+ }
|
|
||||||
+ // extract color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",14
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",3
|
|
||||||
+ covx tTmp.txt,vaColorL.val,0,0
|
|
||||||
+ // prepare dark color
|
|
||||||
+ sys0=vaColorL.val>>11 // red
|
|
||||||
+ vaColorD.val=sys0*8/10<<11 // store and shift
|
|
||||||
+ sys0=vaColorL.val>>5%64 // green
|
|
||||||
+ vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
|
|
||||||
+ sys0=vaColorL.val%32
|
|
||||||
+ vaColorD.val=sys0*8/10+vaColorD.val // store and add
|
|
||||||
+ //
|
|
||||||
+ // detect nValues and maxValue
|
|
||||||
+ vNValues.val=0
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
|
||||||
+ strlen tTmp.txt,sya0
|
|
||||||
+ while(sya0>0)
|
|
||||||
+ {
|
|
||||||
+ covx tTmp.txt,sya1,0,0
|
|
||||||
+ if(sya1>vMax.val)
|
|
||||||
+ {
|
|
||||||
+ vMax.val=sya1
|
|
||||||
+ }
|
|
||||||
+ // next
|
|
||||||
+ vNValues.val++
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
|
||||||
+ strlen tTmp.txt,sya0
|
|
||||||
+ }
|
|
||||||
+ //
|
|
||||||
+ // calculate unit width
|
|
||||||
+ sys0=vNValues.val*4
|
|
||||||
+ sys0+=vNValues.val-1
|
|
||||||
+ vaUnit.val=m0.w-25-40*100
|
|
||||||
+ vaUnit.val/=sys0
|
|
||||||
+ vaBottom.val=m0.y+m0.h-24
|
|
||||||
+ vaLeft.val=m0.x+25+40*100
|
|
||||||
+ vaYUnit.val=m0.h-24/vMax.val
|
|
||||||
+ //
|
|
||||||
+ line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
|
||||||
+ line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
|
||||||
+ spstr strCommand.txt,strTmp.txt,"~",16
|
|
||||||
+ spstr strCommand.txt,strTmp.txt,"~",5
|
|
||||||
+ sya1=0
|
|
||||||
+ spstr strTmp.txt,tTmp.txt,":",sya1
|
|
||||||
+ strlen tTmp.txt,sya0
|
|
||||||
+ while(sya0>0)
|
|
||||||
+ {
|
|
||||||
+ covx tTmp.txt,sys1,0,0
|
|
||||||
+ if(sys1<=vMax.val)
|
|
||||||
+15 +505,15 @@
|
|
||||||
+ // next
|
|
||||||
+ sya1++
|
|
||||||
+ spstr strTmp.txt,tTmp.txt,":",sya1
|
|
||||||
+ strlen tTmp.txt,sya0
|
|
||||||
+ }
|
|
||||||
+ //
|
|
||||||
+ // y achis label
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",4
|
|
||||||
+ // tTmp.txt="Gas [kW]"
|
|
||||||
+ strlen tTmp.txt,sys1
|
|
||||||
+ sya1=sys1*12+m0.h-48/2
|
|
||||||
+ for(sys0=0;sys0<sys1;sys0++)
|
|
||||||
+ {
|
|
||||||
+ substr tTmp.txt,strTmp.txt,sys0,1
|
|
||||||
+ xstr m0.x,sys0*-12+m0.y+sya1,30,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
|
|
||||||
+15 +521,15 @@
|
|
||||||
+ for(sys0=0;sys0<vNValues.val;sys0++)
|
|
||||||
+ {
|
|
||||||
+ if(sys0>0)
|
|
||||||
+ {
|
|
||||||
+ vaValues.txt+="~"
|
|
||||||
+ }
|
|
||||||
+ // extract next entry
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
|
||||||
+ // calculate left
|
|
||||||
+ sys1=sys0*5*vaUnit.val
|
|
||||||
+ sys1+=vaLeft.val
|
|
||||||
+ // if there is a colon in the obtained value we have a label/and gridline
|
|
||||||
+ spstr tTmp.txt,strTmp.txt,"^",1
|
|
||||||
+ strlen strTmp.txt,sya0
|
|
||||||
+ if(sya0>0)
|
|
||||||
+I/n2t-out/cardEntities.txt
|
+I/n2t-out/cardEntities.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardEntities.txt
|
++ HMI/US/portrait/n2t-out/cardEntities.txt
|
||||||
+5 +96,57 @@
|
+5 +96,57 @@
|
||||||
@@ -780,23 +454,6 @@
|
|||||||
+ }
|
+ }
|
||||||
+I/n2t-out/cardGrid.txt
|
+I/n2t-out/cardGrid.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardGrid.txt
|
++ HMI/US/portrait/n2t-out/cardGrid.txt
|
||||||
+5 +94,15 @@
|
|
||||||
+ Text :
|
|
||||||
+ Max. Text Size: 80
|
|
||||||
+
|
|
||||||
+e (string) strCommand
|
|
||||||
+ributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Text :
|
|
||||||
+ Max. Text Size: 700
|
|
||||||
+ Max. Text Size: 500
|
|
||||||
+
|
|
||||||
+e (string) tSend
|
|
||||||
+ributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Text :
|
|
||||||
+ Max. Text Size: 200
|
|
||||||
+
|
|
||||||
+14 +631,18 @@
|
+14 +631,18 @@
|
||||||
+ {
|
+ {
|
||||||
+ page popupLight
|
+ page popupLight
|
||||||
@@ -847,228 +504,6 @@
|
|||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 20
|
+ Max. Text Size: 20
|
||||||
+
|
|
||||||
+171 +440,177 @@
|
|
||||||
+ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
+ spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
+ if(tInstruction.txt=="entityUpd")
|
|
||||||
+ {
|
|
||||||
+ // command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
|
||||||
+ //tHeading
|
|
||||||
+ spstr strCommand.txt,tHeading.txt,"~",1
|
|
||||||
+ // navigation icon left
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",2 //type
|
|
||||||
+ if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
+ // navigation icons
|
|
||||||
+ spstr strCommand.txt,tId.txt,"~",2
|
|
||||||
+ spstr tId.txt,tTmp.txt,"|",0
|
|
||||||
+ if(tTmp.txt=="0")
|
|
||||||
+ {
|
|
||||||
+ vis bPrev,0
|
|
||||||
+ }else
|
|
||||||
+ tsw mSwipePrev,0
|
|
||||||
+ tsw mSwipeUp,0
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="1")
|
|
||||||
+ {
|
|
||||||
+ vis bPrev,1
|
|
||||||
+ tsw mSwipePrev,1
|
|
||||||
+ tsw mSwipeUp,0
|
|
||||||
+ bPrev.txt="î°"
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="2")
|
|
||||||
+ {
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,nent1.txt,"~",3
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,bPrev.txt,"~",4
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",5
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ bPrev.pco=sys0
|
|
||||||
+ vis bPrev,1
|
|
||||||
+ tsw mSwipePrev,0
|
|
||||||
+ tsw mSwipeUp,1
|
|
||||||
+ bPrev.txt="î¶"
|
|
||||||
+ }
|
|
||||||
+ // navigation icon right
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",8 //type
|
|
||||||
+ if(tTmp.txt=="delete"||tTmp.txt=="")
|
|
||||||
+ spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
+ if(tTmp.txt=="0")
|
|
||||||
+ {
|
|
||||||
+ vis bNext,0
|
|
||||||
+ }else
|
|
||||||
+ tsw mSwipeNext,0
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="1")
|
|
||||||
+ {
|
|
||||||
+ vis bNext,1
|
|
||||||
+ tsw mSwipeNext,1
|
|
||||||
+ bNext.txt="î³"
|
|
||||||
+ }
|
|
||||||
+ if(tTmp.txt=="2")
|
|
||||||
+ {
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,nent2.txt,"~",9
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,bNext.txt,"~",10
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",11
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ bNext.pco=sys0
|
|
||||||
+ vis bNext,1
|
|
||||||
+ bNext.txt="î"
|
|
||||||
+ }
|
|
||||||
+ //text qrcode
|
|
||||||
+ spstr strCommand.txt,vaQR.txt,"~",14
|
|
||||||
+ spstr strCommand.txt,vaQR.txt,"~",3
|
|
||||||
+ // get Type
|
|
||||||
+ spstr strCommand.txt,type1.txt,"~",15
|
|
||||||
+ spstr strCommand.txt,type1.txt,"~",4
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,entn1.txt,"~",16
|
|
||||||
+ spstr strCommand.txt,entn1.txt,"~",5
|
|
||||||
+ if(type1.txt=="delete"||type1.txt=="")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff1,0
|
|
||||||
+ vis tEntity1,0
|
|
||||||
+ vis tIcon1,0
|
|
||||||
+ vis bText1,0
|
|
||||||
+ }else
|
|
||||||
+ {
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,tIcon1.txt,"~",17
|
|
||||||
+ spstr strCommand.txt,tIcon1.txt,"~",6
|
|
||||||
+ vis tIcon1,1
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",18
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",7
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ tIcon1.pco=sys0
|
|
||||||
+ // set name
|
|
||||||
+ spstr strCommand.txt,tEntity1.txt,"~",19
|
|
||||||
+ spstr strCommand.txt,tEntity1.txt,"~",8
|
|
||||||
+ vis tEntity1,1
|
|
||||||
+ }
|
|
||||||
+ if(type1.txt=="light")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff1,1
|
|
||||||
+ vis bText1,0
|
|
||||||
+ // get Button State (optional Value)
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",20
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ btOnOff1.val=sys0
|
|
||||||
+ }
|
|
||||||
+ if(type1.txt=="switch")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff1,1
|
|
||||||
+ vis bText1,0
|
|
||||||
+ // get Button State (optional Value)
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",20
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ btOnOff1.val=sys0
|
|
||||||
+ }
|
|
||||||
+ if(type1.txt=="text")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff1,0
|
|
||||||
+ vis bText1,1
|
|
||||||
+ tsw bText1,0
|
|
||||||
+ bText1.pco=65535
|
|
||||||
+ bText1.pco2=65535
|
|
||||||
+ // get Text (optional Value)
|
|
||||||
+ spstr strCommand.txt,bText1.txt,"~",20
|
|
||||||
+ spstr strCommand.txt,bText1.txt,"~",9
|
|
||||||
+ }
|
|
||||||
+ if(type1.txt=="button")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff1,0
|
|
||||||
+ vis bText1,1
|
|
||||||
+ tsw bText1,1
|
|
||||||
+ bText1.pco=1374
|
|
||||||
+ bText1.pco2=1374
|
|
||||||
+ // get Text (optional Value)
|
|
||||||
+ spstr strCommand.txt,bText1.txt,"~",20
|
|
||||||
+ spstr strCommand.txt,bText1.txt,"~",9
|
|
||||||
+ }
|
|
||||||
+ // get Type
|
|
||||||
+ spstr strCommand.txt,type2.txt,"~",21
|
|
||||||
+ spstr strCommand.txt,type2.txt,"~",10
|
|
||||||
+ // get internal name
|
|
||||||
+ spstr strCommand.txt,entn2.txt,"~",22
|
|
||||||
+ spstr strCommand.txt,entn2.txt,"~",11
|
|
||||||
+ if(type2.txt=="delete"||type2.txt=="")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff2,0
|
|
||||||
+ vis tEntity2,0
|
|
||||||
+ vis tIcon2,0
|
|
||||||
+ vis bText2,0
|
|
||||||
+ }else
|
|
||||||
+ {
|
|
||||||
+ // change icon
|
|
||||||
+ spstr strCommand.txt,tIcon2.txt,"~",23
|
|
||||||
+ spstr strCommand.txt,tIcon2.txt,"~",12
|
|
||||||
+ vis tIcon2,1
|
|
||||||
+ // change icon color
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",24
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",13
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ tIcon2.pco=sys0
|
|
||||||
+ // set name
|
|
||||||
+ spstr strCommand.txt,tEntity2.txt,"~",25
|
|
||||||
+ spstr strCommand.txt,tEntity2.txt,"~",14
|
|
||||||
+ vis tEntity2,1
|
|
||||||
+ }
|
|
||||||
+ if(type2.txt=="light")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff2,1
|
|
||||||
+ vis bText2,0
|
|
||||||
+ // get Button State (optional Value)
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",26
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ btOnOff2.val=sys0
|
|
||||||
+ }
|
|
||||||
+ if(type2.txt=="switch")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff2,1
|
|
||||||
+ vis bText2,0
|
|
||||||
+ // get Button State (optional Value)
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",26
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
+ covx tTmp.txt,sys0,0,0
|
|
||||||
+ btOnOff2.val=sys0
|
|
||||||
+ }
|
|
||||||
+ if(type2.txt=="text")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff2,0
|
|
||||||
+ vis bText2,1
|
|
||||||
+ tsw bText2,0
|
|
||||||
+ bText2.pco=65535
|
|
||||||
+ bText2.pco2=65535
|
|
||||||
+ // get Text (optional Value)
|
|
||||||
+ spstr strCommand.txt,bText2.txt,"~",26
|
|
||||||
+ spstr strCommand.txt,bText2.txt,"~",15
|
|
||||||
+ }
|
|
||||||
+ if(type2.txt=="button")
|
|
||||||
+ {
|
|
||||||
+ vis btOnOff2,0
|
|
||||||
+ vis bText2,1
|
|
||||||
+ tsw bText2,1
|
|
||||||
+ bText2.pco=1374
|
|
||||||
+ bText2.pco2=1374
|
|
||||||
+ // get Text (optional Value)
|
|
||||||
+ spstr strCommand.txt,bText2.txt,"~",26
|
|
||||||
+ spstr strCommand.txt,bText2.txt,"~",15
|
|
||||||
+ }
|
|
||||||
+ if(type2.txt=="delete"||type2.txt=="")
|
|
||||||
+ {
|
|
||||||
+ if(type1.txt=="delete"||type1.txt=="")
|
|
||||||
+ {
|
|
||||||
+ qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
|
|
||||||
+ }
|
|
||||||
+I/n2t-out/cardThermo.txt
|
+I/n2t-out/cardThermo.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardThermo.txt
|
++ HMI/US/portrait/n2t-out/cardThermo.txt
|
||||||
+208 +829,214 @@
|
+208 +829,214 @@
|
||||||
|
|||||||
@@ -1223,86 +1223,80 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
//entn
|
//entn
|
||||||
spstr strCommand.txt,entn.txt,"~",1
|
spstr strCommand.txt,entn.txt,"~",1
|
||||||
// navigation icons
|
// navigation icon left
|
||||||
spstr strCommand.txt,tId.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||||
spstr tId.txt,tTmp.txt,"|",0
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bPrev,0
|
vis bPrev,0
|
||||||
tsw mSwipePrev,0
|
}else
|
||||||
tsw mSwipeUp,0
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent1.txt,"~",3
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bPrev.txt,"~",4
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bPrev.pco=sys0
|
||||||
vis bPrev,1
|
vis bPrev,1
|
||||||
tsw mSwipePrev,1
|
|
||||||
tsw mSwipeUp,0
|
|
||||||
bPrev.txt="î°"
|
|
||||||
}
|
}
|
||||||
if(tTmp.txt=="2")
|
// navigation icon right
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||||
vis bPrev,1
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
tsw mSwipePrev,0
|
|
||||||
tsw mSwipeUp,1
|
|
||||||
bPrev.txt="î¶"
|
|
||||||
}
|
|
||||||
spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bNext,0
|
vis bNext,0
|
||||||
tsw mSwipeNext,0
|
}else
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent2.txt,"~",9
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bNext.txt,"~",10
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bNext.pco=sys0
|
||||||
vis bNext,1
|
vis bNext,1
|
||||||
tsw mSwipeNext,1
|
|
||||||
bNext.txt="î³"
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="2")
|
|
||||||
{
|
|
||||||
vis bNext,1
|
|
||||||
bNext.txt="î"
|
|
||||||
}
|
}
|
||||||
//text arm1
|
//text arm1
|
||||||
spstr strCommand.txt,arm1.txt,"~",3
|
spstr strCommand.txt,arm1.txt,"~",14
|
||||||
if(arm1.txt!="")
|
if(arm1.txt!="")
|
||||||
{
|
{
|
||||||
vis arm1,1
|
vis arm1,1
|
||||||
}
|
}
|
||||||
//id arm1
|
//id arm1
|
||||||
spstr strCommand.txt,va1.txt,"~",4
|
spstr strCommand.txt,va1.txt,"~",15
|
||||||
//text arm2
|
//text arm2
|
||||||
spstr strCommand.txt,arm2.txt,"~",5
|
spstr strCommand.txt,arm2.txt,"~",16
|
||||||
if(arm2.txt!="")
|
if(arm2.txt!="")
|
||||||
{
|
{
|
||||||
vis arm2,1
|
vis arm2,1
|
||||||
}
|
}
|
||||||
//id arm2
|
//id arm2
|
||||||
spstr strCommand.txt,va2.txt,"~",6
|
spstr strCommand.txt,va2.txt,"~",17
|
||||||
//text arm3
|
//text arm3
|
||||||
spstr strCommand.txt,arm3.txt,"~",7
|
spstr strCommand.txt,arm3.txt,"~",18
|
||||||
if(arm3.txt!="")
|
if(arm3.txt!="")
|
||||||
{
|
{
|
||||||
vis arm3,1
|
vis arm3,1
|
||||||
}
|
}
|
||||||
//id arm3
|
//id arm3
|
||||||
spstr strCommand.txt,va3.txt,"~",8
|
spstr strCommand.txt,va3.txt,"~",19
|
||||||
//text arm4
|
//text arm4
|
||||||
spstr strCommand.txt,arm4.txt,"~",9
|
spstr strCommand.txt,arm4.txt,"~",20
|
||||||
if(arm4.txt!="")
|
if(arm4.txt!="")
|
||||||
{
|
{
|
||||||
vis arm4,1
|
vis arm4,1
|
||||||
}
|
}
|
||||||
//id arm4
|
//id arm4
|
||||||
spstr strCommand.txt,va4.txt,"~",10
|
spstr strCommand.txt,va4.txt,"~",21
|
||||||
//icon
|
//icon
|
||||||
spstr strCommand.txt,tIcon.txt,"~",11
|
spstr strCommand.txt,tIcon.txt,"~",22
|
||||||
//icon color
|
//icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",12
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon.pco=sys0
|
tIcon.pco=sys0
|
||||||
//numpad status
|
//numpad status
|
||||||
spstr strCommand.txt,tTmp.txt,"~",13
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
if(tTmp.txt!="disable")
|
if(tTmp.txt!="disable")
|
||||||
{
|
{
|
||||||
vis b0,1
|
vis b0,1
|
||||||
@@ -1335,7 +1329,7 @@ Timer tmSerial
|
|||||||
vis tCode,0
|
vis tCode,0
|
||||||
}
|
}
|
||||||
//flashing status
|
//flashing status
|
||||||
spstr strCommand.txt,tTmp.txt,"~",14
|
spstr strCommand.txt,tTmp.txt,"~",25
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
tmFlash.en=1
|
tmFlash.en=1
|
||||||
@@ -1344,13 +1338,13 @@ Timer tmSerial
|
|||||||
tmFlash.en=0
|
tmFlash.en=0
|
||||||
}
|
}
|
||||||
// extra button
|
// extra button
|
||||||
spstr strCommand.txt,b9.txt,"~",15
|
spstr strCommand.txt,b9.txt,"~",26
|
||||||
if(b9.txt!="")
|
if(b9.txt!="")
|
||||||
{
|
{
|
||||||
vis b9,1
|
vis b9,1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
spstr strCommand.txt,tTmp.txt,"~",27
|
||||||
covx tTmp.txt,b9.pco,0,0
|
covx tTmp.txt,b9.pco,0,0
|
||||||
spstr strCommand.txt,vaAddBtn.txt,"~",17
|
spstr strCommand.txt,vaAddBtn.txt,"~",28
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
|
|||||||
@@ -559,48 +559,42 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpd")
|
if(tInstruction.txt=="entityUpd")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tHeading.txt,"~",1
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
// navigation icons
|
// navigation icon left
|
||||||
spstr strCommand.txt,tId.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||||
spstr tId.txt,tTmp.txt,"|",0
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bPrev,0
|
vis bPrev,0
|
||||||
tsw mSwipePrev,0
|
}else
|
||||||
tsw mSwipeUp,0
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent1.txt,"~",3
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bPrev.txt,"~",4
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bPrev.pco=sys0
|
||||||
vis bPrev,1
|
vis bPrev,1
|
||||||
tsw mSwipePrev,1
|
|
||||||
tsw mSwipeUp,0
|
|
||||||
bPrev.txt="î°"
|
|
||||||
}
|
}
|
||||||
if(tTmp.txt=="2")
|
// navigation icon right
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||||
vis bPrev,1
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
tsw mSwipePrev,0
|
|
||||||
tsw mSwipeUp,1
|
|
||||||
bPrev.txt="î¶"
|
|
||||||
}
|
|
||||||
spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bNext,0
|
vis bNext,0
|
||||||
tsw mSwipeNext,0
|
}else
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent2.txt,"~",9
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bNext.txt,"~",10
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bNext.pco=sys0
|
||||||
vis bNext,1
|
vis bNext,1
|
||||||
tsw mSwipeNext,1
|
|
||||||
bNext.txt="î³"
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="2")
|
|
||||||
{
|
|
||||||
vis bNext,1
|
|
||||||
bNext.txt="î"
|
|
||||||
}
|
}
|
||||||
// extract color
|
// extract color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
covx tTmp.txt,vaColorL.val,0,0
|
covx tTmp.txt,vaColorL.val,0,0
|
||||||
// prepare dark color
|
// prepare dark color
|
||||||
sys0=vaColorL.val>>11 // red
|
sys0=vaColorL.val>>11 // red
|
||||||
@@ -612,7 +606,7 @@ Timer tmSerial
|
|||||||
//
|
//
|
||||||
// detect nValues and maxValue
|
// detect nValues and maxValue
|
||||||
vNValues.val=0
|
vNValues.val=0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||||
strlen tTmp.txt,sya0
|
strlen tTmp.txt,sya0
|
||||||
while(sya0>0)
|
while(sya0>0)
|
||||||
{
|
{
|
||||||
@@ -623,7 +617,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
// next
|
// next
|
||||||
vNValues.val++
|
vNValues.val++
|
||||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||||
strlen tTmp.txt,sya0
|
strlen tTmp.txt,sya0
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@@ -638,7 +632,7 @@ Timer tmSerial
|
|||||||
//
|
//
|
||||||
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
||||||
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
||||||
spstr strCommand.txt,strTmp.txt,"~",5
|
spstr strCommand.txt,strTmp.txt,"~",16
|
||||||
sya1=0
|
sya1=0
|
||||||
spstr strTmp.txt,tTmp.txt,":",sya1
|
spstr strTmp.txt,tTmp.txt,":",sya1
|
||||||
strlen tTmp.txt,sya0
|
strlen tTmp.txt,sya0
|
||||||
@@ -671,7 +665,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
// y achis label
|
// y achis label
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",15
|
||||||
// tTmp.txt="Gas [kW]"
|
// tTmp.txt="Gas [kW]"
|
||||||
strlen tTmp.txt,sys1
|
strlen tTmp.txt,sys1
|
||||||
sya1=sys1*12+m0.h-48/2
|
sya1=sys1*12+m0.h-48/2
|
||||||
@@ -687,7 +681,7 @@ Timer tmSerial
|
|||||||
vaValues.txt+="~"
|
vaValues.txt+="~"
|
||||||
}
|
}
|
||||||
// extract next entry
|
// extract next entry
|
||||||
spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
||||||
// calculate left
|
// calculate left
|
||||||
sys1=sys0*5*vaUnit.val
|
sys1=sys0*5*vaUnit.val
|
||||||
sys1+=vaLeft.val
|
sys1+=vaLeft.val
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ Variable (string) strCommand
|
|||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 700
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
|
|||||||
@@ -745,52 +745,46 @@ Timer tmSerial
|
|||||||
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
||||||
//tHeading
|
//tHeading
|
||||||
spstr strCommand.txt,tHeading.txt,"~",1
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
// navigation icons
|
// navigation icon left
|
||||||
spstr strCommand.txt,tId.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||||
spstr tId.txt,tTmp.txt,"|",0
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bPrev,0
|
vis bPrev,0
|
||||||
tsw mSwipePrev,0
|
}else
|
||||||
tsw mSwipeUp,0
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent1.txt,"~",3
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bPrev.txt,"~",4
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bPrev.pco=sys0
|
||||||
vis bPrev,1
|
vis bPrev,1
|
||||||
tsw mSwipePrev,1
|
|
||||||
tsw mSwipeUp,0
|
|
||||||
bPrev.txt="î°"
|
|
||||||
}
|
}
|
||||||
if(tTmp.txt=="2")
|
// navigation icon right
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||||
vis bPrev,1
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
tsw mSwipePrev,0
|
|
||||||
tsw mSwipeUp,1
|
|
||||||
bPrev.txt="î¶"
|
|
||||||
}
|
|
||||||
spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bNext,0
|
vis bNext,0
|
||||||
tsw mSwipeNext,0
|
}else
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent2.txt,"~",9
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bNext.txt,"~",10
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bNext.pco=sys0
|
||||||
vis bNext,1
|
vis bNext,1
|
||||||
tsw mSwipeNext,1
|
|
||||||
bNext.txt="î³"
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="2")
|
|
||||||
{
|
|
||||||
vis bNext,1
|
|
||||||
bNext.txt="î"
|
|
||||||
}
|
}
|
||||||
//text qrcode
|
//text qrcode
|
||||||
spstr strCommand.txt,vaQR.txt,"~",3
|
spstr strCommand.txt,vaQR.txt,"~",14
|
||||||
// get Type
|
// get Type
|
||||||
spstr strCommand.txt,type1.txt,"~",4
|
spstr strCommand.txt,type1.txt,"~",15
|
||||||
// get internal name
|
// get internal name
|
||||||
spstr strCommand.txt,entn1.txt,"~",5
|
spstr strCommand.txt,entn1.txt,"~",16
|
||||||
if(type1.txt=="delete"||type1.txt=="")
|
if(type1.txt=="delete"||type1.txt=="")
|
||||||
{
|
{
|
||||||
vis btOnOff1,0
|
vis btOnOff1,0
|
||||||
@@ -800,14 +794,14 @@ Timer tmSerial
|
|||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",6
|
spstr strCommand.txt,tIcon1.txt,"~",17
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",7
|
spstr strCommand.txt,tTmp.txt,"~",18
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// set name
|
// set name
|
||||||
spstr strCommand.txt,tEntity1.txt,"~",8
|
spstr strCommand.txt,tEntity1.txt,"~",19
|
||||||
vis tEntity1,1
|
vis tEntity1,1
|
||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
@@ -815,7 +809,7 @@ Timer tmSerial
|
|||||||
vis btOnOff1,1
|
vis btOnOff1,1
|
||||||
vis bText1,0
|
vis bText1,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
}
|
}
|
||||||
@@ -824,7 +818,7 @@ Timer tmSerial
|
|||||||
vis btOnOff1,1
|
vis btOnOff1,1
|
||||||
vis bText1,0
|
vis bText1,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
}
|
}
|
||||||
@@ -836,7 +830,7 @@ Timer tmSerial
|
|||||||
bText1.pco=65535
|
bText1.pco=65535
|
||||||
bText1.pco2=65535
|
bText1.pco2=65535
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText1.txt,"~",9
|
spstr strCommand.txt,bText1.txt,"~",20
|
||||||
}
|
}
|
||||||
if(type1.txt=="button")
|
if(type1.txt=="button")
|
||||||
{
|
{
|
||||||
@@ -846,12 +840,12 @@ Timer tmSerial
|
|||||||
bText1.pco=1374
|
bText1.pco=1374
|
||||||
bText1.pco2=1374
|
bText1.pco2=1374
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText1.txt,"~",9
|
spstr strCommand.txt,bText1.txt,"~",20
|
||||||
}
|
}
|
||||||
// get Type
|
// get Type
|
||||||
spstr strCommand.txt,type2.txt,"~",10
|
spstr strCommand.txt,type2.txt,"~",21
|
||||||
// get internal name
|
// get internal name
|
||||||
spstr strCommand.txt,entn2.txt,"~",11
|
spstr strCommand.txt,entn2.txt,"~",22
|
||||||
if(type2.txt=="delete"||type2.txt=="")
|
if(type2.txt=="delete"||type2.txt=="")
|
||||||
{
|
{
|
||||||
vis btOnOff2,0
|
vis btOnOff2,0
|
||||||
@@ -861,14 +855,14 @@ Timer tmSerial
|
|||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon2.txt,"~",12
|
spstr strCommand.txt,tIcon2.txt,"~",23
|
||||||
vis tIcon2,1
|
vis tIcon2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",13
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon2.pco=sys0
|
tIcon2.pco=sys0
|
||||||
// set name
|
// set name
|
||||||
spstr strCommand.txt,tEntity2.txt,"~",14
|
spstr strCommand.txt,tEntity2.txt,"~",25
|
||||||
vis tEntity2,1
|
vis tEntity2,1
|
||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
@@ -876,7 +870,7 @@ Timer tmSerial
|
|||||||
vis btOnOff2,1
|
vis btOnOff2,1
|
||||||
vis bText2,0
|
vis bText2,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff2.val=sys0
|
btOnOff2.val=sys0
|
||||||
}
|
}
|
||||||
@@ -885,7 +879,7 @@ Timer tmSerial
|
|||||||
vis btOnOff2,1
|
vis btOnOff2,1
|
||||||
vis bText2,0
|
vis bText2,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff2.val=sys0
|
btOnOff2.val=sys0
|
||||||
}
|
}
|
||||||
@@ -897,7 +891,7 @@ Timer tmSerial
|
|||||||
bText2.pco=65535
|
bText2.pco=65535
|
||||||
bText2.pco2=65535
|
bText2.pco2=65535
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText2.txt,"~",15
|
spstr strCommand.txt,bText2.txt,"~",26
|
||||||
}
|
}
|
||||||
if(type2.txt=="button")
|
if(type2.txt=="button")
|
||||||
{
|
{
|
||||||
@@ -907,7 +901,7 @@ Timer tmSerial
|
|||||||
bText2.pco=1374
|
bText2.pco=1374
|
||||||
bText2.pco2=1374
|
bText2.pco2=1374
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText2.txt,"~",15
|
spstr strCommand.txt,bText2.txt,"~",26
|
||||||
}
|
}
|
||||||
if(type2.txt=="delete"||type2.txt=="")
|
if(type2.txt=="delete"||type2.txt=="")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,20 +24,16 @@ popupFan
|
|||||||
204 Unique line(s) of event code
|
204 Unique line(s) of event code
|
||||||
cardQR
|
cardQR
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
411 Line(s) of event code
|
398 Line(s) of event code
|
||||||
237 Unique line(s) of event code
|
232 Unique line(s) of event code
|
||||||
cardChart
|
|
||||||
33 Component(s)
|
|
||||||
438 Line(s) of event code
|
|
||||||
291 Unique line(s) of event code
|
|
||||||
pageStartup
|
pageStartup
|
||||||
19 Component(s)
|
19 Component(s)
|
||||||
181 Line(s) of event code
|
181 Line(s) of event code
|
||||||
129 Unique line(s) of event code
|
129 Unique line(s) of event code
|
||||||
cardAlarm
|
cardPower
|
||||||
42 Component(s)
|
45 Component(s)
|
||||||
428 Line(s) of event code
|
412 Line(s) of event code
|
||||||
257 Unique line(s) of event code
|
289 Unique line(s) of event code
|
||||||
screensaver
|
screensaver
|
||||||
45 Component(s)
|
45 Component(s)
|
||||||
410 Line(s) of event code
|
410 Line(s) of event code
|
||||||
@@ -50,18 +46,22 @@ popupThermo
|
|||||||
44 Component(s)
|
44 Component(s)
|
||||||
519 Line(s) of event code
|
519 Line(s) of event code
|
||||||
274 Unique line(s) of event code
|
274 Unique line(s) of event code
|
||||||
cardGrid
|
cardChart
|
||||||
44 Component(s)
|
33 Component(s)
|
||||||
515 Line(s) of event code
|
425 Line(s) of event code
|
||||||
290 Unique line(s) of event code
|
290 Unique line(s) of event code
|
||||||
cardPower
|
|
||||||
45 Component(s)
|
|
||||||
412 Line(s) of event code
|
|
||||||
289 Unique line(s) of event code
|
|
||||||
cardMedia
|
cardMedia
|
||||||
59 Component(s)
|
59 Component(s)
|
||||||
637 Line(s) of event code
|
637 Line(s) of event code
|
||||||
316 Unique line(s) of event code
|
316 Unique line(s) of event code
|
||||||
|
cardAlarm
|
||||||
|
42 Component(s)
|
||||||
|
415 Line(s) of event code
|
||||||
|
253 Unique line(s) of event code
|
||||||
|
cardGrid
|
||||||
|
44 Component(s)
|
||||||
|
515 Line(s) of event code
|
||||||
|
290 Unique line(s) of event code
|
||||||
cardThermo
|
cardThermo
|
||||||
57 Component(s)
|
57 Component(s)
|
||||||
541 Line(s) of event code
|
541 Line(s) of event code
|
||||||
@@ -82,5 +82,5 @@ cardEntities
|
|||||||
Total
|
Total
|
||||||
19 Page(s)
|
19 Page(s)
|
||||||
709 Component(s)
|
709 Component(s)
|
||||||
8670 Line(s) of event code
|
8631 Line(s) of event code
|
||||||
2261 Unique line(s) of event code
|
2261 Unique line(s) of event code
|
||||||
|
|||||||
@@ -638,86 +638,80 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
//entn
|
//entn
|
||||||
spstr strCommand.txt,entn.txt,"~",1
|
spstr strCommand.txt,entn.txt,"~",1
|
||||||
// navigation icons
|
// navigation icon left
|
||||||
spstr strCommand.txt,tId.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||||
spstr tId.txt,tTmp.txt,"|",0
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bPrev,0
|
vis bPrev,0
|
||||||
tsw mSwipePrev,0
|
}else
|
||||||
tsw mSwipeUp,0
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent1.txt,"~",3
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bPrev.txt,"~",4
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bPrev.pco=sys0
|
||||||
vis bPrev,1
|
vis bPrev,1
|
||||||
tsw mSwipePrev,1
|
|
||||||
tsw mSwipeUp,0
|
|
||||||
bPrev.txt="î°"
|
|
||||||
}
|
}
|
||||||
if(tTmp.txt=="2")
|
// navigation icon right
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||||
vis bPrev,1
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
tsw mSwipePrev,0
|
|
||||||
tsw mSwipeUp,1
|
|
||||||
bPrev.txt="î¶"
|
|
||||||
}
|
|
||||||
spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bNext,0
|
vis bNext,0
|
||||||
tsw mSwipeNext,0
|
}else
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent2.txt,"~",9
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bNext.txt,"~",10
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bNext.pco=sys0
|
||||||
vis bNext,1
|
vis bNext,1
|
||||||
tsw mSwipeNext,1
|
|
||||||
bNext.txt="î³"
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="2")
|
|
||||||
{
|
|
||||||
vis bNext,1
|
|
||||||
bNext.txt="î"
|
|
||||||
}
|
}
|
||||||
//text arm1
|
//text arm1
|
||||||
spstr strCommand.txt,arm1.txt,"~",3
|
spstr strCommand.txt,arm1.txt,"~",14
|
||||||
if(arm1.txt!="")
|
if(arm1.txt!="")
|
||||||
{
|
{
|
||||||
vis arm1,1
|
vis arm1,1
|
||||||
}
|
}
|
||||||
//id arm1
|
//id arm1
|
||||||
spstr strCommand.txt,va1.txt,"~",4
|
spstr strCommand.txt,va1.txt,"~",15
|
||||||
//text arm2
|
//text arm2
|
||||||
spstr strCommand.txt,arm2.txt,"~",5
|
spstr strCommand.txt,arm2.txt,"~",16
|
||||||
if(arm2.txt!="")
|
if(arm2.txt!="")
|
||||||
{
|
{
|
||||||
vis arm2,1
|
vis arm2,1
|
||||||
}
|
}
|
||||||
//id arm2
|
//id arm2
|
||||||
spstr strCommand.txt,va2.txt,"~",6
|
spstr strCommand.txt,va2.txt,"~",17
|
||||||
//text arm3
|
//text arm3
|
||||||
spstr strCommand.txt,arm3.txt,"~",7
|
spstr strCommand.txt,arm3.txt,"~",18
|
||||||
if(arm3.txt!="")
|
if(arm3.txt!="")
|
||||||
{
|
{
|
||||||
vis arm3,1
|
vis arm3,1
|
||||||
}
|
}
|
||||||
//id arm3
|
//id arm3
|
||||||
spstr strCommand.txt,va3.txt,"~",8
|
spstr strCommand.txt,va3.txt,"~",19
|
||||||
//text arm4
|
//text arm4
|
||||||
spstr strCommand.txt,arm4.txt,"~",9
|
spstr strCommand.txt,arm4.txt,"~",20
|
||||||
if(arm4.txt!="")
|
if(arm4.txt!="")
|
||||||
{
|
{
|
||||||
vis arm4,1
|
vis arm4,1
|
||||||
}
|
}
|
||||||
//id arm4
|
//id arm4
|
||||||
spstr strCommand.txt,va4.txt,"~",10
|
spstr strCommand.txt,va4.txt,"~",21
|
||||||
//icon
|
//icon
|
||||||
spstr strCommand.txt,tIcon.txt,"~",11
|
spstr strCommand.txt,tIcon.txt,"~",22
|
||||||
//icon color
|
//icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",12
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon.pco=sys0
|
tIcon.pco=sys0
|
||||||
//numpad status
|
//numpad status
|
||||||
spstr strCommand.txt,tTmp.txt,"~",13
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
if(tTmp.txt!="disable")
|
if(tTmp.txt!="disable")
|
||||||
{
|
{
|
||||||
vis b0,1
|
vis b0,1
|
||||||
@@ -750,7 +744,7 @@ Timer tmSerial
|
|||||||
vis tCode,0
|
vis tCode,0
|
||||||
}
|
}
|
||||||
//flashing status
|
//flashing status
|
||||||
spstr strCommand.txt,tTmp.txt,"~",14
|
spstr strCommand.txt,tTmp.txt,"~",25
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
tmFlash.en=1
|
tmFlash.en=1
|
||||||
@@ -759,13 +753,13 @@ Timer tmSerial
|
|||||||
tmFlash.en=0
|
tmFlash.en=0
|
||||||
}
|
}
|
||||||
// extra button
|
// extra button
|
||||||
spstr strCommand.txt,b9.txt,"~",15
|
spstr strCommand.txt,b9.txt,"~",26
|
||||||
if(b9.txt!="")
|
if(b9.txt!="")
|
||||||
{
|
{
|
||||||
vis b9,1
|
vis b9,1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
spstr strCommand.txt,tTmp.txt,"~",27
|
||||||
covx tTmp.txt,b9.pco,0,0
|
covx tTmp.txt,b9.pco,0,0
|
||||||
spstr strCommand.txt,vaAddBtn.txt,"~",17
|
spstr strCommand.txt,vaAddBtn.txt,"~",28
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
|
|||||||
@@ -397,48 +397,42 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpd")
|
if(tInstruction.txt=="entityUpd")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tHeading.txt,"~",1
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
// navigation icons
|
// navigation icon left
|
||||||
spstr strCommand.txt,tId.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||||
spstr tId.txt,tTmp.txt,"|",0
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bPrev,0
|
vis bPrev,0
|
||||||
tsw mSwipePrev,0
|
}else
|
||||||
tsw mSwipeUp,0
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent1.txt,"~",3
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bPrev.txt,"~",4
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bPrev.pco=sys0
|
||||||
vis bPrev,1
|
vis bPrev,1
|
||||||
tsw mSwipePrev,1
|
|
||||||
tsw mSwipeUp,0
|
|
||||||
bPrev.txt="î°"
|
|
||||||
}
|
}
|
||||||
if(tTmp.txt=="2")
|
// navigation icon right
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||||
vis bPrev,1
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
tsw mSwipePrev,0
|
|
||||||
tsw mSwipeUp,1
|
|
||||||
bPrev.txt="î¶"
|
|
||||||
}
|
|
||||||
spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bNext,0
|
vis bNext,0
|
||||||
tsw mSwipeNext,0
|
}else
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent2.txt,"~",9
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bNext.txt,"~",10
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bNext.pco=sys0
|
||||||
vis bNext,1
|
vis bNext,1
|
||||||
tsw mSwipeNext,1
|
|
||||||
bNext.txt="î³"
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="2")
|
|
||||||
{
|
|
||||||
vis bNext,1
|
|
||||||
bNext.txt="î"
|
|
||||||
}
|
}
|
||||||
// extract color
|
// extract color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
covx tTmp.txt,vaColorL.val,0,0
|
covx tTmp.txt,vaColorL.val,0,0
|
||||||
// prepare dark color
|
// prepare dark color
|
||||||
sys0=vaColorL.val>>11 // red
|
sys0=vaColorL.val>>11 // red
|
||||||
@@ -450,7 +444,7 @@ Timer tmSerial
|
|||||||
//
|
//
|
||||||
// detect nValues and maxValue
|
// detect nValues and maxValue
|
||||||
vNValues.val=0
|
vNValues.val=0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||||
strlen tTmp.txt,sya0
|
strlen tTmp.txt,sya0
|
||||||
while(sya0>0)
|
while(sya0>0)
|
||||||
{
|
{
|
||||||
@@ -461,7 +455,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
// next
|
// next
|
||||||
vNValues.val++
|
vNValues.val++
|
||||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||||
strlen tTmp.txt,sya0
|
strlen tTmp.txt,sya0
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@@ -476,7 +470,7 @@ Timer tmSerial
|
|||||||
//
|
//
|
||||||
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
||||||
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
||||||
spstr strCommand.txt,strTmp.txt,"~",5
|
spstr strCommand.txt,strTmp.txt,"~",16
|
||||||
sya1=0
|
sya1=0
|
||||||
spstr strTmp.txt,tTmp.txt,":",sya1
|
spstr strTmp.txt,tTmp.txt,":",sya1
|
||||||
strlen tTmp.txt,sya0
|
strlen tTmp.txt,sya0
|
||||||
@@ -509,7 +503,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
// y achis label
|
// y achis label
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",15
|
||||||
// tTmp.txt="Gas [kW]"
|
// tTmp.txt="Gas [kW]"
|
||||||
strlen tTmp.txt,sys1
|
strlen tTmp.txt,sys1
|
||||||
sya1=sys1*12+m0.h-48/2
|
sya1=sys1*12+m0.h-48/2
|
||||||
@@ -525,7 +519,7 @@ Timer tmSerial
|
|||||||
vaValues.txt+="~"
|
vaValues.txt+="~"
|
||||||
}
|
}
|
||||||
// extract next entry
|
// extract next entry
|
||||||
spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
||||||
// calculate left
|
// calculate left
|
||||||
sys1=sys0*5*vaUnit.val
|
sys1=sys0*5*vaUnit.val
|
||||||
sys1+=vaLeft.val
|
sys1+=vaLeft.val
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 700
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
|
|||||||
@@ -444,52 +444,46 @@ Timer tmSerial
|
|||||||
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
||||||
//tHeading
|
//tHeading
|
||||||
spstr strCommand.txt,tHeading.txt,"~",1
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
// navigation icons
|
// navigation icon left
|
||||||
spstr strCommand.txt,tId.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||||
spstr tId.txt,tTmp.txt,"|",0
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bPrev,0
|
vis bPrev,0
|
||||||
tsw mSwipePrev,0
|
}else
|
||||||
tsw mSwipeUp,0
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent1.txt,"~",3
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bPrev.txt,"~",4
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bPrev.pco=sys0
|
||||||
vis bPrev,1
|
vis bPrev,1
|
||||||
tsw mSwipePrev,1
|
|
||||||
tsw mSwipeUp,0
|
|
||||||
bPrev.txt="î°"
|
|
||||||
}
|
}
|
||||||
if(tTmp.txt=="2")
|
// navigation icon right
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||||
vis bPrev,1
|
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||||
tsw mSwipePrev,0
|
|
||||||
tsw mSwipeUp,1
|
|
||||||
bPrev.txt="î¶"
|
|
||||||
}
|
|
||||||
spstr tId.txt,tTmp.txt,"|",1
|
|
||||||
if(tTmp.txt=="0")
|
|
||||||
{
|
{
|
||||||
vis bNext,0
|
vis bNext,0
|
||||||
tsw mSwipeNext,0
|
}else
|
||||||
}
|
|
||||||
if(tTmp.txt=="1")
|
|
||||||
{
|
{
|
||||||
|
// get internal name
|
||||||
|
spstr strCommand.txt,nent2.txt,"~",9
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,bNext.txt,"~",10
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
bNext.pco=sys0
|
||||||
vis bNext,1
|
vis bNext,1
|
||||||
tsw mSwipeNext,1
|
|
||||||
bNext.txt="î³"
|
|
||||||
}
|
|
||||||
if(tTmp.txt=="2")
|
|
||||||
{
|
|
||||||
vis bNext,1
|
|
||||||
bNext.txt="î"
|
|
||||||
}
|
}
|
||||||
//text qrcode
|
//text qrcode
|
||||||
spstr strCommand.txt,vaQR.txt,"~",3
|
spstr strCommand.txt,vaQR.txt,"~",14
|
||||||
// get Type
|
// get Type
|
||||||
spstr strCommand.txt,type1.txt,"~",4
|
spstr strCommand.txt,type1.txt,"~",15
|
||||||
// get internal name
|
// get internal name
|
||||||
spstr strCommand.txt,entn1.txt,"~",5
|
spstr strCommand.txt,entn1.txt,"~",16
|
||||||
if(type1.txt=="delete"||type1.txt=="")
|
if(type1.txt=="delete"||type1.txt=="")
|
||||||
{
|
{
|
||||||
vis btOnOff1,0
|
vis btOnOff1,0
|
||||||
@@ -499,14 +493,14 @@ Timer tmSerial
|
|||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",6
|
spstr strCommand.txt,tIcon1.txt,"~",17
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",7
|
spstr strCommand.txt,tTmp.txt,"~",18
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// set name
|
// set name
|
||||||
spstr strCommand.txt,tEntity1.txt,"~",8
|
spstr strCommand.txt,tEntity1.txt,"~",19
|
||||||
vis tEntity1,1
|
vis tEntity1,1
|
||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
@@ -514,7 +508,7 @@ Timer tmSerial
|
|||||||
vis btOnOff1,1
|
vis btOnOff1,1
|
||||||
vis bText1,0
|
vis bText1,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
}
|
}
|
||||||
@@ -523,7 +517,7 @@ Timer tmSerial
|
|||||||
vis btOnOff1,1
|
vis btOnOff1,1
|
||||||
vis bText1,0
|
vis bText1,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
}
|
}
|
||||||
@@ -535,7 +529,7 @@ Timer tmSerial
|
|||||||
bText1.pco=65535
|
bText1.pco=65535
|
||||||
bText1.pco2=65535
|
bText1.pco2=65535
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText1.txt,"~",9
|
spstr strCommand.txt,bText1.txt,"~",20
|
||||||
}
|
}
|
||||||
if(type1.txt=="button")
|
if(type1.txt=="button")
|
||||||
{
|
{
|
||||||
@@ -545,12 +539,12 @@ Timer tmSerial
|
|||||||
bText1.pco=1374
|
bText1.pco=1374
|
||||||
bText1.pco2=1374
|
bText1.pco2=1374
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText1.txt,"~",9
|
spstr strCommand.txt,bText1.txt,"~",20
|
||||||
}
|
}
|
||||||
// get Type
|
// get Type
|
||||||
spstr strCommand.txt,type2.txt,"~",10
|
spstr strCommand.txt,type2.txt,"~",21
|
||||||
// get internal name
|
// get internal name
|
||||||
spstr strCommand.txt,entn2.txt,"~",11
|
spstr strCommand.txt,entn2.txt,"~",22
|
||||||
if(type2.txt=="delete"||type2.txt=="")
|
if(type2.txt=="delete"||type2.txt=="")
|
||||||
{
|
{
|
||||||
vis btOnOff2,0
|
vis btOnOff2,0
|
||||||
@@ -560,14 +554,14 @@ Timer tmSerial
|
|||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon2.txt,"~",12
|
spstr strCommand.txt,tIcon2.txt,"~",23
|
||||||
vis tIcon2,1
|
vis tIcon2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",13
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon2.pco=sys0
|
tIcon2.pco=sys0
|
||||||
// set name
|
// set name
|
||||||
spstr strCommand.txt,tEntity2.txt,"~",14
|
spstr strCommand.txt,tEntity2.txt,"~",25
|
||||||
vis tEntity2,1
|
vis tEntity2,1
|
||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
@@ -575,7 +569,7 @@ Timer tmSerial
|
|||||||
vis btOnOff2,1
|
vis btOnOff2,1
|
||||||
vis bText2,0
|
vis bText2,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff2.val=sys0
|
btOnOff2.val=sys0
|
||||||
}
|
}
|
||||||
@@ -584,7 +578,7 @@ Timer tmSerial
|
|||||||
vis btOnOff2,1
|
vis btOnOff2,1
|
||||||
vis bText2,0
|
vis bText2,0
|
||||||
// get Button State (optional Value)
|
// get Button State (optional Value)
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff2.val=sys0
|
btOnOff2.val=sys0
|
||||||
}
|
}
|
||||||
@@ -596,7 +590,7 @@ Timer tmSerial
|
|||||||
bText2.pco=65535
|
bText2.pco=65535
|
||||||
bText2.pco2=65535
|
bText2.pco2=65535
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText2.txt,"~",15
|
spstr strCommand.txt,bText2.txt,"~",26
|
||||||
}
|
}
|
||||||
if(type2.txt=="button")
|
if(type2.txt=="button")
|
||||||
{
|
{
|
||||||
@@ -606,7 +600,7 @@ Timer tmSerial
|
|||||||
bText2.pco=1374
|
bText2.pco=1374
|
||||||
bText2.pco2=1374
|
bText2.pco2=1374
|
||||||
// get Text (optional Value)
|
// get Text (optional Value)
|
||||||
spstr strCommand.txt,bText2.txt,"~",15
|
spstr strCommand.txt,bText2.txt,"~",26
|
||||||
}
|
}
|
||||||
if(type2.txt=="delete"||type2.txt=="")
|
if(type2.txt=="delete"||type2.txt=="")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user