do not send button in entity is empty (add nextion2text)

This commit is contained in:
joBr99
2024-11-21 19:35:50 +00:00
committed by github-actions[bot]
parent 7396806fab
commit 710bb2d884
6 changed files with 369 additions and 294 deletions

View File

@@ -336,7 +336,7 @@
│ Value: 0 │ Value: 0
│ Variable (int32) xc1 │ Variable (int32) xc1
│ @@ -370,145 +336,50 @@ │ @@ -370,160 +336,50 @@
│ Scope : local │ Scope : local
│ Dragging : 0 │ Dragging : 0
│ Send Component ID : disabled │ Send Component ID : disabled
@@ -347,17 +347,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
│ - //send calc crc │ - if(entn1.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f2Icon │ Text f2Icon
│ Attributes │ Attributes
@@ -371,17 +374,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
│ - //send calc crc │ - if(entn2.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f3Icon │ Text f3Icon
│ Attributes │ Attributes
@@ -395,17 +401,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
│ - //send calc crc │ - if(entn3.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f4Icon │ Text f4Icon
│ Attributes │ Attributes
@@ -419,17 +428,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
│ - //send calc crc │ - if(entn4.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f5Icon │ Text f5Icon
│ Attributes │ Attributes
@@ -443,17 +455,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
│ - //send calc crc │ - if(entn5.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ -Text m0 │ -Text m0
│ - Attributes │ - Attributes
@@ -482,7 +497,7 @@
│ Send Component ID : disabled │ Send Component ID : disabled
│ Associated Keyboard: none │ Associated Keyboard: none
│ Text : PM │ Text : PM
│ @@ -690,15 +561,14 @@ │ @@ -705,15 +561,14 @@
│ if(tTmp.txt!="") │ if(tTmp.txt!="")
│ { │ {
│ covx tTmp.txt,defaultFontColor,0,0 │ covx tTmp.txt,defaultFontColor,0,0
@@ -498,7 +513,7 @@
│ if(tAMPM.txt=="") │ if(tAMPM.txt=="")
│ { │ {
│ vis tAMPM,0 │ vis tAMPM,0
│ @@ -819,44 +689,34 @@ │ @@ -834,44 +689,34 @@
│ //e6Val │ //e6Val
│ spstr strCommand.txt,e6Val.txt,"~",60 │ spstr strCommand.txt,e6Val.txt,"~",60
│ //f1Icon │ //f1Icon

View File

@@ -2279,7 +2279,7 @@
│ Value: 0 │ Value: 0
│ Variable (int32) xc1 │ Variable (int32) xc1
│ @@ -370,145 +324,50 @@ │ @@ -370,160 +324,50 @@
│ Scope : local │ Scope : local
│ Dragging : 0 │ Dragging : 0
│ Send Component ID : disabled │ Send Component ID : disabled
@@ -2290,17 +2290,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
│ - //send calc crc │ - if(entn1.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f2Icon │ Text f2Icon
│ Attributes │ Attributes
@@ -2314,17 +2317,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
│ - //send calc crc │ - if(entn2.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f3Icon │ Text f3Icon
│ Attributes │ Attributes
@@ -2338,17 +2344,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
│ - //send calc crc │ - if(entn3.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f4Icon │ Text f4Icon
│ Attributes │ Attributes
@@ -2362,17 +2371,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
│ - //send calc crc │ - if(entn4.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ Text f5Icon │ Text f5Icon
│ Attributes │ Attributes
@@ -2386,17 +2398,20 @@
│ - Events │ - Events
│ - Touch Press Event │ - Touch Press Event
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button" │ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
│ - //send calc crc │ - if(entn5.txt!="")
│ - btlen tSend.txt,sys0 │ - {
│ - crcrest 1,0xffff // reset CRC │ - //send calc crc
│ - crcputh 55 bb │ - btlen tSend.txt,sys0
│ - crcputs sys0,2 │ - crcrest 1,0xffff // reset CRC
│ - crcputs tSend.txt,0 │ - crcputh 55 bb
│ - //send cmd │ - crcputs sys0,2
│ - printh 55 bb │ - crcputs tSend.txt,0
│ - prints sys0,2 │ - //send cmd
│ - prints tSend.txt,0 │ - printh 55 bb
│ - prints crcval,2 │ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ - │ -
│ -Text m0 │ -Text m0
│ - Attributes │ - Attributes
@@ -2425,7 +2440,7 @@
│ Send Component ID : disabled │ Send Component ID : disabled
│ Associated Keyboard: none │ Associated Keyboard: none
│ Text : PM │ Text : PM
│ @@ -690,15 +549,14 @@ │ @@ -705,15 +549,14 @@
│ if(tTmp.txt!="") │ if(tTmp.txt!="")
│ { │ {
│ covx tTmp.txt,defaultFontColor,0,0 │ covx tTmp.txt,defaultFontColor,0,0
@@ -2441,7 +2456,7 @@
│ if(tAMPM.txt=="") │ if(tAMPM.txt=="")
│ { │ {
│ vis tAMPM,0 │ vis tAMPM,0
│ @@ -819,44 +677,34 @@ │ @@ -834,44 +677,34 @@
│ //e6Val │ //e6Val
│ spstr strCommand.txt,e6Val.txt,"~",60 │ spstr strCommand.txt,e6Val.txt,"~",60
│ //f1Icon │ //f1Icon

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2024-02-25 11:03:09.634837907 +0000 +++ /dev/fd/62 2024-11-21 19:35:42.871078761 +0000
+I/n2t-out/Program.s.txt +I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt ++ HMI/US/portrait/n2t-out/Program.s.txt
+1 +12,11 @@ +1 +12,11 @@
@@ -686,13 +686,6 @@
+ covx tTmp.txt,sys0,0,0 + covx tTmp.txt,sys0,0,0
+ hSlider6.maxval=sys0 + hSlider6.maxval=sys0
+ } + }
+ }
+ if(tInstruction.txt=="pageType")
+ {
+ sleepValue=0
+ //command format pageType,specialPageName
+ //write name of speical page to tId
+ spstr strCommand.txt,tId.txt,"~",1
+I/n2t-out/cardGrid.txt +I/n2t-out/cardGrid.txt
++ HMI/US/portrait/n2t-out/cardGrid.txt ++ HMI/US/portrait/n2t-out/cardGrid.txt
+ +7,14 @@ + +7,14 @@
@@ -946,6 +939,13 @@
+ spstr strCommand.txt,tEntity9.txt,"~",66 + spstr strCommand.txt,tEntity9.txt,"~",66
+ vis tEntity9,1 + vis tEntity9,1
+ } + }
+ }
+ if(tInstruction.txt=="pageType")
+ {
+ sleepValue=0
+ //command format pageType,specialPageName
+ //write name of speical page to tId
+ spstr strCommand.txt,tId.txt,"~",1
+I/n2t-out/cardLChart.txt +I/n2t-out/cardLChart.txt
++ HMI/US/portrait/n2t-out/cardLChart.txt ++ HMI/US/portrait/n2t-out/cardLChart.txt
+ +7,14 @@ + +7,14 @@
@@ -1821,7 +1821,7 @@
+ Value: 0 + Value: 0
+ +
+e (int32) xc1 +e (int32) xc1
+145 +324,50 @@ +160 +324,50 @@
+ Scope : local + Scope : local
+ Dragging : 0 + Dragging : 0
+ Send Component ID : disabled + Send Component ID : disabled
@@ -1832,17 +1832,20 @@
+nts +nts
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn1.txt+",button" + tSend.txt="event,buttonPress2,"+entn1.txt+",button"
+ //send calc crc + if(entn1.txt!="")
+ btlen tSend.txt,sys0 + {
+ crcrest 1,0xffff // reset CRC + //send calc crc
+ crcputh 55 bb + btlen tSend.txt,sys0
+ crcputs sys0,2 + crcrest 1,0xffff // reset CRC
+ crcputs tSend.txt,0 + crcputh 55 bb
+ //send cmd + crcputs sys0,2
+ printh 55 bb + crcputs tSend.txt,0
+ prints sys0,2 + //send cmd
+ prints tSend.txt,0 + printh 55 bb
+ prints crcval,2 + prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+ +
+Icon +Icon
+ributes +ributes
@@ -1856,17 +1859,20 @@
+nts +nts
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn2.txt+",button" + tSend.txt="event,buttonPress2,"+entn2.txt+",button"
+ //send calc crc + if(entn2.txt!="")
+ btlen tSend.txt,sys0 + {
+ crcrest 1,0xffff // reset CRC + //send calc crc
+ crcputh 55 bb + btlen tSend.txt,sys0
+ crcputs sys0,2 + crcrest 1,0xffff // reset CRC
+ crcputs tSend.txt,0 + crcputh 55 bb
+ //send cmd + crcputs sys0,2
+ printh 55 bb + crcputs tSend.txt,0
+ prints sys0,2 + //send cmd
+ prints tSend.txt,0 + printh 55 bb
+ prints crcval,2 + prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+ +
+Icon +Icon
+ributes +ributes
@@ -1880,17 +1886,20 @@
+nts +nts
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn3.txt+",button" + tSend.txt="event,buttonPress2,"+entn3.txt+",button"
+ //send calc crc + if(entn3.txt!="")
+ btlen tSend.txt,sys0 + {
+ crcrest 1,0xffff // reset CRC + //send calc crc
+ crcputh 55 bb + btlen tSend.txt,sys0
+ crcputs sys0,2 + crcrest 1,0xffff // reset CRC
+ crcputs tSend.txt,0 + crcputh 55 bb
+ //send cmd + crcputs sys0,2
+ printh 55 bb + crcputs tSend.txt,0
+ prints sys0,2 + //send cmd
+ prints tSend.txt,0 + printh 55 bb
+ prints crcval,2 + prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+ +
+Icon +Icon
+ributes +ributes
@@ -1904,17 +1913,20 @@
+nts +nts
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn4.txt+",button" + tSend.txt="event,buttonPress2,"+entn4.txt+",button"
+ //send calc crc + if(entn4.txt!="")
+ btlen tSend.txt,sys0 + {
+ crcrest 1,0xffff // reset CRC + //send calc crc
+ crcputh 55 bb + btlen tSend.txt,sys0
+ crcputs sys0,2 + crcrest 1,0xffff // reset CRC
+ crcputs tSend.txt,0 + crcputh 55 bb
+ //send cmd + crcputs sys0,2
+ printh 55 bb + crcputs tSend.txt,0
+ prints sys0,2 + //send cmd
+ prints tSend.txt,0 + printh 55 bb
+ prints crcval,2 + prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+ +
+Icon +Icon
+ributes +ributes
@@ -1928,17 +1940,20 @@
+nts +nts
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn5.txt+",button" + tSend.txt="event,buttonPress2,"+entn5.txt+",button"
+ //send calc crc + if(entn5.txt!="")
+ btlen tSend.txt,sys0 + {
+ crcrest 1,0xffff // reset CRC + //send calc crc
+ crcputh 55 bb + btlen tSend.txt,sys0
+ crcputs sys0,2 + crcrest 1,0xffff // reset CRC
+ crcputs tSend.txt,0 + crcputh 55 bb
+ //send cmd + crcputs sys0,2
+ printh 55 bb + crcputs tSend.txt,0
+ prints sys0,2 + //send cmd
+ prints tSend.txt,0 + printh 55 bb
+ prints crcval,2 + prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+ +
+ +
+ributes +ributes

View File

@@ -88,8 +88,8 @@ popupThermo
276 Unique line(s) of event code 276 Unique line(s) of event code
screensaver2 screensaver2
64 Component(s) 64 Component(s)
428 Line(s) of event code 443 Line(s) of event code
266 Unique line(s) of event code 280 Unique line(s) of event code
cardEntities cardEntities
67 Component(s) 67 Component(s)
1205 Line(s) of event code 1205 Line(s) of event code
@@ -98,5 +98,5 @@ cardEntities
Total Total
23 Page(s) 23 Page(s)
881 Component(s) 881 Component(s)
10778 Line(s) of event code 10793 Line(s) of event code
2466 Unique line(s) of event code 2471 Unique line(s) of event code

View File

@@ -903,17 +903,20 @@ Text f1Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn1.txt+",button" tSend.txt="event,buttonPress2,"+entn1.txt+",button"
//send calc crc if(entn1.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f2Icon Text f2Icon
Attributes Attributes
@@ -947,17 +950,20 @@ Text f2Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn2.txt+",button" tSend.txt="event,buttonPress2,"+entn2.txt+",button"
//send calc crc if(entn2.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f3Icon Text f3Icon
Attributes Attributes
@@ -991,17 +997,20 @@ Text f3Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn3.txt+",button" tSend.txt="event,buttonPress2,"+entn3.txt+",button"
//send calc crc if(entn3.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f4Icon Text f4Icon
Attributes Attributes
@@ -1035,17 +1044,20 @@ Text f4Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",button" tSend.txt="event,buttonPress2,"+entn4.txt+",button"
//send calc crc if(entn4.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f5Icon Text f5Icon
Attributes Attributes
@@ -1079,17 +1091,20 @@ Text f5Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn5.txt+",button" tSend.txt="event,buttonPress2,"+entn5.txt+",button"
//send calc crc if(entn5.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text m0 Text m0
Attributes Attributes

View File

@@ -377,17 +377,20 @@ Text f1Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn1.txt+",button" tSend.txt="event,buttonPress2,"+entn1.txt+",button"
//send calc crc if(entn1.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f2Icon Text f2Icon
Attributes Attributes
@@ -401,17 +404,20 @@ Text f2Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn2.txt+",button" tSend.txt="event,buttonPress2,"+entn2.txt+",button"
//send calc crc if(entn2.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f3Icon Text f3Icon
Attributes Attributes
@@ -425,17 +431,20 @@ Text f3Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn3.txt+",button" tSend.txt="event,buttonPress2,"+entn3.txt+",button"
//send calc crc if(entn3.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f4Icon Text f4Icon
Attributes Attributes
@@ -449,17 +458,20 @@ Text f4Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",button" tSend.txt="event,buttonPress2,"+entn4.txt+",button"
//send calc crc if(entn4.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text f5Icon Text f5Icon
Attributes Attributes
@@ -473,17 +485,20 @@ Text f5Icon
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn5.txt+",button" tSend.txt="event,buttonPress2,"+entn5.txt+",button"
//send calc crc if(entn5.txt!="")
btlen tSend.txt,sys0 {
crcrest 1,0xffff // reset CRC //send calc crc
crcputh 55 bb btlen tSend.txt,sys0
crcputs sys0,2 crcrest 1,0xffff // reset CRC
crcputs tSend.txt,0 crcputh 55 bb
//send cmd crcputs sys0,2
printh 55 bb crcputs tSend.txt,0
prints sys0,2 //send cmd
prints tSend.txt,0 printh 55 bb
prints crcval,2 prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text m0 Text m0
Attributes Attributes