Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text)

This commit is contained in:
joBr99
2022-12-19 15:04:45 +00:00
committed by github-actions[bot]
parent 8b1f80296b
commit e4adeb645a
22 changed files with 2893 additions and 1624 deletions

View File

@@ -1,5 +1,17 @@
--- HMI/n2t-out --- HMI/n2t-out
+++ HMI/US/landscape/n2t-out +++ HMI/US/landscape/n2t-out
├── file list
│ @@ -12,9 +12,8 @@
│ pageTest.txt
│ popupFan.txt
│ popupInSel.txt
│ popupLight.txt
│ popupNotify.txt
│ popupShutter.txt
│ popupThermo.txt
│ -screensaver.txt
│ -screensaver2.txt
│ +screensaver.txt
│ --- HMI/n2t-out/Program.s.txt │ --- HMI/n2t-out/Program.s.txt
├── +++ HMI/US/landscape/n2t-out/Program.s.txt ├── +++ HMI/US/landscape/n2t-out/Program.s.txt
│ @@ -10,10 +10,7 @@ │ @@ -10,10 +10,7 @@
@@ -13,306 +25,27 @@
│ - // fix touch offset │ - // fix touch offset
│ - lcd_dev fffb 0002 0000 0020 │ - lcd_dev fffb 0002 0000 0020
│ - page pageStartup │ - page pageStartup
│ --- HMI/n2t-out/cardThermo.txt │ --- HMI/n2t-out/cardGrid.txt
├── +++ HMI/US/landscape/n2t-out/cardThermo.txt ├── +++ HMI/US/landscape/n2t-out/cardGrid.txt
│ @@ -358,15 +358,36 @@ │ @@ -854,18 +854,14 @@
{
Events page pageStartup
Touch Press Event }
if(xTempDest2.val>xTempMin1.val) if(tId.txt=="screensaver")
│ { {
xTempDest2.val=xTempDest2.val-xTempStep1.val page screensaver
│ } }
│ - tmSendHighLow.en=1 │ - if(tId.txt=="screensaver2")
+ // event,buttonPress2,entn,tempUpd,X - {
+ //craft command - page screensaver2
+ tSend.txt="event,buttonPress2," - }
+ tSend.txt+=entn.txt+"," if(tId.txt=="cardEntities")
+ tSend.txt+="tempUpdHighLow," {
+ //convert temperature page cardEntities
+ covx xTempDest1.val,tTmp.txt,0,0 }
+ tSend.txt+=tTmp.txt if(tId.txt=="cardGrid")
+ tSend.txt+="|" {
+ covx xTempDest2.val,tTmp.txt,0,0 page cardGrid
│ + 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/n2t-out/pageStartup.txt
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt ├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
│ @@ -173,15 +173,15 @@ │ @@ -173,15 +173,15 @@
@@ -332,6 +65,25 @@
│ crcputs sys0,2 │ crcputs sys0,2
│ crcputs tSend.txt,0 │ crcputs tSend.txt,0
│ //send cmd │ //send cmd
│ @@ -314,18 +314,14 @@
│ {
│ page pageStartup
│ }
│ if(tId.txt=="screensaver")
│ {
│ page screensaver
│ }
│ - if(tId.txt=="screensaver2")
│ - {
│ - page screensaver2
│ - }
│ if(tId.txt=="cardEntities")
│ {
│ page cardEntities
│ }
│ if(tId.txt=="cardGrid")
│ {
│ page cardGrid
│ --- HMI/n2t-out/screensaver.txt │ --- HMI/n2t-out/screensaver.txt
├── +++ HMI/US/landscape/n2t-out/screensaver.txt ├── +++ HMI/US/landscape/n2t-out/screensaver.txt
│ @@ -29,29 +29,20 @@ │ @@ -29,29 +29,20 @@
@@ -364,7 +116,7 @@
│ Max. Text Size: 25 │ Max. Text Size: 25
│ Variable (string) tInstruction │ Variable (string) tInstruction
│ @@ -103,34 +94,14 @@ │ @@ -103,24 +94,14 @@
│ Value: 0 │ Value: 0
│ Variable (int32) ycR │ Variable (int32) ycR
@@ -382,16 +134,6 @@
│ - Text : │ - Text :
│ - Max. Text Size : 10 │ - Max. Text Size : 10
│ - │ -
│ - Events
│ - Touch Press Event
│ - if(tDate.x==0)
│ - {
│ - vis m0,1
│ - }else
│ - {
│ - vis m0,1
│ - }
│ -
│ Text t10 │ Text t10
│ Attributes │ Attributes
│ Scope : local │ Scope : local
@@ -399,7 +141,7 @@
│ Disable release event after dragging: 0 │ Disable release event after dragging: 0
│ Send Component ID : disabled │ Send Component ID : disabled
│ Associated Keyboard : none │ Associated Keyboard : none
│ @@ -380,15 +351,15 @@ │ @@ -370,15 +351,15 @@
│ Text tTime │ Text tTime
│ Attributes │ Attributes
│ Scope : local │ Scope : local

View File

@@ -746,28 +746,7 @@ Dual-state Button bDown2
{ {
xTempDest2.val=xTempDest2.val-xTempStep1.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bUp2
Attributes Attributes
@@ -807,28 +786,7 @@ Dual-state Button bUp2
{ {
xTempDest2.val=xTempDest2.val+xTempStep1.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bt0
Attributes Attributes
@@ -1298,25 +1256,7 @@ Dual-state Button btDown
{ {
xTempDest.val=xTempDest.val-xTempStep1.val xTempDest.val=xTempDest.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btDown1
Attributes Attributes
@@ -1356,28 +1296,7 @@ Dual-state Button btDown1
{ {
xTempDest1.val=xTempDest1.val-xTempStep1.val xTempDest1.val=xTempDest1.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button btUp
Attributes Attributes
@@ -1417,25 +1336,7 @@ Dual-state Button btUp
{ {
xTempDest.val=xTempDest.val+xTempStep1.val xTempDest.val=xTempDest.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btUp1
Attributes Attributes
@@ -1475,28 +1376,7 @@ Dual-state Button btUp1
{ {
xTempDest1.val=xTempDest1.val+xTempStep1.val xTempDest1.val=xTempDest1.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Hotspot mSwipeNext
Attributes Attributes
@@ -1546,7 +1426,7 @@ Hotspot mSwipeUp
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 27 x coordinate : 12
y coordinate : 0 y coordinate : 0
Width : 426 Width : 426
Height : 9 Height : 9
@@ -1558,6 +1438,69 @@ Hotspot mSwipeUp
Touch Press Event Touch Press Event
click bPrev,1 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 Timer tmSerial
Attributes Attributes
ID : 3 ID : 3

View File

@@ -46,10 +46,6 @@ cardQR
32 Component(s) 32 Component(s)
425 Line(s) of event code 425 Line(s) of event code
244 Unique line(s) of event code 244 Unique line(s) of event code
cardThermo
53 Component(s)
612 Line(s) of event code
318 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1169 Line(s) of event code 1169 Line(s) of event code
@@ -74,9 +70,13 @@ cardGrid
42 Component(s) 42 Component(s)
514 Line(s) of event code 514 Line(s) of event code
293 Unique line(s) of event code 293 Unique line(s) of event code
cardThermo
55 Component(s)
555 Line(s) of event code
322 Unique line(s) of event code
Total Total
18 Page(s) 18 Page(s)
626 Component(s) 628 Component(s)
7881 Line(s) of event code 7824 Line(s) of event code
1988 Unique line(s) of event code 1992 Unique line(s) of event code

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 45 Text : 46
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0

View File

@@ -362,28 +362,7 @@ Dual-state Button bDown2
{ {
xTempDest2.val=xTempDest2.val-xTempStep1.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bUp2
Attributes Attributes
@@ -401,28 +380,7 @@ Dual-state Button bUp2
{ {
xTempDest2.val=xTempDest2.val+xTempStep1.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bt0
Attributes Attributes
@@ -672,25 +630,7 @@ Dual-state Button btDown
{ {
xTempDest.val=xTempDest.val-xTempStep1.val xTempDest.val=xTempDest.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btDown1
Attributes Attributes
@@ -708,28 +648,7 @@ Dual-state Button btDown1
{ {
xTempDest1.val=xTempDest1.val-xTempStep1.val xTempDest1.val=xTempDest1.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button btUp
Attributes Attributes
@@ -747,25 +666,7 @@ Dual-state Button btUp
{ {
xTempDest.val=xTempDest.val+xTempStep1.val xTempDest.val=xTempDest.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btUp1
Attributes Attributes
@@ -783,28 +684,7 @@ Dual-state Button btUp1
{ {
xTempDest1.val=xTempDest1.val+xTempStep1.val xTempDest1.val=xTempDest1.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Hotspot mSwipeNext
Attributes Attributes
@@ -839,6 +719,67 @@ Hotspot mSwipeUp
Touch Press Event Touch Press Event
click bPrev,1 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 Timer tmSerial
Attributes Attributes
Scope : local Scope : local

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 45 Text : 46
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0

View File

@@ -1,5 +1,17 @@
--- HMI/n2t-out --- HMI/n2t-out
+++ HMI/US/portrait/n2t-out +++ HMI/US/portrait/n2t-out
├── file list
│ @@ -12,9 +12,8 @@
│ pageTest.txt
│ popupFan.txt
│ popupInSel.txt
│ popupLight.txt
│ popupNotify.txt
│ popupShutter.txt
│ popupThermo.txt
│ -screensaver.txt
│ -screensaver2.txt
│ +screensaver.txt
│ --- HMI/n2t-out/Program.s.txt │ --- HMI/n2t-out/Program.s.txt
├── +++ HMI/US/portrait/n2t-out/Program.s.txt ├── +++ HMI/US/portrait/n2t-out/Program.s.txt
│ @@ -10,10 +10,10 @@ │ @@ -10,10 +10,10 @@
@@ -694,306 +706,26 @@
│ Scope : local │ Scope : local
│ Period (ms): 50 │ Period (ms): 50
│ Enabled : yes │ Enabled : yes
│ --- HMI/n2t-out/cardThermo.txt
├── +++ HMI/US/portrait/n2t-out/cardThermo.txt
│ @@ -358,15 +358,36 @@
Events @@ -854,18 +858,14 @@
Touch Press Event {
if(xTempDest2.val>xTempMin1.val) page pageStartup
{ }
xTempDest2.val=xTempDest2.val-xTempStep1.val if(tId.txt=="screensaver")
} {
- tmSendHighLow.en=1 page screensaver
+ // event,buttonPress2,entn,tempUpd,X }
+ //craft command - if(tId.txt=="screensaver2")
+ tSend.txt="event,buttonPress2," - {
+ tSend.txt+=entn.txt+"," - page screensaver2
+ tSend.txt+="tempUpdHighLow," - }
+ //convert temperature if(tId.txt=="cardEntities")
+ covx xTempDest1.val,tTmp.txt,0,0 {
+ tSend.txt+=tTmp.txt page cardEntities
+ tSend.txt+="|" }
+ covx xTempDest2.val,tTmp.txt,0,0 if(tId.txt=="cardGrid")
+ tSend.txt+=tTmp.txt {
+ //send calc crc page cardGrid
│ + 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/n2t-out/pageStartup.txt
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt ├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
│ @@ -118,15 +118,15 @@ │ @@ -118,15 +118,15 @@
@@ -1030,6 +762,25 @@
│ crcputs sys0,2 │ crcputs sys0,2
│ crcputs tSend.txt,0 │ crcputs tSend.txt,0
│ //send cmd │ //send cmd
│ @@ -314,18 +314,14 @@
│ {
│ page pageStartup
│ }
│ if(tId.txt=="screensaver")
│ {
│ page screensaver
│ }
│ - if(tId.txt=="screensaver2")
│ - {
│ - page screensaver2
│ - }
│ if(tId.txt=="cardEntities")
│ {
│ page cardEntities
│ }
│ if(tId.txt=="cardGrid")
│ {
│ page cardGrid
│ --- HMI/n2t-out/popupInSel.txt │ --- HMI/n2t-out/popupInSel.txt
├── +++ HMI/US/portrait/n2t-out/popupInSel.txt ├── +++ HMI/US/portrait/n2t-out/popupInSel.txt
│ @@ -632,98 +632,14 @@ │ @@ -632,98 +632,14 @@
@@ -1162,7 +913,7 @@
│ Max. Text Size: 25 │ Max. Text Size: 25
│ Variable (string) tInstruction │ Variable (string) tInstruction
│ @@ -103,34 +94,14 @@ │ @@ -103,24 +94,14 @@
│ Value: 0 │ Value: 0
│ Variable (int32) ycR │ Variable (int32) ycR
@@ -1180,16 +931,6 @@
│ - Text : │ - Text :
│ - Max. Text Size : 10 │ - Max. Text Size : 10
│ - │ -
│ - Events
│ - Touch Press Event
│ - if(tDate.x==0)
│ - {
│ - vis m0,1
│ - }else
│ - {
│ - vis m0,1
│ - }
│ -
│ Text t10 │ Text t10
│ Attributes │ Attributes
│ Scope : local │ Scope : local

View File

@@ -1,4 +1,16 @@
+++ /dev/fd/62 2022-12-14 23:02:23.381717287 +0000 +++ /dev/fd/62 2022-12-19 15:04:38.562549259 +0000
+le list
+ +12,8 @@
+t.txt
+n.txt
+Sel.txt
+ght.txt
+tify.txt
+utter.txt
+ermo.txt
+aver.txt
+aver2.txt
+aver.txt
+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
+I/n2t-out/cardChart.txt +I/n2t-out/cardChart.txt
@@ -84,308 +96,47 @@
+ Scope : local + Scope : local
+ Period (ms): 50 + Period (ms): 50
+ Enabled : yes + Enabled : yes
+I/n2t-out/cardThermo.txt
++ HMI/US/portrait/n2t-out/cardThermo.txt
+15 +358,36 @@
+ +
+nts +18 +858,14 @@
+ Touch Press Event + {
+ if(xTempDest2.val>xTempMin1.val) + page pageStartup
+ { + }
+ xTempDest2.val=xTempDest2.val-xTempStep1.val + if(tId.txt=="screensaver")
+ } + {
+ tmSendHighLow.en=1 + page screensaver
+ // event,buttonPress2,entn,tempUpd,X + }
+ //craft command + if(tId.txt=="screensaver2")
+ tSend.txt="event,buttonPress2," + {
+ tSend.txt+=entn.txt+"," + page screensaver2
+ tSend.txt+="tempUpdHighLow," + }
+ //convert temperature + if(tId.txt=="cardEntities")
+ covx xTempDest1.val,tTmp.txt,0,0 + {
+ tSend.txt+=tTmp.txt + page cardEntities
+ tSend.txt+="|" + }
+ covx xTempDest2.val,tTmp.txt,0,0 + if(tId.txt=="cardGrid")
+ tSend.txt+=tTmp.txt + {
+ //send calc crc + page cardGrid
+ 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 +I/n2t-out/pageStartup.txt
++ HMI/US/portrait/n2t-out/pageStartup.txt ++ HMI/US/portrait/n2t-out/pageStartup.txt
+18 +314,14 @@
+ {
+ page pageStartup
+ }
+ if(tId.txt=="screensaver")
+ {
+ page screensaver
+ }
+ if(tId.txt=="screensaver2")
+ {
+ page screensaver2
+ }
+ if(tId.txt=="cardEntities")
+ {
+ page cardEntities
+ }
+ if(tId.txt=="cardGrid")
+ {
+ page cardGrid
+I/n2t-out/popupInSel.txt +I/n2t-out/popupInSel.txt
++ HMI/US/portrait/n2t-out/popupInSel.txt ++ HMI/US/portrait/n2t-out/popupInSel.txt
+98 +632,14 @@ +98 +632,14 @@
@@ -518,7 +269,7 @@
+ Max. Text Size: 25 + Max. Text Size: 25
+ +
+e (string) tInstruction +e (string) tInstruction
+34 +94,14 @@ +24 +94,14 @@
+ Value: 0 + Value: 0
+ +
+e (int32) ycR +e (int32) ycR
@@ -536,16 +287,6 @@
+ Text : + Text :
+ Max. Text Size : 10 + Max. Text Size : 10
+ +
+nts
+ Touch Press Event
+ if(tDate.x==0)
+ {
+ vis m0,1
+ }else
+ {
+ vis m0,1
+ }
+
+0 +0
+ributes +ributes
+ Scope : local + Scope : local

View File

@@ -81,28 +81,28 @@ Variable (string) strCommand
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 41 ID : 44
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 40 ID : 43
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tSend Variable (string) tSend
Attributes Attributes
ID : 43 ID : 46
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 42 ID : 45
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
@@ -165,14 +165,14 @@ Variable (string) va7
XFloat xTempDest XFloat xTempDest
Attributes Attributes
ID : 45 ID : 48
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 100 x coordinate : 89
y coordinate : 228 y coordinate : 243
Width : 120 Width : 120
Height : 60 Height : 60
Effect : load Effect : load
@@ -201,8 +201,8 @@ XFloat xTempDest1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 174 x coordinate : 166
y coordinate : 227 y coordinate : 228
Width : 120 Width : 120
Height : 60 Height : 60
Effect : load Effect : load
@@ -225,14 +225,14 @@ XFloat xTempDest1
XFloat xTempDest2 XFloat xTempDest2
Attributes Attributes
ID : 38 ID : 41
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 21 x coordinate : 13
y coordinate : 227 y coordinate : 228
Width : 120 Width : 120
Height : 60 Height : 60
Effect : load Effect : load
@@ -261,10 +261,10 @@ XFloat xTempMax1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 262 x coordinate : 278
y coordinate : 202 y coordinate : 180
Width : 45 Width : 23
Height : 20 Height : 23
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -291,9 +291,9 @@ XFloat xTempMin1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 262 x coordinate : 254
y coordinate : 180 y coordinate : 181
Width : 50 Width : 24
Height : 22 Height : 22
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -321,8 +321,8 @@ XFloat xTempStep1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 263 x coordinate : 256
y coordinate : 290 y coordinate : 201
Width : 45 Width : 45
Height : 20 Height : 20
Effect : load Effect : load
@@ -345,14 +345,14 @@ XFloat xTempStep1
Text tCF Text tCF
Attributes Attributes
ID : 47 ID : 50
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 221 x coordinate : 210
y coordinate : 225 y coordinate : 242
Width : 25 Width : 25
Height : 30 Height : 30
Effect : load Effect : load
@@ -381,8 +381,8 @@ Text tCF1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 295 x coordinate : 287
y coordinate : 225 y coordinate : 226
Width : 25 Width : 25
Height : 30 Height : 30
Effect : load Effect : load
@@ -405,14 +405,14 @@ Text tCF1
Text tCF2 Text tCF2
Attributes Attributes
ID : 37 ID : 40
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 142 x coordinate : 134
y coordinate : 225 y coordinate : 226
Width : 25 Width : 25
Height : 30 Height : 30
Effect : load Effect : load
@@ -435,14 +435,14 @@ Text tCF2
Text tCurTemp Text tCurTemp
Attributes Attributes
ID : 48 ID : 51
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 30 x coordinate : 37
y coordinate : 112 y coordinate : 113
Width : 115 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
@@ -465,14 +465,14 @@ Text tCurTemp
Text tCurTempLbl Text tCurTempLbl
Attributes Attributes
ID : 34 ID : 37
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 30 x coordinate : 36
y coordinate : 76 y coordinate : 79
Width : 115 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
@@ -511,7 +511,7 @@ Text tHeading
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : center
@@ -525,14 +525,14 @@ Text tHeading
Text tStateLbl Text tStateLbl
Attributes Attributes
ID : 35 ID : 38
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 174 x coordinate : 167
y coordinate : 75 y coordinate : 79
Width : 115 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
@@ -561,10 +561,10 @@ Text tStatus
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 174 x coordinate : 166
y coordinate : 110 y coordinate : 113
Width : 115 Width : 115
Height : 56 Height : 54
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -575,7 +575,7 @@ Text tStatus
Back. Color : 6371 Back. Color : 6371
Font Color : 50712 Font Color : 50712
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : top
Input Type : character Input Type : character
Text : Text :
Max. Text Size : 40 Max. Text Size : 40
@@ -710,14 +710,14 @@ Button bPrev
Dual-state Button bDown2 Dual-state Button bDown2
Attributes Attributes
ID : 39 ID : 42
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 57 x coordinate : 49
y coordinate : 288 y coordinate : 289
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -746,39 +746,18 @@ Dual-state Button bDown2
{ {
xTempDest2.val=xTempDest2.val-xTempStep1.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bUp2
Attributes Attributes
ID : 36 ID : 39
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 57 x coordinate : 49
y coordinate : 176 y coordinate : 177
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -791,7 +770,7 @@ Dual-state Button bUp2
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
Font Color (Unpressed) : 50712 Font Color (Unpressed) : 50712
Font Color (Pressed) : 64512 Font Color (Pressed) : 50712
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
State : unpressed State : unpressed
@@ -807,28 +786,7 @@ Dual-state Button bUp2
{ {
xTempDest2.val=xTempDest2.val+xTempStep1.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bt0
Attributes Attributes
@@ -838,8 +796,8 @@ Dual-state Button bt0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 36 x coordinate : 32
y coordinate : 359 y coordinate : 368
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -847,7 +805,7 @@ Dual-state Button bt0
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -887,8 +845,8 @@ Dual-state Button bt1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 102 x coordinate : 100
y coordinate : 359 y coordinate : 368
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -896,7 +854,7 @@ Dual-state Button bt1
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -937,7 +895,7 @@ Dual-state Button bt2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 168 x coordinate : 168
y coordinate : 359 y coordinate : 368
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -945,7 +903,7 @@ Dual-state Button bt2
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -985,8 +943,8 @@ Dual-state Button bt3
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 234 x coordinate : 236
y coordinate : 359 y coordinate : 368
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -994,7 +952,7 @@ Dual-state Button bt3
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1034,8 +992,8 @@ Dual-state Button bt4
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 36 x coordinate : 32
y coordinate : 424 y coordinate : 423
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1043,7 +1001,7 @@ Dual-state Button bt4
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1083,8 +1041,8 @@ Dual-state Button bt5
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 102 x coordinate : 100
y coordinate : 424 y coordinate : 423
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1092,7 +1050,7 @@ Dual-state Button bt5
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1133,7 +1091,7 @@ Dual-state Button bt6
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 168 x coordinate : 168
y coordinate : 424 y coordinate : 423
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1141,7 +1099,7 @@ Dual-state Button bt6
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1181,8 +1139,8 @@ Dual-state Button bt7
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 234 x coordinate : 236
y coordinate : 424 y coordinate : 423
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1190,7 +1148,7 @@ Dual-state Button bt7
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1230,8 +1188,8 @@ Dual-state Button btDetail
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 267 x coordinate : 126
y coordinate : 306 y coordinate : 308
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1239,12 +1197,12 @@ Dual-state Button btDetail
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 1 Font ID : 3
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
Font Color (Unpressed) : 50712 Font Color (Unpressed) : 50712
Font Color (Pressed) : 64512 Font Color (Pressed) : 50712
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
State : unpressed State : unpressed
@@ -1262,22 +1220,22 @@ Dual-state Button btDetail
Dual-state Button btDown Dual-state Button btDown
Attributes Attributes
ID : 46 ID : 49
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 136 x coordinate : 16
y coordinate : 289 y coordinate : 239
Width : 50 Width : 65
Height : 50 Height : 65
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 3 Font ID : 4
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1298,25 +1256,7 @@ Dual-state Button btDown
{ {
xTempDest.val=xTempDest.val-xTempStep1.val xTempDest.val=xTempDest.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btDown1
Attributes Attributes
@@ -1326,8 +1266,8 @@ Dual-state Button btDown1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 210 x coordinate : 202
y coordinate : 288 y coordinate : 289
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1356,47 +1296,26 @@ Dual-state Button btDown1
{ {
xTempDest1.val=xTempDest1.val-xTempStep1.val xTempDest1.val=xTempDest1.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button btUp
Attributes Attributes
ID : 44 ID : 47
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 136 x coordinate : 239
y coordinate : 177 y coordinate : 239
Width : 50 Width : 65
Height : 50 Height : 65
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 3 Font ID : 4
Back. Color (Unpressed) : 6371 Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
@@ -1417,25 +1336,7 @@ Dual-state Button btUp
{ {
xTempDest.val=xTempDest.val+xTempStep1.val xTempDest.val=xTempDest.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btUp1
Attributes Attributes
@@ -1445,8 +1346,8 @@ Dual-state Button btUp1
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 210 x coordinate : 202
y coordinate : 176 y coordinate : 177
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1475,6 +1376,77 @@ Dual-state Button btUp1
{ {
xTempDest1.val=xTempDest1.val+xTempStep1.val xTempDest1.val=xTempDest1.val+xTempStep1.val
} }
tmSendHighLow.en=1
Hotspot mSwipeNext
Attributes
ID : 34
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 312
y coordinate : 5
Width : 8
Height : 475
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bNext,1
Hotspot mSwipePrev
Attributes
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 11
Width : 7
Height : 465
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Hotspot mSwipeUp
Attributes
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 0
Width : 308
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
Events
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 // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
@@ -1497,66 +1469,37 @@ Dual-state Button btUp1
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
tmSendHighLow.en=0
Hotspot mSwipeNext Timer tmSendTemp
Attributes Attributes
ID : 49 ID : 53
Scope : local Scope : local
Dragging : 0 Period (ms): 800
Disable release event after dragging: 0 Enabled : no
Send Component ID : disabled
Opacity : 127
x coordinate : 310
y coordinate : 5
Width : 8
Height : 470
Effect : load
Effect Priority : 0
Effect Time : 300
Events Events
Touch Press Event Timer Event
click bNext,1 // event,buttonPress2,entn,tempUpd,X
//craft command
Hotspot mSwipePrev tSend.txt="event,buttonPress2,"
Attributes tSend.txt+=entn.txt+","
ID : 51 tSend.txt+="tempUpd,"
Scope : local //convert temperature
Dragging : 0 covx xTempDest.val,tTmp.txt,0,0
Disable release event after dragging: 0 tSend.txt+=tTmp.txt
Send Component ID : disabled //send calc crc
Opacity : 127 btlen tSend.txt,sys0
x coordinate : 0 crcrest 1,0xffff // reset CRC
y coordinate : 5 crcputh 55 bb
Width : 8 crcputs sys0,2
Height : 470 crcputs tSend.txt,0
Effect : load //send cmd
Effect Priority : 0 printh 55 bb
Effect Time : 300 prints sys0,2
prints tSend.txt,0
Events prints crcval,2
Touch Press Event tmSendTemp.en=0
click bPrev,1
Hotspot mSwipeUp
Attributes
ID : 50
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 0
Width : 300
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Timer tmSerial Timer tmSerial
Attributes Attributes

View File

@@ -10,10 +10,6 @@ pageTest
14 Component(s) 14 Component(s)
14 Line(s) of event code 14 Line(s) of event code
14 Unique line(s) of event code 14 Unique line(s) of event code
pageStartup
19 Component(s)
181 Line(s) of event code
129 Unique line(s) of event code
popupLight popupLight
28 Component(s) 28 Component(s)
408 Line(s) of event code 408 Line(s) of event code
@@ -34,10 +30,10 @@ popupInSel
34 Component(s) 34 Component(s)
533 Line(s) of event code 533 Line(s) of event code
259 Unique line(s) of event code 259 Unique line(s) of event code
cardThermo pageStartup
53 Component(s) 19 Component(s)
612 Line(s) of event code 181 Line(s) of event code
318 Unique line(s) of event code 129 Unique line(s) of event code
cardPower cardPower
43 Component(s) 43 Component(s)
439 Line(s) of event code 439 Line(s) of event code
@@ -74,9 +70,13 @@ cardEntities
77 Component(s) 77 Component(s)
1395 Line(s) of event code 1395 Line(s) of event code
619 Unique line(s) of event code 619 Unique line(s) of event code
cardThermo
55 Component(s)
555 Line(s) of event code
322 Unique line(s) of event code
Total Total
18 Page(s) 18 Page(s)
638 Component(s) 640 Component(s)
8028 Line(s) of event code 7971 Line(s) of event code
2025 Unique line(s) of event code 2029 Unique line(s) of event code

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 45 Text : 46
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0

View File

@@ -362,28 +362,7 @@ Dual-state Button bDown2
{ {
xTempDest2.val=xTempDest2.val-xTempStep1.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bUp2
Attributes Attributes
@@ -401,28 +380,7 @@ Dual-state Button bUp2
{ {
xTempDest2.val=xTempDest2.val+xTempStep1.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button bt0
Attributes Attributes
@@ -672,25 +630,7 @@ Dual-state Button btDown
{ {
xTempDest.val=xTempDest.val-xTempStep1.val xTempDest.val=xTempDest.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btDown1
Attributes Attributes
@@ -708,28 +648,7 @@ Dual-state Button btDown1
{ {
xTempDest1.val=xTempDest1.val-xTempStep1.val xTempDest1.val=xTempDest1.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Dual-state Button btUp
Attributes Attributes
@@ -747,25 +666,7 @@ Dual-state Button btUp
{ {
xTempDest.val=xTempDest.val+xTempStep1.val xTempDest.val=xTempDest.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendTemp.en=1
//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 Dual-state Button btUp1
Attributes Attributes
@@ -783,28 +684,7 @@ Dual-state Button btUp1
{ {
xTempDest1.val=xTempDest1.val+xTempStep1.val xTempDest1.val=xTempDest1.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X tmSendHighLow.en=1
//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 Hotspot mSwipeNext
Attributes Attributes
@@ -839,6 +719,67 @@ Hotspot mSwipeUp
Touch Press Event Touch Press Event
click bPrev,1 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 Timer tmSerial
Attributes Attributes
Scope : local Scope : local

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 45 Text : 46
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0

View File

@@ -1304,6 +1304,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -22,10 +22,10 @@ pageTest
20 Component(s) 20 Component(s)
65 Line(s) of event code 65 Line(s) of event code
63 Unique line(s) of event code 63 Unique line(s) of event code
pageStartup screensaver
19 Component(s) 47 Component(s)
181 Line(s) of event code 411 Line(s) of event code
129 Unique line(s) of event code 299 Unique line(s) of event code
popupFan popupFan
27 Component(s) 27 Component(s)
351 Line(s) of event code 351 Line(s) of event code
@@ -42,18 +42,18 @@ popupShutter
25 Component(s) 25 Component(s)
398 Line(s) of event code 398 Line(s) of event code
218 Unique line(s) of event code 218 Unique line(s) of event code
cardGrid pageStartup
42 Component(s) 19 Component(s)
514 Line(s) of event code 185 Line(s) of event code
293 Unique line(s) of event code 131 Unique line(s) of event code
cardPower cardPower
43 Component(s) 43 Component(s)
439 Line(s) of event code 439 Line(s) of event code
299 Unique line(s) of event code 299 Unique line(s) of event code
screensaver screensaver2
47 Component(s) 43 Component(s)
418 Line(s) of event code 360 Line(s) of event code
302 Unique line(s) of event code 253 Unique line(s) of event code
cardQR cardQR
32 Component(s) 32 Component(s)
425 Line(s) of event code 425 Line(s) of event code
@@ -66,6 +66,10 @@ cardThermo
55 Component(s) 55 Component(s)
555 Line(s) of event code 555 Line(s) of event code
322 Unique line(s) of event code 322 Unique line(s) of event code
cardGrid
42 Component(s)
518 Line(s) of event code
295 Unique line(s) of event code
cardMedia cardMedia
57 Component(s) 57 Component(s)
660 Line(s) of event code 660 Line(s) of event code
@@ -76,7 +80,7 @@ cardEntities
532 Unique line(s) of event code 532 Unique line(s) of event code
Total Total
18 Page(s) 19 Page(s)
635 Component(s) 678 Component(s)
7884 Line(s) of event code 8245 Line(s) of event code
2009 Unique line(s) of event code 2013 Unique line(s) of event code

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 45 Text : 46
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
@@ -613,6 +613,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -158,16 +158,6 @@ Text m0
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Events
Touch Press Event
if(tDate.x==0)
{
vis m0,1
}else
{
vis m0,1
}
Text t10 Text t10
Attributes Attributes
ID : 15 ID : 15

File diff suppressed because it is too large Load Diff

View File

@@ -858,6 +858,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 45 Text : 46
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0
@@ -318,6 +318,10 @@ Timer tmSerial
{ {
page screensaver page screensaver
} }
if(tId.txt=="screensaver2")
{
page screensaver2
}
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities

View File

@@ -117,16 +117,6 @@ Text m0
Text : Text :
Max. Text Size : 10 Max. Text Size : 10
Events
Touch Press Event
if(tDate.x==0)
{
vis m0,1
}else
{
vis m0,1
}
Text t10 Text t10
Attributes Attributes
Scope : local Scope : local

View File

@@ -0,0 +1,881 @@
Page screensaver2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID : disabled
Events
Preinitialize Event
recmod=1
baud=115200
vis tInstruction,0
vis tTmp,0
vis p0,0
vis tNotifyHead,0
vis tNotifyText,0
//load gloabl time string from pageIcons
//tTime.txt=vaTime.txt
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="")
{
vis tAMPM,0
}
tDate.txt=pageIcons.vaDate.txt
dim=dimValue
vis tSend,0
//page open event
// clear weather elements, to keep example content in HMI
Postinitialize Event
click m0,1
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 200
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 2
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 25
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (int32) vaTap
Attributes
Scope: local
Value: 0
Variable (int32) xc1
Attributes
Scope: local
Value: 0
Variable (int32) xc2
Attributes
Scope: local
Value: 0
Variable (int32) xcR
Attributes
Scope: local
Value: 0
Variable (int32) yc1
Attributes
Scope: local
Value: 0
Variable (int32) yc2
Attributes
Scope: local
Value: 0
Variable (int32) ycR
Attributes
Scope: local
Value: 0
Text m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Events
Touch Press Event
if(tDate.x==0)
{
vis m0,1
}else
{
vis m0,1
}
Text t10
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : |
Max. Text Size : 10
Text tAMPM
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : PM
Max. Text Size : 10
Text tDate
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : Sat, 17. Dec
Max. Text Size : 40
Text tF1Icon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tF2Icon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tF3Icon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tF4Icon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Text tForecast1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast1Val
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast2Val
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast3
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast3Val
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast4
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tForecast4Val
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tIcon1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tIcon2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMainIcon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMainText
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tNotifyHead
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 35
Text tNotifyText
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 80
Text tTime
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : 21\r\n23
Max. Text Size : 15
Text tTimeAdd
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Picture p0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Timer tm0
Attributes
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
if(tc0.val!=0)
{
xc2.val=tch0
yc2.val=tch1
}
Timer tmSerial
Attributes
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="wake")
{
//dim=100
click tc0,1
}
if(tInstruction.txt=="dimmode")
{
// get value
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
dim=dimValue
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
// get background color
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,defaultBcoColor,0,0
}
// get font color
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,defaultFontColor,0,0
}
}
if(tInstruction.txt=="time")
{
//get set time to global variable
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="")
{
vis tAMPM,0
}
spstr strCommand.txt,tTimeAdd.txt,"~",2
ref tIcon1
ref tIcon2
}
if(tInstruction.txt=="date")
{
//get set date to global variable
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
tDate.txt=pageIcons.vaDate.txt
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
{
vis tMainIcon,1
//vis tMainIconAlt,0
//vis tMainText,1
//vis tMainTextAlt,0
//vis tMRIcon,0
//vis tMR,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",1
//tMainIconAlt.txt=tMainIcon.txt
//tMainText
spstr strCommand.txt,tMainText.txt,"~",2
//tMainTextAlt.txt=tMainText.txt
//tForecast1
spstr strCommand.txt,tForecast1.txt,"~",3
//tF1Icon
spstr strCommand.txt,tF1Icon.txt,"~",4
//tForecast1Val
spstr strCommand.txt,tForecast1Val.txt,"~",5
//tForecast2
spstr strCommand.txt,tForecast2.txt,"~",6
//tF2Icon
spstr strCommand.txt,tF2Icon.txt,"~",7
//tForecast2Val
spstr strCommand.txt,tForecast2Val.txt,"~",8
//tForecast3
spstr strCommand.txt,tForecast3.txt,"~",9
//tF3Icon
spstr strCommand.txt,tF3Icon.txt,"~",10
//tForecast3Val
spstr strCommand.txt,tForecast3Val.txt,"~",11
//tForecast4
spstr strCommand.txt,tForecast4.txt,"~",12
//tF4Icon
spstr strCommand.txt,tF4Icon.txt,"~",13
//tForecast4Val
spstr strCommand.txt,tForecast4Val.txt,"~",14
//alternative layout
//tMRIcon
//spstr strCommand.txt,tMRIcon.txt,"~",15
//if(tMRIcon.txt!=""&&p0.w!=320)
//{
// //value for tMRIcon, activate alternative layout
// vis tMainIcon,0
// vis tMainText,0
// vis tMainTextAlt,1
// vis tMainIconAlt,1
// vis tMRIcon,1
// vis tMR,1
// vis tForecast1,0
// vis tF1Icon,0
// vis tForecast1Val,0
// //move forecast values to the right
// tForecast4.txt=tForecast3.txt
// tForecast3.txt=tForecast2.txt
// tForecast2.txt=tForecast1.txt
// tForecast4Val.txt=tForecast3Val.txt
// tForecast3Val.txt=tForecast2Val.txt
// tForecast2Val.txt=tForecast1Val.txt
// tF4Icon.txt=tF3Icon.txt
// tF3Icon.txt=tF2Icon.txt
// tF2Icon.txt=tF1Icon.txt
//}
//tMR
//spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt!="")
{
tIcon1.font=3
}
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt!="")
{
tIcon2.font=3
}
}
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
{
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,tTime.bco,0,0
if(tTime.bco!=screensaver2.bco)
{
screensaver2.bco=tTime.bco
tAMPM.bco=tTime.bco
tDate.bco=tTime.bco
tMainIcon.bco=tTime.bco
tMainText.bco=tTime.bco
//tMainIconAlt.bco=tTime.bco
//tMainTextAlt.bco=tTime.bco
//tMRIcon.bco=tTime.bco
//tMR.bco=tTime.bco
//tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco
tForecast2.bco=tTime.bco
tForecast2Val.bco=tTime.bco
tF2Icon.bco=tTime.bco
tForecast3.bco=tTime.bco
tForecast3Val.bco=tTime.bco
tF3Icon.bco=tTime.bco
tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
}
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,tAMPM.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5
//covx tTmp.txt,tMainIcon.pco,0,0
//tMainIconAlt.pco=tMainIcon.pco
//spstr strCommand.txt,tTmp.txt,"~",6
//covx tTmp.txt,tMainText.pco,0,0
//tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8
covx tTmp.txt,tForecast2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",9
covx tTmp.txt,tForecast3.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tForecast4.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tF1Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tF2Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tF3Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,tF4Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",15
covx tTmp.txt,tForecast1Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,tForecast2Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tForecast3Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tForecast4Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0
//spstr strCommand.txt,tTmp.txt,"~",20
//covx tTmp.txt,tMRIcon.pco,0,0
//spstr strCommand.txt,tTmp.txt,"~",21
//covx tTmp.txt,tMR.pco,0,0
//spstr strCommand.txt,tTmp.txt,"~",22
//covx tTmp.txt,tTimeAdd.pco,0,0
//if(tMRIcon.txt!=""&&p0.w!=320)
//{
// tF4Icon.pco=tF3Icon.pco
// tF3Icon.pco=tF2Icon.pco
// tF2Icon.pco=tF1Icon.pco
// tForecast4Val.pco=tForecast3Val.pco
// tForecast3Val.pco=tForecast2Val.pco
// tForecast2Val.pco=tForecast1Val.pco
// tForecast4.pco=tForecast3.pco
// tForecast3.pco=tForecast2.pco
// tForecast2.pco=tForecast1.pco
//}
}
if(tInstruction.txt=="notify")
{
spstr strCommand.txt,tNotifyHead.txt,"~",1
spstr strCommand.txt,tNotifyText.txt,"~",2
if(tNotifyHead.txt!=""||tNotifyText.txt!="")
{
vis tNotifyHead,1
vis tNotifyText,1
}else
{
vis tNotifyHead,0
vis tNotifyText,0
}
tNotifyHead.bco=tTime.bco
tNotifyText.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",3
if(tTmp.txt!="")
{
covx tTmp.txt,tNotifyHead.pco,0,0
}
spstr strCommand.txt,tTmp.txt,"~",4
if(tTmp.txt!="")
{
covx tTmp.txt,tNotifyText.pco,0,0
}
}
if(tInstruction.txt=="pageType")
{
dim=100
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0
Attributes
Scope: local
Value: 0
Events
Touch Press Event
xc1.val=tch0
yc1.val=tch1
tm0.en=1
if(tNotifyHead.txt!=""||tNotifyText.txt!="")
{
if(dim!=0)
{
tNotifyHead.txt=""
tNotifyText.txt=""
vis tNotifyHead,0
vis tNotifyText,0
}
}
dim=dimValueNormal
vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+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
Touch Release Event
tm0.en=0
if(tch0==0)
// When this is zero we can interpret that as the real end of the drag event
{
xcR.val=xc1.val-xc2.val
ycR.val=yc1.val-yc2.val
// new method
// one of the difference values should be low to be a valid direction, in case it has a high value it's not a valid swipe, because it's diagonal
// x difference between -125 and 125 (swipe on y-axis)
if(xcR.val>-125&&xcR.val<125)
{
//tStatusNew.txt="x low, -> y"
// check if below minimum value (change is negative)
if(ycR.val<-80)
{
//tDirNew.txt="down"
tSend.txt="event,buttonPress2,screensaver,swipeDown"
}else if(ycR.val>80)
{
//tDirNew.txt="up"
tSend.txt="event,buttonPress2,screensaver,swipeUp"
}else
{
//tDirNew.txt="invalid"
}
// y difference between -125 and 125 (swipe on x-axis)
}else if(ycR.val>-125&&ycR.val<125)
{
//tStatusNew.txt="y low, -> x"
if(xcR.val<-80)
{
//tDirNew.txt="right"
tSend.txt="event,buttonPress2,screensaver,swipeRight"
}else if(xcR.val>80)
{
//tDirNew.txt="left"
tSend.txt="event,buttonPress2,screensaver,swipeLeft"
}else
{
//tDirNew.txt="invalid"
}
//diagonal swipe invalid
}else
{
//tStatusNew.txt="invalid"
//tDirNew.txt="diagonal"
}
}
//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