icons for shutters are now configurable (add nextion2text)

This commit is contained in:
joBr99
2022-05-22 07:55:05 +00:00
committed by github-actions[bot]
parent 8228ecb6c9
commit bb65a3cc54
18 changed files with 1058 additions and 377 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-21 14:55:46.021052258 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-21 14:55:46.413057465 +0000
--- HMI/n2t-out/Program.s.txt 2022-05-22 07:55:04.215774434 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-22 07:55:04.651779305 +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-21 14:55:46.025052311 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-21 14:55:46.417057518 +0000
--- HMI/n2t-out/cardEntities.txt 2022-05-22 07:55:04.219774478 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-22 07:55:04.651779305 +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
@@ -1816,6 +2044,150 @@
@@ -1876,6 +2104,165 @@
covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0
}
@@ -340,25 +340,40 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ vis nNum5,0
+ // get Button State (optional Value)
+ spstr strCommand.txt,tId.txt,"~",32
+ // up button
+ spstr tId.txt,tTmp.txt,"|",0
+ if(tTmp.txt=="0")
+ {
+ bUp5.pco=27501
+ tsw bUp5,0
+ }else
+ if(tTmp.txt!="")
+ {
+ bUp5.pco=65535
+ tsw bUp5,1
+ }else if(tTmp.txt!="disable")
+ {
+ bUp5.pco=27501
+ tsw bUp5,0
+ }
+ // stop button
+ spstr tId.txt,tTmp.txt,"|",1
+ if(tTmp.txt=="0")
+ if(tTmp.txt!="")
+ {
+ bStop5.pco=65535
+ bStop5.txt=tTmp.txt
+ tsw bStop5,1
+ }else if(tTmp.txt!="disable")
+ {
+ bStop5.pco=27501
+ tsw bStop5,0
+ }
+ // down button
+ spstr tId.txt,tTmp.txt,"|",2
+ if(tTmp.txt!="")
+ {
+ bDown5.pco=65535
+ bDown5.txt=tTmp.txt
+ tsw bDown5,1
+ }else if(tTmp.txt!="disable")
+ {
+ bDown5.pco=27501
+ tsw bDown5,0
+ }else
+ {
+ bDown5.pco=65535
+ tsw bDown5,1
+ }
+ }
+ if(type5.txt=="light")
@@ -449,8 +464,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-21 14:55:46.025052311 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-21 14:55:46.413057465 +0000
--- HMI/n2t-out/pageStartup.txt 2022-05-22 07:55:04.215774434 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-22 07:55:04.651779305 +0000
@@ -142,7 +142,7 @@
Disable release event after dragging: 0
Send Component ID : disabled