implemented status on cover buttons and cardQR type

This commit is contained in:
Johannes
2022-05-21 12:52:49 +02:00
parent 61a15ac3f5
commit 887f56a22b
4 changed files with 29 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ head = sharedhead + """
""" + navigation
print(head)
start = 3
for i in range(1,6):
for i in range(1,5):
idxstart = start + (i-1)*6
item = f"""
// get Type
@@ -48,6 +48,30 @@ for i in range(1,6):
vis bText{i},0
vis hSlider{i},0
vis nNum{i},0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",{idxstart+5}
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{{
bUp{i}.bco2=27501
tsw bUp{i},0
}}
else
{{
bUp{i}.bco2=14823
tsw bUp{i},1
}}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{{
bDown{i}.bco2=27501
tsw bDown{i},0
}}
else
{{
bDown{i}.bco2=14823
tsw bDown{i},1
}}
}}
if(type{i}.txt=="light")
{{