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

@@ -646,38 +646,41 @@ Timer tmSerial
tIcon1.txt=tTmp.txt
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",8
if(tTmp.txt=="disable")
{
tsw bUp1,0
spstr strCommand.txt,bUp1.txt,"~",5
bUp1.pco=27501
}else if(tTmp.txt!="")
}else if(tTmp.txt=="enable")
{
bUp1.txt=tTmp.txt
spstr strCommand.txt,bUp1.txt,"~",5
tsw bUp1,1
bUp1.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
tsw bStop1,0
spstr strCommand.txt,bStop1.txt,"~",6
bStop1.pco=27501
}else if(tTmp.txt!="")
}else if(tTmp.txt=="enable")
{
bStop1.txt=tTmp.txt
spstr strCommand.txt,bStop1.txt,"~",6
tsw bStop1,1
bStop1.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",10
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bDown1.txt,"~",7
tsw bDown1,0
bDown1.pco=27501
}else if(tTmp.txt!="")
}else if(tTmp.txt=="enable")
{
bDown1.txt=tTmp.txt
spstr strCommand.txt,bDown1.txt,"~",7
tsw bDown1,1
bDown1.pco=65535
}