Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)

This commit is contained in:
joBr99
2022-03-31 21:43:27 +00:00
committed by GitHub Actions
parent 3aaf2582ea
commit ef024faa43
9 changed files with 130 additions and 125 deletions

View File

@@ -515,7 +515,12 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,bPrev"
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}
tSend.txt+="bPrev"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1005,6 +1010,33 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,",",1
// navigation icons
spstr strCommand.txt,tId.txt,",",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{
vis bPrev,0
}
if(tTmp.txt=="1")
{
vis bPrev,1
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{
vis bNext,0
}
if(tTmp.txt=="1")
{
vis bPrev,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,",",3
// get internal name

View File

@@ -856,7 +856,12 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,bPrev"
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}
tSend.txt+="bPrev"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC

View File

@@ -683,7 +683,12 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,bPrev"
tSend.txt="event,buttonPress2,cardThermo,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}
tSend.txt+="bPrev"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC

View File

@@ -14,10 +14,6 @@ popupNotify
17 Component(s)
178 Line(s) of event code
117 Unique line(s) of event code
cardAlarm
35 Component(s)
343 Line(s) of event code
214 Unique line(s) of event code
pageTest
13 Component(s)
13 Line(s) of event code
@@ -32,12 +28,8 @@ popupShutter
101 Unique line(s) of event code
cardMedia
30 Component(s)
300 Line(s) of event code
154 Unique line(s) of event code
cardGrid
39 Component(s)
397 Line(s) of event code
233 Unique line(s) of event code
305 Line(s) of event code
157 Unique line(s) of event code
screensaver
29 Component(s)
182 Line(s) of event code
@@ -46,17 +38,25 @@ popupLight
27 Component(s)
322 Line(s) of event code
173 Unique line(s) of event code
cardThermo
41 Component(s)
427 Line(s) of event code
232 Unique line(s) of event code
cardAlarm
35 Component(s)
343 Line(s) of event code
214 Unique line(s) of event code
cardEntities
86 Component(s)
1360 Line(s) of event code
552 Unique line(s) of event code
cardGrid
39 Component(s)
428 Line(s) of event code
248 Unique line(s) of event code
cardThermo
41 Component(s)
432 Line(s) of event code
235 Unique line(s) of event code
Total
13 Page(s)
375 Component(s)
3908 Line(s) of event code
3949 Line(s) of event code
1061 Unique line(s) of event code