mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-23 13:02:14 +01:00
sync (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
a208c1dbfc
commit
ca4a7b200d
@@ -57,6 +57,13 @@ Variable (int32) vaSpeakerPos
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (string) vaMenu
|
||||
Attributes
|
||||
ID : 33
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Text tSend
|
||||
Attributes
|
||||
ID : 2
|
||||
@@ -444,6 +451,24 @@ Text tIcon
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
if(vaMenu.txt!="")
|
||||
{
|
||||
tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
crcputh 55 bb
|
||||
crcputs sys0,2
|
||||
crcputs tSend.txt,0
|
||||
//send cmd
|
||||
printh 55 bb
|
||||
prints sys0,2
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
}
|
||||
|
||||
Text t1
|
||||
Attributes
|
||||
ID : 22
|
||||
@@ -1069,6 +1094,8 @@ Timer tmSerial
|
||||
vis t5,1
|
||||
covx tTmp.txt,t5.pco,0,0
|
||||
}
|
||||
//tIconBtnEntityName
|
||||
spstr strCommand.txt,vaMenu.txt,"~",12
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
@@ -1085,7 +1112,10 @@ Timer tmSerial
|
||||
// get value
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,dimValue,0,0
|
||||
dim=dimValue
|
||||
// get value normal
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,dimValueNormal,0,0
|
||||
dim=dimValueNormal
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
@@ -1870,6 +1870,10 @@ Timer tmSerial
|
||||
// get value
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,dimValue,0,0
|
||||
// get value normal
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,dimValueNormal,0,0
|
||||
dim=dimValueNormal
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
@@ -10,14 +10,14 @@ pageTest
|
||||
14 Component(s)
|
||||
14 Line(s) of event code
|
||||
14 Unique line(s) of event code
|
||||
cardMedia
|
||||
34 Component(s)
|
||||
363 Line(s) of event code
|
||||
195 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
157 Line(s) of event code
|
||||
117 Unique line(s) of event code
|
||||
cardMedia
|
||||
33 Component(s)
|
||||
347 Line(s) of event code
|
||||
182 Unique line(s) of event code
|
||||
cardQR
|
||||
32 Component(s)
|
||||
374 Line(s) of event code
|
||||
@@ -34,10 +34,6 @@ popupShutter
|
||||
25 Component(s)
|
||||
330 Line(s) of event code
|
||||
162 Unique line(s) of event code
|
||||
cardThermo
|
||||
53 Component(s)
|
||||
552 Line(s) of event code
|
||||
290 Unique line(s) of event code
|
||||
screensaver
|
||||
38 Component(s)
|
||||
319 Line(s) of event code
|
||||
@@ -50,6 +46,10 @@ popupLight
|
||||
27 Component(s)
|
||||
352 Line(s) of event code
|
||||
191 Unique line(s) of event code
|
||||
cardThermo
|
||||
53 Component(s)
|
||||
555 Line(s) of event code
|
||||
292 Unique line(s) of event code
|
||||
cardAlarm
|
||||
40 Component(s)
|
||||
392 Line(s) of event code
|
||||
@@ -57,6 +57,6 @@ cardAlarm
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
411 Component(s)
|
||||
4620 Line(s) of event code
|
||||
1220 Unique line(s) of event code
|
||||
412 Component(s)
|
||||
4639 Line(s) of event code
|
||||
1232 Unique line(s) of event code
|
||||
|
||||
Reference in New Issue
Block a user