changed shutter icon command format (add nextion2text)

This commit is contained in:
joBr99
2022-05-22 14:52:30 +00:00
committed by github-actions[bot]
parent 11edb0b358
commit 2bb857c7b6
18 changed files with 442 additions and 338 deletions

View File

@@ -1,6 +1,6 @@
diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
--- HMI/n2t-out/Program.s.txt 2022-05-22 08:56:32.972794177 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-22 08:56:33.488797507 +0000
--- HMI/n2t-out/Program.s.txt 2022-05-22 14:52:29.008661186 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-22 14:52:29.428661127 +0000
@@ -11,6 +11,6 @@
// dim value
int dimValue=40
@@ -11,8 +11,8 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
+ //lcd_dev fffb 0002 0000 0020
page pageStartup
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
--- HMI/n2t-out/cardEntities.txt 2022-05-22 08:56:32.976794203 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-22 08:56:33.492797532 +0000
--- HMI/n2t-out/cardEntities.txt 2022-05-22 14:52:29.008661186 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-22 14:52:29.432661126 +0000
@@ -62,6 +62,16 @@
vis bText4,0
vis hSlider4,0
@@ -297,7 +297,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Hotspot mSwipeNext
Attributes
Scope : local
@@ -1880,6 +2108,166 @@
@@ -1892,6 +2120,169 @@
covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0
}
@@ -341,39 +341,42 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ // get Button State (optional Value)
+ spstr strCommand.txt,tId.txt,"~",32
+ // up button
+ spstr tId.txt,tTmp.txt,"|",0
+ spstr tId.txt,tTmp.txt,"|",3
+ if(tTmp.txt=="disable")
+ {
+ bUp5.pco=27501
+ spstr tId.txt,bUp5.txt,"|",0
+ tsw bUp5,0
+ }else if(tTmp.txt!="")
+ }else if(tTmp.txt=="enable")
+ {
+ bUp5.pco=65535
+ bUp5.txt=tTmp.txt
+ spstr tId.txt,bUp5.txt,"|",0
+ tsw bUp5,1
+ }
+ // stop button
+ spstr tId.txt,tTmp.txt,"|",1
+ spstr tId.txt,tTmp.txt,"|",4
+ if(tTmp.txt=="disable")
+ {
+ bStop5.pco=27501
+ spstr tId.txt,bStop5.txt,"|",1
+ tsw bStop5,0
+ }else if(tTmp.txt!="")
+ }else if(tTmp.txt=="enable")
+ {
+ bStop5.pco=65535
+ bStop5.txt=tTmp.txt
+ spstr tId.txt,bStop5.txt,"|",1
+ tsw bStop5,1
+ }
+ // down button
+ spstr tId.txt,tTmp.txt,"|",2
+ spstr tId.txt,tTmp.txt,"|",5
+ if(tTmp.txt=="disable")
+ {
+ bDown5.pco=27501
+ spstr tId.txt,bDown5.txt,"|",2
+ tsw bDown5,0
+ }else if(tTmp.txt!="")
+ }else if(tTmp.txt=="enable")
+ {
+ bDown5.pco=65535
+ bDown5.txt=tTmp.txt
+ spstr tId.txt,bDown5.txt,"|",2
+ tsw bDown5,1
+ }
+ }
@@ -465,8 +468,8 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
if(tInstruction.txt=="pageType")
{
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
--- HMI/n2t-out/pageStartup.txt 2022-05-22 08:56:32.972794177 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-22 08:56:33.488797507 +0000
--- HMI/n2t-out/pageStartup.txt 2022-05-22 14:52:29.008661186 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-22 14:52:29.432661126 +0000
@@ -142,7 +142,7 @@
Disable release event after dragging: 0
Send Component ID : disabled