update cardThermo gen script (add nextion2text)

This commit is contained in:
joBr99
2022-05-21 11:07:43 +00:00
committed by github-actions[bot]
parent fb27e62033
commit d906cb03ac
26 changed files with 1131 additions and 59 deletions

View File

@@ -788,6 +788,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -1277,6 +1277,28 @@ Timer tmSerial
vis bText1,0
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{
bUp1.bco2=27501
tsw bUp1,0
}else
{
bUp1.bco2=14823
tsw bUp1,1
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{
bDown1.bco2=27501
tsw bDown1,0
}else
{
bDown1.bco2=14823
tsw bDown1,1
}
}
if(type1.txt=="light")
{
@@ -1399,6 +1421,28 @@ Timer tmSerial
vis bText2,0
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{
bUp2.bco2=27501
tsw bUp2,0
}else
{
bUp2.bco2=14823
tsw bUp2,1
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{
bDown2.bco2=27501
tsw bDown2,0
}else
{
bDown2.bco2=14823
tsw bDown2,1
}
}
if(type2.txt=="light")
{
@@ -1521,6 +1565,28 @@ Timer tmSerial
vis bText3,0
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{
bUp3.bco2=27501
tsw bUp3,0
}else
{
bUp3.bco2=14823
tsw bUp3,1
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{
bDown3.bco2=27501
tsw bDown3,0
}else
{
bDown3.bco2=14823
tsw bDown3,1
}
}
if(type3.txt=="light")
{
@@ -1643,6 +1709,28 @@ Timer tmSerial
vis bText4,0
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{
bUp4.bco2=27501
tsw bUp4,0
}else
{
bUp4.bco2=14823
tsw bUp4,1
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{
bDown4.bco2=27501
tsw bDown4,0
}else
{
bDown4.bco2=14823
tsw bDown4,1
}
}
if(type4.txt=="light")
{
@@ -1783,6 +1871,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
if(tInstruction.txt=="time")
{

View File

@@ -869,6 +869,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
if(tInstruction.txt=="time")
{

View File

@@ -740,6 +740,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -541,6 +541,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -1192,6 +1192,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
if(tInstruction.txt=="time")
{

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : 34
Text : 35
Max. Text Size : 10
Picture p0
@@ -330,6 +330,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -618,6 +618,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -381,6 +381,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -422,6 +422,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1

View File

@@ -607,6 +607,10 @@ Timer tmSerial
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
}
// end of user code
udelete payloadLength-1