modified notify commands (add nextion2text)

This commit is contained in:
joBr99
2022-03-20 13:36:33 +00:00
committed by GitHub Actions
parent 0853f4a94e
commit a67762afd7
2 changed files with 31 additions and 14 deletions

View File

@@ -6,10 +6,6 @@ pageIcons
6 Component(s)
0 Line(s) of event code
0 Unique line(s) of event code
popupNotify
15 Component(s)
143 Line(s) of event code
95 Unique line(s) of event code
pageSerialTest
13 Component(s)
48 Line(s) of event code
@@ -30,6 +26,10 @@ pageSwipeTest
18 Component(s)
62 Line(s) of event code
44 Unique line(s) of event code
popupNotify
16 Component(s)
152 Line(s) of event code
100 Unique line(s) of event code
pageTest
14 Component(s)
14 Line(s) of event code
@@ -61,6 +61,6 @@ cardGrid
Total
14 Page(s)
342 Component(s)
3105 Line(s) of event code
765 Unique line(s) of event code
343 Component(s)
3114 Line(s) of event code
769 Unique line(s) of event code

View File

@@ -46,7 +46,14 @@ Variable (string) strCommand
ID : 8
Scope : local
Text :
Max. Text Size: 500
Max. Text Size: 600
Variable (string) entn
Attributes
ID : 15
Scope : local
Text :
Max. Text Size: 30
Text tSend
Attributes
@@ -316,7 +323,7 @@ Button b2
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress,D,D,D,1,notifyAction,yes"
tSend.txt="event,buttonPress,D,D,"+entn.txt+",1,notifyAction,yes"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -364,7 +371,7 @@ Button b1
Events
Touch Press Event
//craft command
tSend.txt="event,buttonPress,D,D,D,1,notifyAction,no"
tSend.txt="event,buttonPress,D,D,"+entn.txt+",1,notifyAction,no"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -451,14 +458,24 @@ Timer tmSerial
spstr strCommand.txt,tInstruction.txt,",",0
if(tInstruction.txt=="entityUpdateDetail")
{
// get entn
spstr strCommand.txt,entn.txt,",",1
// get Heading
spstr strCommand.txt,tHeading.txt,",",1
spstr strCommand.txt,tHeading.txt,",",2
// get b1
spstr strCommand.txt,b1.txt,",",2
spstr strCommand.txt,b1.txt,",",3
if(b1.txt!="")
{
vis b1,1
}
// get b2
spstr strCommand.txt,b2.txt,",",3
spstr strCommand.txt,b2.txt,",",4
if(b2.txt!="")
{
vis b2,1
}
// get tText
spstr strCommand.txt,tText.txt,",",4
spstr strCommand.txt,tText.txt,",",5
}
if(tInstruction.txt=="time")
{