sync (add nextion2text)

This commit is contained in:
joBr99
2022-11-03 17:14:14 +00:00
committed by github-actions[bot]
parent 964cfc1289
commit f5d1a93eb2
13 changed files with 181 additions and 489 deletions

View File

@@ -1014,7 +1014,14 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,bNext"
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1251,6 +1258,11 @@ Timer tmSerial
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//text arm1
spstr strCommand.txt,arm1.txt,"~",3
if(arm1.txt!="")

View File

@@ -1259,7 +1259,14 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,bNext"
tSend.txt="event,buttonPress2,cardEntities,"
if(bPrev.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -2633,6 +2640,11 @@ Timer tmSerial
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
// get internal name

View File

@@ -634,7 +634,14 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,bNext"
tSend.txt="event,buttonPress2,cardThermo,"
if(bPrev.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1642,6 +1649,11 @@ Timer tmSerial
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
//currentTemp

View File

@@ -857,7 +857,14 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,bNext"
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1123,6 +1130,11 @@ Timer tmSerial
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
// get internal name

View File

@@ -828,7 +828,14 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,bNext"
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1057,6 +1064,11 @@ Timer tmSerial
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
//icon

View File

@@ -12,31 +12,31 @@ b0
202 Unique line(s) of event code
bNext
34 Component(s)
394 Line(s) of event code
213 Unique line(s) of event code
406 Line(s) of event code
216 Unique line(s) of event code
arm1
40 Component(s)
439 Line(s) of event code
261 Unique line(s) of event code
bSendStartup
19 Component(s)
172 Line(s) of event code
125 Unique line(s) of event code
bEntity1
42 Component(s)
478 Line(s) of event code
283 Unique line(s) of event code
arm1
40 Component(s)
427 Line(s) of event code
258 Unique line(s) of event code
490 Line(s) of event code
286 Unique line(s) of event code
bDown2
53 Component(s)
596 Line(s) of event code
313 Unique line(s) of event code
608 Line(s) of event code
316 Unique line(s) of event code
bDown1
77 Component(s)
1379 Line(s) of event code
614 Unique line(s) of event code
1391 Line(s) of event code
617 Unique line(s) of event code
Total
17 Page(s)
337 Component(s)
4194 Line(s) of event code
1292 Unique line(s) of event code
4254 Line(s) of event code
1291 Unique line(s) of event code