Update card-power.md (add nextion2text)

This commit is contained in:
joBr99
2023-01-22 12:30:09 +00:00
committed by github-actions[bot]
parent 9bc87dea7d
commit 8ee0db1797
29 changed files with 2497 additions and 1791 deletions

View File

@@ -1,20 +1,5 @@
--- HMI/n2t-out
+++ HMI/US/portrait/n2t-out
├── file list
│ @@ -1,13 +1,12 @@
│ Program.s.txt
│ cardAlarm.txt
│ cardChart.txt
│ cardEntities.txt
│ cardGrid.txt
│ -cardLChart.txt
│ cardMedia.txt
│ cardPower.txt
│ cardQR.txt
│ cardThermo.txt
│ pageIcons.txt
│ pageStartup.txt
│ pageTest.txt
│ --- HMI/n2t-out/Program.s.txt
├── +++ HMI/US/portrait/n2t-out/Program.s.txt
│ @@ -10,10 +10,10 @@
@@ -49,401 +34,6 @@
│ //b[sys0].pco=defaultFontColor
│ }
│ }
│ @@ -123,24 +123,14 @@
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
│ Max. Text Size : 10
│ -Text tHeading
│ - Attributes
│ - Scope : local
│ - Dragging : 0
│ - Disable release event after dragging: 0
│ - Send Component ID : disabled
│ - Associated Keyboard : none
│ - Text :
│ - Max. Text Size : 40
│ -
│ Text tIcon
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -313,176 +303,154 @@
│ State : unpressed
│ Text : 1
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"1"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b1
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 2
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"2"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b10
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 0
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"0"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b11
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : CLR
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=""
│ - vis tCode,1
│ - vis tHeading,0
│ Button b2
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 3
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"3"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b3
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 4
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"4"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b4
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 5
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"5"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b5
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 6
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"6"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b6
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 7
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"7"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b7
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 8
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"8"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b8
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ Text : 9
│ Max. Text Size : 10
│ Events
│ Touch Press Event
│ tCode.txt=tCode.txt+"9"
│ - vis tCode,1
│ - vis tHeading,0
│ Button b9
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -665,26 +633,15 @@
│ // write command to variable strCommand
│ ucopy strCommand.txt,4,payloadLength-5,0
│ // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
│ spstr strCommand.txt,tInstruction.txt,"~",0
│ if(tInstruction.txt=="entityUpd")
│ {
│ //entn
│ - spstr strCommand.txt,tHeading.txt,"~",1
│ - if(tHeading.txt=="unknown")
│ - {
│ - tHeading.txt=""
│ - }
│ - if(tHeading.txt!="")
│ - {
│ - vis tHeading,1
│ - }else
│ - {
│ - vis tHeading,0
│ - }
│ + spstr strCommand.txt,entn.txt,"~",1
│ // navigation icon left
│ spstr strCommand.txt,tTmp.txt,"~",2 //type
│ if(tTmp.txt=="delete"||tTmp.txt=="")
│ {
│ vis bPrev,0
│ }else
│ {
│ @@ -711,77 +668,69 @@
│ 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
│ }
│ - //entn
│ - spstr strCommand.txt,entn.txt,"~",14
│ //text arm1
│ - spstr strCommand.txt,arm1.txt,"~",15
│ + spstr strCommand.txt,arm1.txt,"~",14
│ if(arm1.txt!="")
│ {
│ vis arm1,1
│ }
│ //id arm1
│ - spstr strCommand.txt,va1.txt,"~",16
│ + spstr strCommand.txt,va1.txt,"~",15
│ //text arm2
│ - spstr strCommand.txt,arm2.txt,"~",17
│ + spstr strCommand.txt,arm2.txt,"~",16
│ if(arm2.txt!="")
│ {
│ vis arm2,1
│ }
│ //id arm2
│ - spstr strCommand.txt,va2.txt,"~",18
│ + spstr strCommand.txt,va2.txt,"~",17
│ //text arm3
│ - spstr strCommand.txt,arm3.txt,"~",19
│ + spstr strCommand.txt,arm3.txt,"~",18
│ if(arm3.txt!="")
│ {
│ vis arm3,1
│ }
│ //id arm3
│ - spstr strCommand.txt,va3.txt,"~",20
│ + spstr strCommand.txt,va3.txt,"~",19
│ //text arm4
│ - spstr strCommand.txt,arm4.txt,"~",21
│ + spstr strCommand.txt,arm4.txt,"~",20
│ if(arm4.txt!="")
│ {
│ vis arm4,1
│ }
│ //id arm4
│ - spstr strCommand.txt,va4.txt,"~",22
│ + spstr strCommand.txt,va4.txt,"~",21
│ //icon
│ - spstr strCommand.txt,tIcon.txt,"~",23
│ + spstr strCommand.txt,tIcon.txt,"~",22
│ //icon color
│ - spstr strCommand.txt,tTmp.txt,"~",24
│ + spstr strCommand.txt,tTmp.txt,"~",23
│ covx tTmp.txt,sys0,0,0
│ tIcon.pco=sys0
│ //numpad status
│ - spstr strCommand.txt,tTmp.txt,"~",25
│ + spstr strCommand.txt,tTmp.txt,"~",24
│ if(tTmp.txt!="disable")
│ {
│ vis b0,1
│ vis b1,1
│ vis b2,1
│ vis b3,1
│ vis b4,1
│ vis b5,1
│ vis b6,1
│ vis b7,1
│ vis b8,1
│ vis b9,1
│ vis b10,1
│ vis b11,1
│ - if(tHeading.txt!="")
│ - {
│ - vis tCode,0
│ - }else
│ - {
│ - vis tCode,1
│ - }
│ + vis tCode,1
│ }else
│ {
│ vis b0,0
│ vis b1,0
│ vis b2,0
│ vis b3,0
│ vis b4,0
│ @@ -791,30 +740,30 @@
│ vis b8,0
│ vis b9,0
│ vis b10,0
│ vis b11,0
│ vis tCode,0
│ }
│ //flashing status
│ - spstr strCommand.txt,tTmp.txt,"~",26
│ + spstr strCommand.txt,tTmp.txt,"~",25
│ if(tTmp.txt=="enable")
│ {
│ tmFlash.en=1
│ }else
│ {
│ tmFlash.en=0
│ }
│ // extra button
│ - spstr strCommand.txt,b9.txt,"~",27
│ + spstr strCommand.txt,b9.txt,"~",26
│ if(b9.txt!="")
│ {
│ vis b9,1
│ - spstr strCommand.txt,tTmp.txt,"~",28
│ + spstr strCommand.txt,tTmp.txt,"~",27
│ covx tTmp.txt,b9.pco,0,0
│ - spstr strCommand.txt,vaAddBtn.txt,"~",29
│ + spstr strCommand.txt,vaAddBtn.txt,"~",28
│ }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ @@ -915,18 +864,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ // end of user code
│ udelete payloadLength-1
│ bufferPos=0
│ }
│ }
│ }
│ --- HMI/n2t-out/cardChart.txt
├── +++ HMI/US/portrait/n2t-out/cardChart.txt
│ @@ -681,18 +681,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ // end of user code
│ udelete payloadLength-1
│ bufferPos=0
│ }
│ }
│ }
│ --- HMI/n2t-out/cardEntities.txt
├── +++ HMI/US/portrait/n2t-out/cardEntities.txt
│ @@ -61,16 +61,36 @@
@@ -1476,67 +1066,6 @@
│ //command format pageType,specialPageName
│ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1
│ @@ -1931,18 +2711,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
│ --- HMI/n2t-out/cardGrid.txt
├── +++ HMI/US/portrait/n2t-out/cardGrid.txt
│ @@ -916,18 +916,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
│ --- HMI/n2t-out/cardMedia.txt
├── +++ HMI/US/portrait/n2t-out/cardMedia.txt
│ @@ -1200,18 +1200,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
│ --- HMI/n2t-out/cardPower.txt
├── +++ HMI/US/portrait/n2t-out/cardPower.txt
│ @@ -35,15 +35,15 @@
@@ -1556,44 +1085,34 @@
│ b[sys0].pco=defaultFontColor
│ }
│ if(defaultBcoColor==0)
│ @@ -275,109 +275,79 @@
│ @@ -283,15 +283,15 @@
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
Max. Text Size : 20
- Max. Text Size : 10
│ + Max. Text Size : 20
-Text tHome2
- Attributes
- Scope : local
- Dragging : 0
- Disable release event after dragging: 0
- Send Component ID : disabled
- Associated Keyboard : none
- Text :
Text tHomeO
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
@@ -303,81 +303,81 @@
Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
│ - Max. Text Size : 10
-
-Text tHomeO
│ - Attributes
│ - Scope : local
│ - Dragging : 0
│ - Disable release event after dragging: 0
│ - Send Component ID : disabled
│ - Associated Keyboard : none
│ - Text :
│ - Max. Text Size : 20
│ -
│ -Text tHomeO2
│ - Attributes
│ - Scope : local
│ - Dragging : 0
│ - Disable release event after dragging: 0
│ - Send Component ID : disabled
│ - Associated Keyboard : none
│ - Text :
│ - Max. Text Size : 10
│ -
+ Max. Text Size : 20
│ Picture p0
│ Attributes
│ Scope : local
@@ -1678,7 +1197,7 @@
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ @@ -463,92 +433,74 @@
│ @@ -463,92 +463,74 @@
│ Attributes
│ Scope : local
│ Period (ms): 100
@@ -1790,7 +1309,7 @@
│ + if(sys0<h3.minval)
│ + {
│ + h3.val=h3.maxval
}
+ }
│ + h3.val+=t3Speed.val
│ + sys0=h4.val+t4Speed.val
│ + if(sys0>h4.maxval)
@@ -1810,7 +1329,7 @@
│ + if(sys0<h5.minval)
│ + {
│ + h5.val=h5.maxval
+ }
}
│ + h5.val+=t5Speed.val
│ Timer tmSerial
@@ -1818,222 +1337,6 @@
│ Scope : local
│ Period (ms): 50
│ Enabled : yes
│ @@ -636,189 +588,131 @@
│ vis bNext,1
│ }
│ // icon color home
│ spstr strCommand.txt,tTmp.txt,"~",14
│ covx tTmp.txt,t1.pco,0,0
│ // icon home
│ spstr strCommand.txt,t1.txt,"~",15
│ - // speed 16 ignored
│ - // text home
│ - spstr strCommand.txt,tHome.txt,"~",17
│ - spstr tHome.txt,tHome2.txt," ",1
│ - spstr tHome.txt,tHome.txt," ",0
│ - // icon color 18 ignored
│ - // icon 19 ignored
│ - // speed 20 ignored
│ // text home
│ - spstr strCommand.txt,tHomeO.txt,"~",21
│ - spstr tHomeO.txt,tHomeO2.txt," ",1
│ - spstr tHomeO.txt,tHomeO.txt," ",0
│ + spstr strCommand.txt,tHome.txt,"~",16
│ // iconColor
│ - spstr strCommand.txt,tTmp.txt,"~",22
│ + spstr strCommand.txt,tTmp.txt,"~",17
│ covx tTmp.txt,t0Icon.pco,0,0
│ // icon
│ - spstr strCommand.txt,t0Icon.txt,"~",23
│ + spstr strCommand.txt,t0Icon.txt,"~",18
│ // speed
│ - spstr strCommand.txt,tTmp.txt,"~",24
│ + spstr strCommand.txt,tTmp.txt,"~",19
│ covx tTmp.txt,t0Speed.val,0,0
│ - if(t0Speed.val>120)
│ - {
│ - t0Speed.val=120
│ - }
│ - if(t0Speed.val<-120)
│ - {
│ - t0Speed.val=-120
│ - }
│ // lower text
│ - spstr strCommand.txt,t0u.txt,"~",25
│ + spstr strCommand.txt,t0u.txt,"~",20
│ if(t0Icon.txt!="")
│ {
│ vis t0Icon,1
│ vis t0u,1
│ vis h0,1
│ }else
│ {
│ vis t0Icon,0
│ vis t0u,0
│ vis h0,0
│ }
│ // iconColor
│ - spstr strCommand.txt,tTmp.txt,"~",26
│ + spstr strCommand.txt,tTmp.txt,"~",21
│ covx tTmp.txt,t1Icon.pco,0,0
│ // icon
│ - spstr strCommand.txt,t1Icon.txt,"~",27
│ + spstr strCommand.txt,t1Icon.txt,"~",22
│ // speed
│ - spstr strCommand.txt,tTmp.txt,"~",28
│ + spstr strCommand.txt,tTmp.txt,"~",23
│ covx tTmp.txt,t1Speed.val,0,0
│ - if(t1Speed.val>120)
│ - {
│ - t1Speed.val=120
│ - }
│ - if(t1Speed.val<-120)
│ - {
│ - t1Speed.val=-120
│ - }
│ // lower text
│ - spstr strCommand.txt,t1u.txt,"~",29
│ + spstr strCommand.txt,t1u.txt,"~",24
│ if(t1Icon.txt!="")
│ {
│ vis t1Icon,1
│ vis t1u,1
│ vis h1,1
│ }else
│ {
│ vis t1Icon,0
│ vis t1u,0
│ vis h1,0
│ }
│ // iconColor
│ - spstr strCommand.txt,tTmp.txt,"~",30
│ + spstr strCommand.txt,tTmp.txt,"~",25
│ covx tTmp.txt,t2Icon.pco,0,0
│ // icon
│ - spstr strCommand.txt,t2Icon.txt,"~",31
│ + spstr strCommand.txt,t2Icon.txt,"~",26
│ // speed
│ - spstr strCommand.txt,tTmp.txt,"~",32
│ + spstr strCommand.txt,tTmp.txt,"~",27
│ covx tTmp.txt,t2Speed.val,0,0
│ - if(t2Speed.val>120)
│ - {
│ - t2Speed.val=120
│ - }
│ - if(t2Speed.val<-120)
│ - {
│ - t2Speed.val=-120
│ - }
│ // lower text
│ - spstr strCommand.txt,t2u.txt,"~",33
│ + spstr strCommand.txt,t2u.txt,"~",28
│ if(t2Icon.txt!="")
│ {
│ vis t2Icon,1
│ vis t2u,1
│ vis h2,1
│ }else
│ {
│ vis t2Icon,0
│ vis t2u,0
│ vis h2,0
│ }
│ // iconColor
│ - spstr strCommand.txt,tTmp.txt,"~",34
│ + spstr strCommand.txt,tTmp.txt,"~",29
│ covx tTmp.txt,t3Icon.pco,0,0
│ // icon
│ - spstr strCommand.txt,t3Icon.txt,"~",35
│ + spstr strCommand.txt,t3Icon.txt,"~",30
│ // speed
│ - spstr strCommand.txt,tTmp.txt,"~",36
│ + spstr strCommand.txt,tTmp.txt,"~",31
│ covx tTmp.txt,t3Speed.val,0,0
│ - if(t3Speed.val>120)
│ - {
│ - t3Speed.val=120
│ - }
│ - if(t3Speed.val<-120)
│ - {
│ - t3Speed.val=-120
│ - }
│ // lower text
│ - spstr strCommand.txt,t3u.txt,"~",37
│ + spstr strCommand.txt,t3u.txt,"~",32
│ if(t3Icon.txt!="")
│ {
│ vis t3Icon,1
│ vis t3u,1
│ vis h3,1
│ }else
│ {
│ vis t3Icon,0
│ vis t3u,0
│ vis h3,0
│ }
│ // iconColor
│ - spstr strCommand.txt,tTmp.txt,"~",38
│ + spstr strCommand.txt,tTmp.txt,"~",33
│ covx tTmp.txt,t4Icon.pco,0,0
│ // icon
│ - spstr strCommand.txt,t4Icon.txt,"~",39
│ + spstr strCommand.txt,t4Icon.txt,"~",34
│ // speed
│ - spstr strCommand.txt,tTmp.txt,"~",40
│ + spstr strCommand.txt,tTmp.txt,"~",35
│ covx tTmp.txt,t4Speed.val,0,0
│ - if(t4Speed.val>120)
│ - {
│ - t4Speed.val=120
│ - }
│ - if(t4Speed.val<-120)
│ - {
│ - t4Speed.val=-120
│ - }
│ // lower text
│ - spstr strCommand.txt,t4u.txt,"~",41
│ + spstr strCommand.txt,t4u.txt,"~",36
│ if(t4Icon.txt!="")
│ {
│ vis t4Icon,1
│ vis t4u,1
│ vis h4,1
│ }else
│ {
│ vis t4Icon,0
│ vis t4u,0
│ vis h4,0
│ }
│ // iconColor
│ - spstr strCommand.txt,tTmp.txt,"~",42
│ + spstr strCommand.txt,tTmp.txt,"~",37
│ covx tTmp.txt,t5Icon.pco,0,0
│ // icon
│ - spstr strCommand.txt,t5Icon.txt,"~",43
│ + spstr strCommand.txt,t5Icon.txt,"~",38
│ // speed
│ - spstr strCommand.txt,tTmp.txt,"~",44
│ + spstr strCommand.txt,tTmp.txt,"~",39
│ covx tTmp.txt,t5Speed.val,0,0
│ - if(t5Speed.val>120)
│ - {
│ - t5Speed.val=120
│ - }
│ - if(t5Speed.val<-120)
│ - {
│ - t5Speed.val=-120
│ - }
│ // lower text
│ - spstr strCommand.txt,t5u.txt,"~",45
│ + spstr strCommand.txt,t5u.txt,"~",40
│ if(t5Icon.txt!="")
│ {
│ vis t5Icon,1
│ vis t5u,1
│ vis h5,1
│ }else
│ {
│ --- HMI/n2t-out/cardQR.txt
├── +++ HMI/US/portrait/n2t-out/cardQR.txt
│ @@ -602,19 +602,19 @@
@@ -2058,46 +1361,6 @@
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ @@ -715,18 +715,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ // end of user code
│ udelete payloadLength-1
│ bufferPos=0
│ }
│ }
│ }
│ --- HMI/n2t-out/cardThermo.txt
├── +++ HMI/US/portrait/n2t-out/cardThermo.txt
│ @@ -1117,18 +1117,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
│ @@ -35,20 +35,14 @@
@@ -2172,25 +1435,6 @@
│ crcputs sys0,2
│ crcputs tSend.txt,0
│ //send cmd
│ @@ -366,18 +360,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ // end of user code
│ udelete payloadLength-1
│ bufferPos=0
│ }
│ }
│ }
│ --- HMI/n2t-out/screensaver.txt
├── +++ HMI/US/portrait/n2t-out/screensaver.txt
│ @@ -29,28 +29,19 @@
@@ -2259,25 +1503,38 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -401,14 +371,21 @@
Picture p0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
+Hotspot m0
+ Attributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+
Timer tm0
Attributes
Scope : local
Period (ms): 50
Enabled : yes
Events
│ @@ -494,15 +464,14 @@
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="time")
{
- click m0,1
//get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="")
{
vis tAMPM,0
@@ -788,14 +757,18 @@
{
page cardPower
}
if(tId.txt=="cardChart")
{
│ page cardChart
│ }
│ + if(tId.txt=="cardLChart")
│ + {
│ + page cardLChart
│ + }
│ }
│ if(tInstruction.txt=="timeout")
│ {
│ //set timeout to global var
│ spstr strCommand.txt,tTmp.txt,"~",1
│ covx tTmp.txt,sleepTimeout,0,0
│ }