fix disable

This commit is contained in:
joBr99
2022-05-22 10:36:15 +02:00
parent 880a0b5fcf
commit 6ad9e20c5a
8 changed files with 1057 additions and 19 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -7,7 +7,7 @@ head = sharedhead + """
""" + navigation """ + navigation
print(head) print(head)
start = 3 start = 3
for i in range(1,5): for i in range(1,6):
idxstart = start + (i-1)*6 idxstart = start + (i-1)*6
item = f""" item = f"""
// get Type // get Type
@@ -50,44 +50,48 @@ for i in range(1,5):
vis nNum{i},0 vis nNum{i},0
// get Button State (optional Value) // get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",{idxstart+5} spstr strCommand.txt,tId.txt,"~",{idxstart+5}
// up button // up button
spstr tId.txt,tTmp.txt,"|",0 spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt!="") if(tTmp.txt=="disable")
{{
bUp{i}.pco=65535
tsw bUp{i},1
}}
else if(tTmp.txt=="disable")
{{ {{
bUp{i}.pco=27501 bUp{i}.pco=27501
tsw bUp{i},0 tsw bUp{i},0
}} }}
else if(tTmp.txt!="")
{{
bUp{i}.pco=65535
bUp{i}.txt=tTmp.txt
tsw bUp{i},1
}}
// stop button // stop button
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt!="") if(tTmp.txt=="disable")
{{
bStop{i}.pco=27501
tsw bStop{i},0
}}
else if(tTmp.txt!="")
{{ {{
bStop{i}.pco=65535 bStop{i}.pco=65535
bStop{i}.txt=tTmp.txt bStop{i}.txt=tTmp.txt
tsw bStop{i},1 tsw bStop{i},1
}} }}
else if(tTmp.txt=="disable")
{{
bStop{i}.pco=27501
tsw bStop{i},0
}}
// down button // down button
spstr tId.txt,tTmp.txt,"|",2 spstr tId.txt,tTmp.txt,"|",2
if(tTmp.txt!="") if(tTmp.txt=="disable")
{{
bDown{i}.pco=27501
tsw bDown{i},0
}}
else if(tTmp.txt!="")
{{ {{
bDown{i}.pco=65535 bDown{i}.pco=65535
bDown{i}.txt=tTmp.txt bDown{i}.txt=tTmp.txt
tsw bDown{i},1 tsw bDown{i},1
}} }}
else if(tTmp.txt=="disable")
{{
bDown{i}.pco=27501
tsw bDown{i},0
}}
}} }}
if(type{i}.txt=="light") if(type{i}.txt=="light")
{{ {{

1034
HMI/code_gen/pages/out.txt Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.