mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-10 15:26:36 +01:00
Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
2b168e31dd
commit
e9d976987a
@@ -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")
|
||||
{
|
||||
|
||||
@@ -31,9 +31,9 @@ screensaver
|
||||
315 Line(s) of event code
|
||||
249 Unique line(s) of event code
|
||||
cardMedia
|
||||
33 Component(s)
|
||||
349 Line(s) of event code
|
||||
183 Unique line(s) of event code
|
||||
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
|
||||
@@ -57,6 +57,6 @@ cardEntities
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
408 Component(s)
|
||||
4529 Line(s) of event code
|
||||
1197 Unique line(s) of event code
|
||||
409 Component(s)
|
||||
4543 Line(s) of event code
|
||||
1209 Unique line(s) of event code
|
||||
|
||||
Reference in New Issue
Block a user