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/landscape/n2t-out/Program.s.txt diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
--- HMI/n2t-out/Program.s.txt 2022-05-21 14:55:46.021052258 +0000 --- HMI/n2t-out/Program.s.txt 2022-05-22 07:55:04.215774434 +0000
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-21 14:55:46.849063256 +0000 +++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-22 07:55:05.103784355 +0000
@@ -11,6 +11,4 @@ @@ -11,6 +11,4 @@
// dim value // dim value
int dimValue=40 int dimValue=40
@@ -9,8 +9,8 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
- lcd_dev fffb 0002 0000 0020 - lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
--- HMI/n2t-out/pageStartup.txt 2022-05-21 14:55:46.025052311 +0000 --- HMI/n2t-out/pageStartup.txt 2022-05-22 07:55:04.215774434 +0000
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-21 14:55:46.849063256 +0000 +++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-22 07:55:05.107784400 +0000
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
recmod=1 recmod=1
bauds=115200 bauds=115200

View File

@@ -2251,25 +2251,40 @@ Timer tmSerial
vis nNum1,0 vis nNum1,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8 spstr strCommand.txt,tId.txt,"~",8
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp1.pco=27501
tsw bUp1,0
}else
{ {
bUp1.pco=65535 bUp1.pco=65535
tsw bUp1,1 tsw bUp1,1
}else if(tTmp.txt!="disable")
{
bUp1.pco=27501
tsw bUp1,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop1.pco=65535
bStop1.txt=tTmp.txt
tsw bStop1,1
}else if(tTmp.txt!="disable")
{
bStop1.pco=27501
tsw bStop1,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown1.pco=65535
bDown1.txt=tTmp.txt
tsw bDown1,1
}else if(tTmp.txt!="disable")
{ {
bDown1.pco=27501 bDown1.pco=27501
tsw bDown1,0 tsw bDown1,0
}else
{
bDown1.pco=65535
tsw bDown1,1
} }
} }
if(type1.txt=="light") if(type1.txt=="light")
@@ -2395,25 +2410,40 @@ Timer tmSerial
vis nNum2,0 vis nNum2,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14 spstr strCommand.txt,tId.txt,"~",14
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp2.pco=27501
tsw bUp2,0
}else
{ {
bUp2.pco=65535 bUp2.pco=65535
tsw bUp2,1 tsw bUp2,1
}else if(tTmp.txt!="disable")
{
bUp2.pco=27501
tsw bUp2,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop2.pco=65535
bStop2.txt=tTmp.txt
tsw bStop2,1
}else if(tTmp.txt!="disable")
{
bStop2.pco=27501
tsw bStop2,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown2.pco=65535
bDown2.txt=tTmp.txt
tsw bDown2,1
}else if(tTmp.txt!="disable")
{ {
bDown2.pco=27501 bDown2.pco=27501
tsw bDown2,0 tsw bDown2,0
}else
{
bDown2.pco=65535
tsw bDown2,1
} }
} }
if(type2.txt=="light") if(type2.txt=="light")
@@ -2539,25 +2569,40 @@ Timer tmSerial
vis nNum3,0 vis nNum3,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20 spstr strCommand.txt,tId.txt,"~",20
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp3.pco=27501
tsw bUp3,0
}else
{ {
bUp3.pco=65535 bUp3.pco=65535
tsw bUp3,1 tsw bUp3,1
}else if(tTmp.txt!="disable")
{
bUp3.pco=27501
tsw bUp3,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop3.pco=65535
bStop3.txt=tTmp.txt
tsw bStop3,1
}else if(tTmp.txt!="disable")
{
bStop3.pco=27501
tsw bStop3,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown3.pco=65535
bDown3.txt=tTmp.txt
tsw bDown3,1
}else if(tTmp.txt!="disable")
{ {
bDown3.pco=27501 bDown3.pco=27501
tsw bDown3,0 tsw bDown3,0
}else
{
bDown3.pco=65535
tsw bDown3,1
} }
} }
if(type3.txt=="light") if(type3.txt=="light")
@@ -2683,25 +2728,40 @@ Timer tmSerial
vis nNum4,0 vis nNum4,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26 spstr strCommand.txt,tId.txt,"~",26
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp4.pco=27501
tsw bUp4,0
}else
{ {
bUp4.pco=65535 bUp4.pco=65535
tsw bUp4,1 tsw bUp4,1
}else if(tTmp.txt!="disable")
{
bUp4.pco=27501
tsw bUp4,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop4.pco=65535
bStop4.txt=tTmp.txt
tsw bStop4,1
}else if(tTmp.txt!="disable")
{
bStop4.pco=27501
tsw bStop4,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown4.pco=65535
bDown4.txt=tTmp.txt
tsw bDown4,1
}else if(tTmp.txt!="disable")
{ {
bDown4.pco=27501 bDown4.pco=27501
tsw bDown4,0 tsw bDown4,0
}else
{
bDown4.pco=65535
tsw bDown4,1
} }
} }
if(type4.txt=="light") if(type4.txt=="light")

View File

@@ -28,8 +28,8 @@ cardAlarm
224 Unique line(s) of event code 224 Unique line(s) of event code
popupShutter popupShutter
20 Component(s) 20 Component(s)
197 Line(s) of event code 241 Line(s) of event code
111 Unique line(s) of event code 138 Unique line(s) of event code
popupLight popupLight
27 Component(s) 27 Component(s)
345 Line(s) of event code 345 Line(s) of event code
@@ -52,11 +52,11 @@ cardQR
205 Unique line(s) of event code 205 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1069 Line(s) of event code 1117 Line(s) of event code
462 Unique line(s) of event code 487 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
402 Component(s) 402 Component(s)
4347 Line(s) of event code 4439 Line(s) of event code
1117 Unique line(s) of event code 1163 Unique line(s) of event code

View File

@@ -624,12 +624,63 @@ Timer tmSerial
{ {
// get Position value // get Position value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sys0,0,0 if(tTmp.txt=="disable")
hPosition.val=sys0 {
vis tPosHeading,0
vis hPosition,0
}else
{
covx tTmp.txt,sys0,0,0
hPosition.val=sys0
vis tPosHeading,1
vis hPosition,1
}
// set tinfo1 text // set tinfo1 text
spstr strCommand.txt,tInfo1.txt,"~",2 spstr strCommand.txt,tInfo1.txt,"~",2
// set tPosHeading (localization) // set tPosHeading (localization)
spstr strCommand.txt,tPosHeading.txt,"~",3 spstr strCommand.txt,tPosHeading.txt,"~",3
// set tIcon1
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -722,15 +773,6 @@ Timer tmSerial
// next character // next character
bufferPos++ bufferPos++
} }
if(bufferPos==usize)
{
// copy whole buffer to t1.txt, for debugging
//ucopy t2.txt,0,usize,0
// ucopy n2.val,0,usize,0
// clear whole buffer
//code_c
//bufferPos=0
}
} }
TouchCap tc0 TouchCap tc0

View File

@@ -1279,25 +1279,40 @@ Timer tmSerial
vis nNum1,0 vis nNum1,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8 spstr strCommand.txt,tId.txt,"~",8
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp1.pco=27501
tsw bUp1,0
}else
{ {
bUp1.pco=65535 bUp1.pco=65535
tsw bUp1,1 tsw bUp1,1
}else if(tTmp.txt!="disable")
{
bUp1.pco=27501
tsw bUp1,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop1.pco=65535
bStop1.txt=tTmp.txt
tsw bStop1,1
}else if(tTmp.txt!="disable")
{
bStop1.pco=27501
tsw bStop1,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown1.pco=65535
bDown1.txt=tTmp.txt
tsw bDown1,1
}else if(tTmp.txt!="disable")
{ {
bDown1.pco=27501 bDown1.pco=27501
tsw bDown1,0 tsw bDown1,0
}else
{
bDown1.pco=65535
tsw bDown1,1
} }
} }
if(type1.txt=="light") if(type1.txt=="light")
@@ -1423,25 +1438,40 @@ Timer tmSerial
vis nNum2,0 vis nNum2,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14 spstr strCommand.txt,tId.txt,"~",14
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp2.pco=27501
tsw bUp2,0
}else
{ {
bUp2.pco=65535 bUp2.pco=65535
tsw bUp2,1 tsw bUp2,1
}else if(tTmp.txt!="disable")
{
bUp2.pco=27501
tsw bUp2,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop2.pco=65535
bStop2.txt=tTmp.txt
tsw bStop2,1
}else if(tTmp.txt!="disable")
{
bStop2.pco=27501
tsw bStop2,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown2.pco=65535
bDown2.txt=tTmp.txt
tsw bDown2,1
}else if(tTmp.txt!="disable")
{ {
bDown2.pco=27501 bDown2.pco=27501
tsw bDown2,0 tsw bDown2,0
}else
{
bDown2.pco=65535
tsw bDown2,1
} }
} }
if(type2.txt=="light") if(type2.txt=="light")
@@ -1567,25 +1597,40 @@ Timer tmSerial
vis nNum3,0 vis nNum3,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20 spstr strCommand.txt,tId.txt,"~",20
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp3.pco=27501
tsw bUp3,0
}else
{ {
bUp3.pco=65535 bUp3.pco=65535
tsw bUp3,1 tsw bUp3,1
}else if(tTmp.txt!="disable")
{
bUp3.pco=27501
tsw bUp3,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop3.pco=65535
bStop3.txt=tTmp.txt
tsw bStop3,1
}else if(tTmp.txt!="disable")
{
bStop3.pco=27501
tsw bStop3,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown3.pco=65535
bDown3.txt=tTmp.txt
tsw bDown3,1
}else if(tTmp.txt!="disable")
{ {
bDown3.pco=27501 bDown3.pco=27501
tsw bDown3,0 tsw bDown3,0
}else
{
bDown3.pco=65535
tsw bDown3,1
} }
} }
if(type3.txt=="light") if(type3.txt=="light")
@@ -1711,25 +1756,40 @@ Timer tmSerial
vis nNum4,0 vis nNum4,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26 spstr strCommand.txt,tId.txt,"~",26
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp4.pco=27501
tsw bUp4,0
}else
{ {
bUp4.pco=65535 bUp4.pco=65535
tsw bUp4,1 tsw bUp4,1
}else if(tTmp.txt!="disable")
{
bUp4.pco=27501
tsw bUp4,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop4.pco=65535
bStop4.txt=tTmp.txt
tsw bStop4,1
}else if(tTmp.txt!="disable")
{
bStop4.pco=27501
tsw bStop4,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown4.pco=65535
bDown4.txt=tTmp.txt
tsw bDown4,1
}else if(tTmp.txt!="disable")
{ {
bDown4.pco=27501 bDown4.pco=27501
tsw bDown4,0 tsw bDown4,0
}else
{
bDown4.pco=65535
tsw bDown4,1
} }
} }
if(type4.txt=="light") if(type4.txt=="light")

View File

@@ -339,12 +339,63 @@ Timer tmSerial
{ {
// get Position value // get Position value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sys0,0,0 if(tTmp.txt=="disable")
hPosition.val=sys0 {
vis tPosHeading,0
vis hPosition,0
}else
{
covx tTmp.txt,sys0,0,0
hPosition.val=sys0
vis tPosHeading,1
vis hPosition,1
}
// set tinfo1 text // set tinfo1 text
spstr strCommand.txt,tInfo1.txt,"~",2 spstr strCommand.txt,tInfo1.txt,"~",2
// set tPosHeading (localization) // set tPosHeading (localization)
spstr strCommand.txt,tPosHeading.txt,"~",3 spstr strCommand.txt,tPosHeading.txt,"~",3
// set tIcon1
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -437,15 +488,6 @@ Timer tmSerial
// next character // next character
bufferPos++ bufferPos++
} }
if(bufferPos==usize)
{
// copy whole buffer to t1.txt, for debugging
//ucopy t2.txt,0,usize,0
// ucopy n2.val,0,usize,0
// clear whole buffer
//code_c
//bufferPos=0
}
} }
TouchCap tc0 TouchCap tc0

View File

@@ -1,6 +1,6 @@
diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt 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/n2t-out/Program.s.txt 2022-05-22 07:55:04.215774434 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-21 14:55:46.413057465 +0000 +++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-22 07:55:04.651779305 +0000
@@ -11,6 +11,6 @@ @@ -11,6 +11,6 @@
// dim value // dim value
int dimValue=40 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 + //lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt 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/n2t-out/cardEntities.txt 2022-05-22 07:55:04.219774478 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-21 14:55:46.417057518 +0000 +++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-22 07:55:04.651779305 +0000
@@ -62,6 +62,16 @@ @@ -62,6 +62,16 @@
vis bText4,0 vis bText4,0
vis hSlider4,0 vis hSlider4,0
@@ -297,7 +297,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
Scope : local Scope : local
@@ -1816,6 +2044,150 @@ @@ -1876,6 +2104,165 @@
covx tTmp.txt,sys0,0,0 covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0 hSlider4.maxval=sys0
} }
@@ -340,25 +340,40 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ vis nNum5,0 + vis nNum5,0
+ // get Button State (optional Value) + // get Button State (optional Value)
+ spstr strCommand.txt,tId.txt,"~",32 + spstr strCommand.txt,tId.txt,"~",32
+ // up button
+ spstr tId.txt,tTmp.txt,"|",0 + spstr tId.txt,tTmp.txt,"|",0
+ if(tTmp.txt=="0") + if(tTmp.txt!="")
+ {
+ bUp5.pco=27501
+ tsw bUp5,0
+ }else
+ { + {
+ bUp5.pco=65535 + bUp5.pco=65535
+ tsw bUp5,1 + tsw bUp5,1
+ }else if(tTmp.txt!="disable")
+ {
+ bUp5.pco=27501
+ tsw bUp5,0
+ } + }
+ // stop button
+ spstr tId.txt,tTmp.txt,"|",1 + 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 + bDown5.pco=27501
+ tsw bDown5,0 + tsw bDown5,0
+ }else
+ {
+ bDown5.pco=65535
+ tsw bDown5,1
+ } + }
+ } + }
+ if(type5.txt=="light") + 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") if(tInstruction.txt=="pageType")
{ {
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt 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/n2t-out/pageStartup.txt 2022-05-22 07:55:04.215774434 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-21 14:55:46.413057465 +0000 +++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-22 07:55:04.651779305 +0000
@@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled

View File

@@ -1,10 +1,34 @@
+++ HMI/US/portrait/diff-eu-version.txt 2022-05-21 14:55:46.457058049 +0000 +++ HMI/US/portrait/diff-eu-version.txt 2022-05-22 07:55:04.663779439 +0000
+--- HMI/n2t-out/Program.s.txt 2022-05-21 14:55:46.021052258 +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-21 14:55:46.413057465 +0000 ++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-22 07:55:04.651779305 +0000
+--- HMI/n2t-out/cardEntities.txt 2022-05-21 14:55:46.025052311 +0000 +--- HMI/n2t-out/cardEntities.txt 2022-05-22 07:55:04.219774478 +0000
++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-21 14:55:46.417057518 +0000 ++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-22 07:55:04.651779305 +0000
+ Hotspot mSwipeNext + Hotspot mSwipeNext
+ Scope : local + Scope : local
+@@ -1816,6 +2044,150 @@ +@@ -1876,6 +2104,165 @@
+--- HMI/n2t-out/pageStartup.txt 2022-05-21 14:55:46.025052311 +0000 ++ // up button
++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-21 14:55:46.413057465 +0000 ++ if(tTmp.txt!="")
++ }else if(tTmp.txt!="disable")
++ {
++ bUp5.pco=27501
++ tsw bUp5,0
++ // stop button
++ 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.txt=tTmp.txt
++ }else if(tTmp.txt!="disable")
++ {
++ bDown5.pco=27501
++ tsw bDown5,0
+--- 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

View File

@@ -2672,25 +2672,40 @@ Timer tmSerial
vis nNum1,0 vis nNum1,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8 spstr strCommand.txt,tId.txt,"~",8
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp1.pco=27501
tsw bUp1,0
}else
{ {
bUp1.pco=65535 bUp1.pco=65535
tsw bUp1,1 tsw bUp1,1
}else if(tTmp.txt!="disable")
{
bUp1.pco=27501
tsw bUp1,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop1.pco=65535
bStop1.txt=tTmp.txt
tsw bStop1,1
}else if(tTmp.txt!="disable")
{
bStop1.pco=27501
tsw bStop1,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown1.pco=65535
bDown1.txt=tTmp.txt
tsw bDown1,1
}else if(tTmp.txt!="disable")
{ {
bDown1.pco=27501 bDown1.pco=27501
tsw bDown1,0 tsw bDown1,0
}else
{
bDown1.pco=65535
tsw bDown1,1
} }
} }
if(type1.txt=="light") if(type1.txt=="light")
@@ -2816,25 +2831,40 @@ Timer tmSerial
vis nNum2,0 vis nNum2,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14 spstr strCommand.txt,tId.txt,"~",14
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp2.pco=27501
tsw bUp2,0
}else
{ {
bUp2.pco=65535 bUp2.pco=65535
tsw bUp2,1 tsw bUp2,1
}else if(tTmp.txt!="disable")
{
bUp2.pco=27501
tsw bUp2,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop2.pco=65535
bStop2.txt=tTmp.txt
tsw bStop2,1
}else if(tTmp.txt!="disable")
{
bStop2.pco=27501
tsw bStop2,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown2.pco=65535
bDown2.txt=tTmp.txt
tsw bDown2,1
}else if(tTmp.txt!="disable")
{ {
bDown2.pco=27501 bDown2.pco=27501
tsw bDown2,0 tsw bDown2,0
}else
{
bDown2.pco=65535
tsw bDown2,1
} }
} }
if(type2.txt=="light") if(type2.txt=="light")
@@ -2960,25 +2990,40 @@ Timer tmSerial
vis nNum3,0 vis nNum3,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20 spstr strCommand.txt,tId.txt,"~",20
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp3.pco=27501
tsw bUp3,0
}else
{ {
bUp3.pco=65535 bUp3.pco=65535
tsw bUp3,1 tsw bUp3,1
}else if(tTmp.txt!="disable")
{
bUp3.pco=27501
tsw bUp3,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop3.pco=65535
bStop3.txt=tTmp.txt
tsw bStop3,1
}else if(tTmp.txt!="disable")
{
bStop3.pco=27501
tsw bStop3,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown3.pco=65535
bDown3.txt=tTmp.txt
tsw bDown3,1
}else if(tTmp.txt!="disable")
{ {
bDown3.pco=27501 bDown3.pco=27501
tsw bDown3,0 tsw bDown3,0
}else
{
bDown3.pco=65535
tsw bDown3,1
} }
} }
if(type3.txt=="light") if(type3.txt=="light")
@@ -3104,25 +3149,40 @@ Timer tmSerial
vis nNum4,0 vis nNum4,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26 spstr strCommand.txt,tId.txt,"~",26
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp4.pco=27501
tsw bUp4,0
}else
{ {
bUp4.pco=65535 bUp4.pco=65535
tsw bUp4,1 tsw bUp4,1
}else if(tTmp.txt!="disable")
{
bUp4.pco=27501
tsw bUp4,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop4.pco=65535
bStop4.txt=tTmp.txt
tsw bStop4,1
}else if(tTmp.txt!="disable")
{
bStop4.pco=27501
tsw bStop4,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown4.pco=65535
bDown4.txt=tTmp.txt
tsw bDown4,1
}else if(tTmp.txt!="disable")
{ {
bDown4.pco=27501 bDown4.pco=27501
tsw bDown4,0 tsw bDown4,0
}else
{
bDown4.pco=65535
tsw bDown4,1
} }
} }
if(type4.txt=="light") if(type4.txt=="light")
@@ -3248,25 +3308,40 @@ Timer tmSerial
vis nNum5,0 vis nNum5,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",32 spstr strCommand.txt,tId.txt,"~",32
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp5.pco=27501
tsw bUp5,0
}else
{ {
bUp5.pco=65535 bUp5.pco=65535
tsw bUp5,1 tsw bUp5,1
}else if(tTmp.txt!="disable")
{
bUp5.pco=27501
tsw bUp5,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 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 bDown5.pco=27501
tsw bDown5,0 tsw bDown5,0
}else
{
bDown5.pco=65535
tsw bDown5,1
} }
} }
if(type5.txt=="light") if(type5.txt=="light")

View File

@@ -18,10 +18,6 @@ pageStartup
19 Component(s) 19 Component(s)
154 Line(s) of event code 154 Line(s) of event code
115 Unique line(s) of event code 115 Unique line(s) of event code
popupShutter
20 Component(s)
197 Line(s) of event code
111 Unique line(s) of event code
popupLight popupLight
27 Component(s) 27 Component(s)
345 Line(s) of event code 345 Line(s) of event code
@@ -52,11 +48,15 @@ screensaver
237 Unique line(s) of event code 237 Unique line(s) of event code
cardEntities cardEntities
77 Component(s) 77 Component(s)
1283 Line(s) of event code 1343 Line(s) of event code
540 Unique line(s) of event code 571 Unique line(s) of event code
popupShutter
20 Component(s)
241 Line(s) of event code
138 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
414 Component(s) 414 Component(s)
4561 Line(s) of event code 4665 Line(s) of event code
1182 Unique line(s) of event code 1234 Unique line(s) of event code

View File

@@ -624,12 +624,63 @@ Timer tmSerial
{ {
// get Position value // get Position value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sys0,0,0 if(tTmp.txt=="disable")
hPosition.val=sys0 {
vis tPosHeading,0
vis hPosition,0
}else
{
covx tTmp.txt,sys0,0,0
hPosition.val=sys0
vis tPosHeading,1
vis hPosition,1
}
// set tinfo1 text // set tinfo1 text
spstr strCommand.txt,tInfo1.txt,"~",2 spstr strCommand.txt,tInfo1.txt,"~",2
// set tPosHeading (localization) // set tPosHeading (localization)
spstr strCommand.txt,tPosHeading.txt,"~",3 spstr strCommand.txt,tPosHeading.txt,"~",3
// set tIcon1
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -722,15 +773,6 @@ Timer tmSerial
// next character // next character
bufferPos++ bufferPos++
} }
if(bufferPos==usize)
{
// copy whole buffer to t1.txt, for debugging
//ucopy t2.txt,0,usize,0
// ucopy n2.val,0,usize,0
// clear whole buffer
//code_c
//bufferPos=0
}
} }
TouchCap tc0 TouchCap tc0

View File

@@ -1507,25 +1507,40 @@ Timer tmSerial
vis nNum1,0 vis nNum1,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8 spstr strCommand.txt,tId.txt,"~",8
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp1.pco=27501
tsw bUp1,0
}else
{ {
bUp1.pco=65535 bUp1.pco=65535
tsw bUp1,1 tsw bUp1,1
}else if(tTmp.txt!="disable")
{
bUp1.pco=27501
tsw bUp1,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop1.pco=65535
bStop1.txt=tTmp.txt
tsw bStop1,1
}else if(tTmp.txt!="disable")
{
bStop1.pco=27501
tsw bStop1,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown1.pco=65535
bDown1.txt=tTmp.txt
tsw bDown1,1
}else if(tTmp.txt!="disable")
{ {
bDown1.pco=27501 bDown1.pco=27501
tsw bDown1,0 tsw bDown1,0
}else
{
bDown1.pco=65535
tsw bDown1,1
} }
} }
if(type1.txt=="light") if(type1.txt=="light")
@@ -1651,25 +1666,40 @@ Timer tmSerial
vis nNum2,0 vis nNum2,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14 spstr strCommand.txt,tId.txt,"~",14
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp2.pco=27501
tsw bUp2,0
}else
{ {
bUp2.pco=65535 bUp2.pco=65535
tsw bUp2,1 tsw bUp2,1
}else if(tTmp.txt!="disable")
{
bUp2.pco=27501
tsw bUp2,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop2.pco=65535
bStop2.txt=tTmp.txt
tsw bStop2,1
}else if(tTmp.txt!="disable")
{
bStop2.pco=27501
tsw bStop2,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown2.pco=65535
bDown2.txt=tTmp.txt
tsw bDown2,1
}else if(tTmp.txt!="disable")
{ {
bDown2.pco=27501 bDown2.pco=27501
tsw bDown2,0 tsw bDown2,0
}else
{
bDown2.pco=65535
tsw bDown2,1
} }
} }
if(type2.txt=="light") if(type2.txt=="light")
@@ -1795,25 +1825,40 @@ Timer tmSerial
vis nNum3,0 vis nNum3,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20 spstr strCommand.txt,tId.txt,"~",20
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp3.pco=27501
tsw bUp3,0
}else
{ {
bUp3.pco=65535 bUp3.pco=65535
tsw bUp3,1 tsw bUp3,1
}else if(tTmp.txt!="disable")
{
bUp3.pco=27501
tsw bUp3,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop3.pco=65535
bStop3.txt=tTmp.txt
tsw bStop3,1
}else if(tTmp.txt!="disable")
{
bStop3.pco=27501
tsw bStop3,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown3.pco=65535
bDown3.txt=tTmp.txt
tsw bDown3,1
}else if(tTmp.txt!="disable")
{ {
bDown3.pco=27501 bDown3.pco=27501
tsw bDown3,0 tsw bDown3,0
}else
{
bDown3.pco=65535
tsw bDown3,1
} }
} }
if(type3.txt=="light") if(type3.txt=="light")
@@ -1939,25 +1984,40 @@ Timer tmSerial
vis nNum4,0 vis nNum4,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26 spstr strCommand.txt,tId.txt,"~",26
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp4.pco=27501
tsw bUp4,0
}else
{ {
bUp4.pco=65535 bUp4.pco=65535
tsw bUp4,1 tsw bUp4,1
}else if(tTmp.txt!="disable")
{
bUp4.pco=27501
tsw bUp4,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop4.pco=65535
bStop4.txt=tTmp.txt
tsw bStop4,1
}else if(tTmp.txt!="disable")
{
bStop4.pco=27501
tsw bStop4,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown4.pco=65535
bDown4.txt=tTmp.txt
tsw bDown4,1
}else if(tTmp.txt!="disable")
{ {
bDown4.pco=27501 bDown4.pco=27501
tsw bDown4,0 tsw bDown4,0
}else
{
bDown4.pco=65535
tsw bDown4,1
} }
} }
if(type4.txt=="light") if(type4.txt=="light")
@@ -2083,25 +2143,40 @@ Timer tmSerial
vis nNum5,0 vis nNum5,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",32 spstr strCommand.txt,tId.txt,"~",32
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp5.pco=27501
tsw bUp5,0
}else
{ {
bUp5.pco=65535 bUp5.pco=65535
tsw bUp5,1 tsw bUp5,1
}else if(tTmp.txt!="disable")
{
bUp5.pco=27501
tsw bUp5,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 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 bDown5.pco=27501
tsw bDown5,0 tsw bDown5,0
}else
{
bDown5.pco=65535
tsw bDown5,1
} }
} }
if(type5.txt=="light") if(type5.txt=="light")

View File

@@ -339,12 +339,63 @@ Timer tmSerial
{ {
// get Position value // get Position value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sys0,0,0 if(tTmp.txt=="disable")
hPosition.val=sys0 {
vis tPosHeading,0
vis hPosition,0
}else
{
covx tTmp.txt,sys0,0,0
hPosition.val=sys0
vis tPosHeading,1
vis hPosition,1
}
// set tinfo1 text // set tinfo1 text
spstr strCommand.txt,tInfo1.txt,"~",2 spstr strCommand.txt,tInfo1.txt,"~",2
// set tPosHeading (localization) // set tPosHeading (localization)
spstr strCommand.txt,tPosHeading.txt,"~",3 spstr strCommand.txt,tPosHeading.txt,"~",3
// set tIcon1
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -437,15 +488,6 @@ Timer tmSerial
// next character // next character
bufferPos++ bufferPos++
} }
if(bufferPos==usize)
{
// copy whole buffer to t1.txt, for debugging
//ucopy t2.txt,0,usize,0
// ucopy n2.val,0,usize,0
// clear whole buffer
//code_c
//bufferPos=0
}
} }
TouchCap tc0 TouchCap tc0

View File

@@ -2251,25 +2251,40 @@ Timer tmSerial
vis nNum1,0 vis nNum1,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8 spstr strCommand.txt,tId.txt,"~",8
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp1.pco=27501
tsw bUp1,0
}else
{ {
bUp1.pco=65535 bUp1.pco=65535
tsw bUp1,1 tsw bUp1,1
}else if(tTmp.txt!="disable")
{
bUp1.pco=27501
tsw bUp1,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop1.pco=65535
bStop1.txt=tTmp.txt
tsw bStop1,1
}else if(tTmp.txt!="disable")
{
bStop1.pco=27501
tsw bStop1,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown1.pco=65535
bDown1.txt=tTmp.txt
tsw bDown1,1
}else if(tTmp.txt!="disable")
{ {
bDown1.pco=27501 bDown1.pco=27501
tsw bDown1,0 tsw bDown1,0
}else
{
bDown1.pco=65535
tsw bDown1,1
} }
} }
if(type1.txt=="light") if(type1.txt=="light")
@@ -2395,25 +2410,40 @@ Timer tmSerial
vis nNum2,0 vis nNum2,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14 spstr strCommand.txt,tId.txt,"~",14
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp2.pco=27501
tsw bUp2,0
}else
{ {
bUp2.pco=65535 bUp2.pco=65535
tsw bUp2,1 tsw bUp2,1
}else if(tTmp.txt!="disable")
{
bUp2.pco=27501
tsw bUp2,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop2.pco=65535
bStop2.txt=tTmp.txt
tsw bStop2,1
}else if(tTmp.txt!="disable")
{
bStop2.pco=27501
tsw bStop2,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown2.pco=65535
bDown2.txt=tTmp.txt
tsw bDown2,1
}else if(tTmp.txt!="disable")
{ {
bDown2.pco=27501 bDown2.pco=27501
tsw bDown2,0 tsw bDown2,0
}else
{
bDown2.pco=65535
tsw bDown2,1
} }
} }
if(type2.txt=="light") if(type2.txt=="light")
@@ -2539,25 +2569,40 @@ Timer tmSerial
vis nNum3,0 vis nNum3,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20 spstr strCommand.txt,tId.txt,"~",20
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp3.pco=27501
tsw bUp3,0
}else
{ {
bUp3.pco=65535 bUp3.pco=65535
tsw bUp3,1 tsw bUp3,1
}else if(tTmp.txt!="disable")
{
bUp3.pco=27501
tsw bUp3,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop3.pco=65535
bStop3.txt=tTmp.txt
tsw bStop3,1
}else if(tTmp.txt!="disable")
{
bStop3.pco=27501
tsw bStop3,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown3.pco=65535
bDown3.txt=tTmp.txt
tsw bDown3,1
}else if(tTmp.txt!="disable")
{ {
bDown3.pco=27501 bDown3.pco=27501
tsw bDown3,0 tsw bDown3,0
}else
{
bDown3.pco=65535
tsw bDown3,1
} }
} }
if(type3.txt=="light") if(type3.txt=="light")
@@ -2683,25 +2728,40 @@ Timer tmSerial
vis nNum4,0 vis nNum4,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26 spstr strCommand.txt,tId.txt,"~",26
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp4.pco=27501
tsw bUp4,0
}else
{ {
bUp4.pco=65535 bUp4.pco=65535
tsw bUp4,1 tsw bUp4,1
}else if(tTmp.txt!="disable")
{
bUp4.pco=27501
tsw bUp4,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop4.pco=65535
bStop4.txt=tTmp.txt
tsw bStop4,1
}else if(tTmp.txt!="disable")
{
bStop4.pco=27501
tsw bStop4,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown4.pco=65535
bDown4.txt=tTmp.txt
tsw bDown4,1
}else if(tTmp.txt!="disable")
{ {
bDown4.pco=27501 bDown4.pco=27501
tsw bDown4,0 tsw bDown4,0
}else
{
bDown4.pco=65535
tsw bDown4,1
} }
} }
if(type4.txt=="light") if(type4.txt=="light")

View File

@@ -10,10 +10,6 @@ pageTest
14 Component(s) 14 Component(s)
14 Line(s) of event code 14 Line(s) of event code
14 Unique line(s) of event code 14 Unique line(s) of event code
popupShutter
20 Component(s)
197 Line(s) of event code
111 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
154 Line(s) of event code 154 Line(s) of event code
@@ -38,6 +34,10 @@ cardQR
30 Component(s) 30 Component(s)
363 Line(s) of event code 363 Line(s) of event code
205 Unique line(s) of event code 205 Unique line(s) of event code
popupShutter
20 Component(s)
241 Line(s) of event code
138 Unique line(s) of event code
cardGrid cardGrid
42 Component(s) 42 Component(s)
439 Line(s) of event code 439 Line(s) of event code
@@ -52,11 +52,11 @@ cardThermo
290 Unique line(s) of event code 290 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1069 Line(s) of event code 1117 Line(s) of event code
462 Unique line(s) of event code 487 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
402 Component(s) 402 Component(s)
4348 Line(s) of event code 4440 Line(s) of event code
1118 Unique line(s) of event code 1164 Unique line(s) of event code

View File

@@ -624,12 +624,63 @@ Timer tmSerial
{ {
// get Position value // get Position value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sys0,0,0 if(tTmp.txt=="disable")
hPosition.val=sys0 {
vis tPosHeading,0
vis hPosition,0
}else
{
covx tTmp.txt,sys0,0,0
hPosition.val=sys0
vis tPosHeading,1
vis hPosition,1
}
// set tinfo1 text // set tinfo1 text
spstr strCommand.txt,tInfo1.txt,"~",2 spstr strCommand.txt,tInfo1.txt,"~",2
// set tPosHeading (localization) // set tPosHeading (localization)
spstr strCommand.txt,tPosHeading.txt,"~",3 spstr strCommand.txt,tPosHeading.txt,"~",3
// set tIcon1
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -722,15 +773,6 @@ Timer tmSerial
// next character // next character
bufferPos++ bufferPos++
} }
if(bufferPos==usize)
{
// copy whole buffer to t1.txt, for debugging
//ucopy t2.txt,0,usize,0
// ucopy n2.val,0,usize,0
// clear whole buffer
//code_c
//bufferPos=0
}
} }
TouchCap tc0 TouchCap tc0

View File

@@ -1279,25 +1279,40 @@ Timer tmSerial
vis nNum1,0 vis nNum1,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8 spstr strCommand.txt,tId.txt,"~",8
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp1.pco=27501
tsw bUp1,0
}else
{ {
bUp1.pco=65535 bUp1.pco=65535
tsw bUp1,1 tsw bUp1,1
}else if(tTmp.txt!="disable")
{
bUp1.pco=27501
tsw bUp1,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop1.pco=65535
bStop1.txt=tTmp.txt
tsw bStop1,1
}else if(tTmp.txt!="disable")
{
bStop1.pco=27501
tsw bStop1,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown1.pco=65535
bDown1.txt=tTmp.txt
tsw bDown1,1
}else if(tTmp.txt!="disable")
{ {
bDown1.pco=27501 bDown1.pco=27501
tsw bDown1,0 tsw bDown1,0
}else
{
bDown1.pco=65535
tsw bDown1,1
} }
} }
if(type1.txt=="light") if(type1.txt=="light")
@@ -1423,25 +1438,40 @@ Timer tmSerial
vis nNum2,0 vis nNum2,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14 spstr strCommand.txt,tId.txt,"~",14
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp2.pco=27501
tsw bUp2,0
}else
{ {
bUp2.pco=65535 bUp2.pco=65535
tsw bUp2,1 tsw bUp2,1
}else if(tTmp.txt!="disable")
{
bUp2.pco=27501
tsw bUp2,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop2.pco=65535
bStop2.txt=tTmp.txt
tsw bStop2,1
}else if(tTmp.txt!="disable")
{
bStop2.pco=27501
tsw bStop2,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown2.pco=65535
bDown2.txt=tTmp.txt
tsw bDown2,1
}else if(tTmp.txt!="disable")
{ {
bDown2.pco=27501 bDown2.pco=27501
tsw bDown2,0 tsw bDown2,0
}else
{
bDown2.pco=65535
tsw bDown2,1
} }
} }
if(type2.txt=="light") if(type2.txt=="light")
@@ -1567,25 +1597,40 @@ Timer tmSerial
vis nNum3,0 vis nNum3,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20 spstr strCommand.txt,tId.txt,"~",20
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp3.pco=27501
tsw bUp3,0
}else
{ {
bUp3.pco=65535 bUp3.pco=65535
tsw bUp3,1 tsw bUp3,1
}else if(tTmp.txt!="disable")
{
bUp3.pco=27501
tsw bUp3,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop3.pco=65535
bStop3.txt=tTmp.txt
tsw bStop3,1
}else if(tTmp.txt!="disable")
{
bStop3.pco=27501
tsw bStop3,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown3.pco=65535
bDown3.txt=tTmp.txt
tsw bDown3,1
}else if(tTmp.txt!="disable")
{ {
bDown3.pco=27501 bDown3.pco=27501
tsw bDown3,0 tsw bDown3,0
}else
{
bDown3.pco=65535
tsw bDown3,1
} }
} }
if(type3.txt=="light") if(type3.txt=="light")
@@ -1711,25 +1756,40 @@ Timer tmSerial
vis nNum4,0 vis nNum4,0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26 spstr strCommand.txt,tId.txt,"~",26
// up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bUp4.pco=27501
tsw bUp4,0
}else
{ {
bUp4.pco=65535 bUp4.pco=65535
tsw bUp4,1 tsw bUp4,1
}else if(tTmp.txt!="disable")
{
bUp4.pco=27501
tsw bUp4,0
} }
// stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt!="")
{
bStop4.pco=65535
bStop4.txt=tTmp.txt
tsw bStop4,1
}else if(tTmp.txt!="disable")
{
bStop4.pco=27501
tsw bStop4,0
}
// down button
spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="")
{
bDown4.pco=65535
bDown4.txt=tTmp.txt
tsw bDown4,1
}else if(tTmp.txt!="disable")
{ {
bDown4.pco=27501 bDown4.pco=27501
tsw bDown4,0 tsw bDown4,0
}else
{
bDown4.pco=65535
tsw bDown4,1
} }
} }
if(type4.txt=="light") if(type4.txt=="light")

View File

@@ -339,12 +339,63 @@ Timer tmSerial
{ {
// get Position value // get Position value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sys0,0,0 if(tTmp.txt=="disable")
hPosition.val=sys0 {
vis tPosHeading,0
vis hPosition,0
}else
{
covx tTmp.txt,sys0,0,0
hPosition.val=sys0
vis tPosHeading,1
vis hPosition,1
}
// set tinfo1 text // set tinfo1 text
spstr strCommand.txt,tInfo1.txt,"~",2 spstr strCommand.txt,tInfo1.txt,"~",2
// set tPosHeading (localization) // set tPosHeading (localization)
spstr strCommand.txt,tPosHeading.txt,"~",3 spstr strCommand.txt,tPosHeading.txt,"~",3
// set tIcon1
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt!="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -437,15 +488,6 @@ Timer tmSerial
// next character // next character
bufferPos++ bufferPos++
} }
if(bufferPos==usize)
{
// copy whole buffer to t1.txt, for debugging
//ucopy t2.txt,0,usize,0
// ucopy n2.val,0,usize,0
// clear whole buffer
//code_c
//bufferPos=0
}
} }
TouchCap tc0 TouchCap tc0