add delay to temperature buttons on cardThermo #616 (add nextion2text)

This commit is contained in:
joBr99
2022-12-13 20:21:55 +00:00
committed by github-actions[bot]
parent b6ff404d34
commit 61015f5f2c
6 changed files with 1043 additions and 259 deletions

View File

@@ -13,6 +13,306 @@
│ - // fix touch offset
│ - lcd_dev fffb 0002 0000 0020
│ - page pageStartup
│ --- HMI/n2t-out/cardThermo.txt
├── +++ HMI/US/landscape/n2t-out/cardThermo.txt
│ @@ -358,15 +358,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest2.val>xTempMin1.val)
│ {
│ xTempDest2.val=xTempDest2.val-xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button bUp2
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -376,15 +397,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest2.val<xTempMax1.val)
│ {
│ xTempDest2.val=xTempDest2.val+xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button bt0
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -626,15 +668,33 @@
│ Events
│ Touch Press Event
│ if(xTempDest.val>xTempMin1.val)
│ {
│ xTempDest.val=xTempDest.val-xTempStep1.val
│ }
│ - tmSendTemp.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpd,"
│ + //convert temperature
│ + covx xTempDest.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button btDown1
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -644,15 +704,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest1.val>xTempMin1.val)
│ {
│ xTempDest1.val=xTempDest1.val-xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button btUp
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -662,15 +743,33 @@
│ Events
│ Touch Press Event
│ if(xTempDest.val<xTempMax1.val)
│ {
│ xTempDest.val=xTempDest.val+xTempStep1.val
│ }
│ - tmSendTemp.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpd,"
│ + //convert temperature
│ + covx xTempDest.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button btUp1
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -680,15 +779,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest1.val<xTempMax1.val)
│ {
│ xTempDest1.val=xTempDest1.val+xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Hotspot mSwipeNext
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -715,75 +835,14 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Events
│ Touch Press Event
│ click bPrev,1
│ -Timer tmSendHighLow
│ - Attributes
│ - Scope : local
│ - Period (ms): 800
│ - Enabled : no
│ -
│ - Events
│ - Timer Event
│ - // event,buttonPress2,entn,tempUpd,X
│ - //craft command
│ - tSend.txt="event,buttonPress2,"
│ - tSend.txt+=entn.txt+","
│ - tSend.txt+="tempUpdHighLow,"
│ - //convert temperature
│ - covx xTempDest1.val,tTmp.txt,0,0
│ - tSend.txt+=tTmp.txt
│ - tSend.txt+="|"
│ - covx xTempDest2.val,tTmp.txt,0,0
│ - tSend.txt+=tTmp.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
│ - tmSendHighLow.en=0
│ -
│ -Timer tmSendTemp
│ - Attributes
│ - Scope : local
│ - Period (ms): 800
│ - Enabled : no
│ -
│ - Events
│ - Timer Event
│ - // event,buttonPress2,entn,tempUpd,X
│ - //craft command
│ - tSend.txt="event,buttonPress2,"
│ - tSend.txt+=entn.txt+","
│ - tSend.txt+="tempUpd,"
│ - //convert temperature
│ - covx xTempDest.val,tTmp.txt,0,0
│ - tSend.txt+=tTmp.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
│ - tmSendTemp.en=0
│ -
│ Timer tmSerial
│ Attributes
│ Scope : local
│ Period (ms): 50
│ Enabled : yes
│ Events
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
│ @@ -173,15 +173,15 @@

View File

@@ -694,6 +694,306 @@
│ Scope : local
│ Period (ms): 50
│ Enabled : yes
│ --- HMI/n2t-out/cardThermo.txt
├── +++ HMI/US/portrait/n2t-out/cardThermo.txt
│ @@ -358,15 +358,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest2.val>xTempMin1.val)
│ {
│ xTempDest2.val=xTempDest2.val-xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button bUp2
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -376,15 +397,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest2.val<xTempMax1.val)
│ {
│ xTempDest2.val=xTempDest2.val+xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button bt0
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -626,15 +668,33 @@
│ Events
│ Touch Press Event
│ if(xTempDest.val>xTempMin1.val)
│ {
│ xTempDest.val=xTempDest.val-xTempStep1.val
│ }
│ - tmSendTemp.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpd,"
│ + //convert temperature
│ + covx xTempDest.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button btDown1
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -644,15 +704,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest1.val>xTempMin1.val)
│ {
│ xTempDest1.val=xTempDest1.val-xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button btUp
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -662,15 +743,33 @@
│ Events
│ Touch Press Event
│ if(xTempDest.val<xTempMax1.val)
│ {
│ xTempDest.val=xTempDest.val+xTempStep1.val
│ }
│ - tmSendTemp.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpd,"
│ + //convert temperature
│ + covx xTempDest.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Dual-state Button btUp1
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -680,15 +779,36 @@
│ Events
│ Touch Press Event
│ if(xTempDest1.val<xTempMax1.val)
│ {
│ xTempDest1.val=xTempDest1.val+xTempStep1.val
│ }
│ - tmSendHighLow.en=1
│ + // event,buttonPress2,entn,tempUpd,X
│ + //craft command
│ + tSend.txt="event,buttonPress2,"
│ + tSend.txt+=entn.txt+","
│ + tSend.txt+="tempUpdHighLow,"
│ + //convert temperature
│ + covx xTempDest1.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.txt
│ + tSend.txt+="|"
│ + covx xTempDest2.val,tTmp.txt,0,0
│ + tSend.txt+=tTmp.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
│ Hotspot mSwipeNext
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -715,75 +835,14 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Events
│ Touch Press Event
│ click bPrev,1
│ -Timer tmSendHighLow
│ - Attributes
│ - Scope : local
│ - Period (ms): 800
│ - Enabled : no
│ -
│ - Events
│ - Timer Event
│ - // event,buttonPress2,entn,tempUpd,X
│ - //craft command
│ - tSend.txt="event,buttonPress2,"
│ - tSend.txt+=entn.txt+","
│ - tSend.txt+="tempUpdHighLow,"
│ - //convert temperature
│ - covx xTempDest1.val,tTmp.txt,0,0
│ - tSend.txt+=tTmp.txt
│ - tSend.txt+="|"
│ - covx xTempDest2.val,tTmp.txt,0,0
│ - tSend.txt+=tTmp.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
│ - tmSendHighLow.en=0
│ -
│ -Timer tmSendTemp
│ - Attributes
│ - Scope : local
│ - Period (ms): 800
│ - Enabled : no
│ -
│ - Events
│ - Timer Event
│ - // event,buttonPress2,entn,tempUpd,X
│ - //craft command
│ - tSend.txt="event,buttonPress2,"
│ - tSend.txt+=entn.txt+","
│ - tSend.txt+="tempUpd,"
│ - //convert temperature
│ - covx xTempDest.val,tTmp.txt,0,0
│ - tSend.txt+=tTmp.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
│ - tmSendTemp.en=0
│ -
│ Timer tmSerial
│ Attributes
│ Scope : local
│ Period (ms): 50
│ Enabled : yes
│ Events
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
│ @@ -118,15 +118,15 @@

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2022-12-10 19:17:36.292152828 +0000
+++ /dev/fd/62 2022-12-13 20:21:49.356087313 +0000
+I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt
+I/n2t-out/cardChart.txt
@@ -84,6 +84,306 @@
+ Scope : local
+ Period (ms): 50
+ Enabled : yes
+I/n2t-out/cardThermo.txt
++ HMI/US/portrait/n2t-out/cardThermo.txt
+15 +358,36 @@
+
+nts
+ Touch Press Event
+ if(xTempDest2.val>xTempMin1.val)
+ {
+ xTempDest2.val=xTempDest2.val-xTempStep1.val
+ }
+ tmSendHighLow.en=1
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpdHighLow,"
+ //convert temperature
+ covx xTempDest1.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.txt
+ tSend.txt+="|"
+ covx xTempDest2.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+
+ate Button bUp2
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+15 +397,36 @@
+
+nts
+ Touch Press Event
+ if(xTempDest2.val<xTempMax1.val)
+ {
+ xTempDest2.val=xTempDest2.val+xTempStep1.val
+ }
+ tmSendHighLow.en=1
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpdHighLow,"
+ //convert temperature
+ covx xTempDest1.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.txt
+ tSend.txt+="|"
+ covx xTempDest2.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+
+ate Button bt0
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+15 +668,33 @@
+
+nts
+ Touch Press Event
+ if(xTempDest.val>xTempMin1.val)
+ {
+ xTempDest.val=xTempDest.val-xTempStep1.val
+ }
+ tmSendTemp.en=1
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpd,"
+ //convert temperature
+ covx xTempDest.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+
+ate Button btDown1
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+15 +704,36 @@
+
+nts
+ Touch Press Event
+ if(xTempDest1.val>xTempMin1.val)
+ {
+ xTempDest1.val=xTempDest1.val-xTempStep1.val
+ }
+ tmSendHighLow.en=1
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpdHighLow,"
+ //convert temperature
+ covx xTempDest1.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.txt
+ tSend.txt+="|"
+ covx xTempDest2.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+
+ate Button btUp
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+15 +743,33 @@
+
+nts
+ Touch Press Event
+ if(xTempDest.val<xTempMax1.val)
+ {
+ xTempDest.val=xTempDest.val+xTempStep1.val
+ }
+ tmSendTemp.en=1
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpd,"
+ //convert temperature
+ covx xTempDest.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+
+ate Button btUp1
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+15 +779,36 @@
+
+nts
+ Touch Press Event
+ if(xTempDest1.val<xTempMax1.val)
+ {
+ xTempDest1.val=xTempDest1.val+xTempStep1.val
+ }
+ tmSendHighLow.en=1
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpdHighLow,"
+ //convert temperature
+ covx xTempDest1.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.txt
+ tSend.txt+="|"
+ covx xTempDest2.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+
+ mSwipeNext
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+75 +835,14 @@
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+
+nts
+ Touch Press Event
+ click bPrev,1
+
+mSendHighLow
+ributes
+ Scope : local
+ Period (ms): 800
+ Enabled : no
+
+nts
+ Timer Event
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpdHighLow,"
+ //convert temperature
+ covx xTempDest1.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.txt
+ tSend.txt+="|"
+ covx xTempDest2.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+ tmSendHighLow.en=0
+
+mSendTemp
+ributes
+ Scope : local
+ Period (ms): 800
+ Enabled : no
+
+nts
+ Timer Event
+ // event,buttonPress2,entn,tempUpd,X
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="tempUpd,"
+ //convert temperature
+ covx xTempDest.val,tTmp.txt,0,0
+ tSend.txt+=tTmp.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
+ tmSendTemp.en=0
+
+mSerial
+ributes
+ Scope : local
+ Period (ms): 50
+ Enabled : yes
+
+nts
+I/n2t-out/pageStartup.txt
++ HMI/US/portrait/n2t-out/pageStartup.txt
+I/n2t-out/popupInSel.txt

View File

@@ -746,28 +746,7 @@ Dual-state Button bDown2
{
xTempDest2.val=xTempDest2.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Dual-state Button bUp2
Attributes
@@ -807,28 +786,7 @@ Dual-state Button bUp2
{
xTempDest2.val=xTempDest2.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Dual-state Button bt0
Attributes
@@ -1298,25 +1256,7 @@ Dual-state Button btDown
{
xTempDest.val=xTempDest.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendTemp.en=1
Dual-state Button btDown1
Attributes
@@ -1356,28 +1296,7 @@ Dual-state Button btDown1
{
xTempDest1.val=xTempDest1.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Dual-state Button btUp
Attributes
@@ -1417,25 +1336,7 @@ Dual-state Button btUp
{
xTempDest.val=xTempDest.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendTemp.en=1
Dual-state Button btUp1
Attributes
@@ -1475,28 +1376,7 @@ Dual-state Button btUp1
{
xTempDest1.val=xTempDest1.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Hotspot mSwipeNext
Attributes
@@ -1558,6 +1438,69 @@ Hotspot mSwipeUp
Touch Press Event
click bPrev,1
Timer tmSendHighLow
Attributes
ID : 54
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=0
Timer tmSendTemp
Attributes
ID : 53
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendTemp.en=0
Timer tmSerial
Attributes
ID : 3

View File

@@ -63,9 +63,9 @@ cardAlarm
443 Line(s) of event code
263 Unique line(s) of event code
cardThermo
53 Component(s)
612 Line(s) of event code
318 Unique line(s) of event code
55 Component(s)
555 Line(s) of event code
322 Unique line(s) of event code
cardMedia
57 Component(s)
660 Line(s) of event code
@@ -77,6 +77,6 @@ cardEntities
Total
18 Page(s)
633 Component(s)
7932 Line(s) of event code
2004 Unique line(s) of event code
635 Component(s)
7875 Line(s) of event code
2008 Unique line(s) of event code

View File

@@ -362,28 +362,7 @@ Dual-state Button bDown2
{
xTempDest2.val=xTempDest2.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Dual-state Button bUp2
Attributes
@@ -401,28 +380,7 @@ Dual-state Button bUp2
{
xTempDest2.val=xTempDest2.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Dual-state Button bt0
Attributes
@@ -672,25 +630,7 @@ Dual-state Button btDown
{
xTempDest.val=xTempDest.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendTemp.en=1
Dual-state Button btDown1
Attributes
@@ -708,28 +648,7 @@ Dual-state Button btDown1
{
xTempDest1.val=xTempDest1.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Dual-state Button btUp
Attributes
@@ -747,25 +666,7 @@ Dual-state Button btUp
{
xTempDest.val=xTempDest.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendTemp.en=1
Dual-state Button btUp1
Attributes
@@ -783,28 +684,7 @@ Dual-state Button btUp1
{
xTempDest1.val=xTempDest1.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=1
Hotspot mSwipeNext
Attributes
@@ -839,6 +719,67 @@ Hotspot mSwipeUp
Touch Press Event
click bPrev,1
Timer tmSendHighLow
Attributes
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendHighLow.en=0
Timer tmSendTemp
Attributes
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
tSend.txt+=tTmp.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
tmSendTemp.en=0
Timer tmSerial
Attributes
Scope : local