syned alarm page to us-l and us-p #242 (add nextion2text)

This commit is contained in:
joBr99
2022-05-30 20:14:02 +00:00
committed by github-actions[bot]
parent 3287601e1b
commit dc5896c505
25 changed files with 471 additions and 602 deletions

View File

@@ -79,6 +79,12 @@ Variable (string) va4
Text :
Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
Scope : local
Text :
Max. Text Size: 20
Text tTmp
Attributes
Scope : local
@@ -326,12 +332,27 @@ Button b9
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 0
Text :
Max. Text Size : 10
Events
Touch Press Event
tCode.txt=tCode.txt+"0"
// event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+=vaAddBtn.txt
//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
tCode.txt=""
Button b10
Attributes
@@ -340,12 +361,12 @@ Button b10
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : CLR
Text : 0
Max. Text Size : 10
Events
Touch Press Event
tCode.txt=""
tCode.txt=tCode.txt+"0"
Button arm1
Attributes
@@ -467,6 +488,20 @@ Button arm4
prints crcval,2
tCode.txt=""
Button b11
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : CLR
Max. Text Size : 10
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext
Attributes
Scope : local
@@ -668,6 +703,15 @@ Timer tmSerial
{
tmFlash.en=0
}
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
}
if(tInstruction.txt=="time")
{