redesign termo page (add nextion2text)

This commit is contained in:
joBr99
2022-05-14 09:49:28 +00:00
committed by github-actions[bot]
parent 596dcead96
commit 899e7d6802
6 changed files with 1509 additions and 242 deletions

View File

@@ -25,9 +25,12 @@ Page cardThermo
vis tInstruction,0
vis tTmp,0
vis tId,0
vis xTempMin,0
vis xTempMax,0
vis xTempStep,0
vis xTempMin1,0
vis xTempMax1,0
vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt
// disable all buttons
vis bt0,0
@@ -39,6 +42,10 @@ Page cardThermo
vis bt6,0
vis bt7,0
vis bt8,0
vis t0,0
vis bUp2,0
vis bDown2,0
vis xTempDest2,0
vis bPrev,0
vis bNext,0
@@ -127,10 +134,10 @@ XFloat xTempCurr
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 143
y coordinate : 70
Width : 90
Height : 35
x coordinate : 13
y coordinate : 121
Width : 95
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -149,7 +156,7 @@ XFloat xTempCurr
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempDest
XFloat xTempDest1
Attributes
ID : 13
Scope : local
@@ -157,8 +164,8 @@ XFloat xTempDest
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 296
y coordinate : 97
x coordinate : 295
y coordinate : 118
Width : 120
Height : 60
Effect : load
@@ -179,7 +186,7 @@ XFloat xTempDest
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMin
XFloat xTempMin1
Attributes
ID : 14
Scope : local
@@ -187,10 +194,10 @@ XFloat xTempMin
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 269
y coordinate : 0
Width : 51
Height : 30
x coordinate : 383
y coordinate : 71
Width : 50
Height : 22
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -209,7 +216,7 @@ XFloat xTempMin
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMax
XFloat xTempMax1
Attributes
ID : 15
Scope : local
@@ -217,10 +224,10 @@ XFloat xTempMax
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 320
y coordinate : 0
x coordinate : 383
y coordinate : 93
Width : 45
Height : 30
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -239,7 +246,7 @@ XFloat xTempMax
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempStep
XFloat xTempStep1
Attributes
ID : 16
Scope : local
@@ -247,10 +254,130 @@ XFloat xTempStep
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 366
y coordinate : 0
x coordinate : 384
y coordinate : 181
Width : 45
Height : 30
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempDest2
Attributes
ID : 48
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 142
y coordinate : 118
Width : 120
Height : 60
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 4
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMin2
Attributes
ID : 50
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 231
y coordinate : 69
Width : 50
Height : 21
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMax2
Attributes
ID : 51
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 231
y coordinate : 91
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempStep2
Attributes
ID : 52
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 232
y coordinate : 179
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -397,9 +524,9 @@ Text tHeading
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 5
y coordinate : 257
Width : 227
x coordinate : 64
y coordinate : 26
Width : 320
Height : 30
Effect : load
Effect Priority : 0
@@ -427,9 +554,9 @@ Text tStatus
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 143
y coordinate : 115
Width : 86
x coordinate : 11
y coordinate : 200
Width : 97
Height : 30
Effect : load
Effect Priority : 0
@@ -440,7 +567,7 @@ Text tStatus
Font ID : 0
Back. Color : 6371
Font Color : 50712
Horizontal Alignment : center
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
@@ -457,8 +584,98 @@ Text t2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 417
y coordinate : 115
x coordinate : 416
y coordinate : 136
Width : 25
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tCurTempLbl
Attributes
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 13
y coordinate : 85
Width : 95
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text : Currently
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tStateLbl
Attributes
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 162
Width : 95
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text : State
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text t0
Attributes
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 263
y coordinate : 136
Width : 25
Height : 30
Effect : load
@@ -605,10 +822,10 @@ Dual-state Button bt0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 8
y coordinate : 215
Width : 30
Height : 30
x coordinate : 27
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -646,7 +863,7 @@ Dual-state Button bt0
prints tSend.txt,0
prints crcval,2
Dual-state Button bt1
Dual-state Button bt2
Attributes
ID : 22
Scope : local
@@ -654,10 +871,10 @@ Dual-state Button bt1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 55
y coordinate : 215
Width : 30
Height : 30
x coordinate : 117
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -695,7 +912,7 @@ Dual-state Button bt1
prints tSend.txt,0
prints crcval,2
Dual-state Button bt2
Dual-state Button bt4
Attributes
ID : 23
Scope : local
@@ -703,10 +920,10 @@ Dual-state Button bt2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 102
y coordinate : 215
Width : 30
Height : 30
x coordinate : 207
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -744,7 +961,7 @@ Dual-state Button bt2
prints tSend.txt,0
prints crcval,2
Dual-state Button bt3
Dual-state Button bt6
Attributes
ID : 24
Scope : local
@@ -752,10 +969,10 @@ Dual-state Button bt3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 149
y coordinate : 215
Width : 30
Height : 30
x coordinate : 297
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -793,7 +1010,7 @@ Dual-state Button bt3
prints tSend.txt,0
prints crcval,2
Dual-state Button bt4
Dual-state Button bt8
Attributes
ID : 25
Scope : local
@@ -801,10 +1018,10 @@ Dual-state Button bt4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 196
y coordinate : 215
Width : 30
Height : 30
x coordinate : 386
y coordinate : 240
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -842,7 +1059,7 @@ Dual-state Button bt4
prints tSend.txt,0
prints crcval,2
Dual-state Button bt5
Dual-state Button bt1
Attributes
ID : 26
Scope : local
@@ -850,10 +1067,10 @@ Dual-state Button bt5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 29
y coordinate : 215
Width : 30
Height : 30
x coordinate : 72
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -891,7 +1108,7 @@ Dual-state Button bt5
prints tSend.txt,0
prints crcval,2
Dual-state Button bt6
Dual-state Button bt3
Attributes
ID : 27
Scope : local
@@ -899,10 +1116,10 @@ Dual-state Button bt6
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 76
y coordinate : 215
Width : 30
Height : 30
x coordinate : 162
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -940,7 +1157,7 @@ Dual-state Button bt6
prints tSend.txt,0
prints crcval,2
Dual-state Button bt7
Dual-state Button bt5
Attributes
ID : 28
Scope : local
@@ -948,10 +1165,10 @@ Dual-state Button bt7
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 123
y coordinate : 215
Width : 30
Height : 30
x coordinate : 252
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -989,7 +1206,7 @@ Dual-state Button bt7
prints tSend.txt,0
prints crcval,2
Dual-state Button bt8
Dual-state Button bt7
Attributes
ID : 29
Scope : local
@@ -997,10 +1214,10 @@ Dual-state Button bt8
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 170
y coordinate : 215
Width : 30
Height : 30
x coordinate : 342
y coordinate : 241
Width : 40
Height : 40
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -1046,8 +1263,8 @@ Dual-state Button btUp1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 332
y coordinate : 46
x coordinate : 331
y coordinate : 67
Width : 50
Height : 50
Effect : load
@@ -1072,9 +1289,9 @@ Dual-state Button btUp1
Events
Touch Press Event
if(xTempDest.val<xTempMax.val)
if(xTempDest1.val<xTempMax1.val)
{
xTempDest.val=xTempDest.val+xTempStep.val
xTempDest1.val=xTempDest1.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
@@ -1082,7 +1299,7 @@ Dual-state Button btUp1
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
@@ -1104,8 +1321,8 @@ Dual-state Button btDown1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 332
y coordinate : 158
x coordinate : 331
y coordinate : 179
Width : 50
Height : 50
Effect : load
@@ -1130,9 +1347,9 @@ Dual-state Button btDown1
Events
Touch Press Event
if(xTempDest.val>xTempMin.val)
if(xTempDest1.val>xTempMin1.val)
{
xTempDest.val=xTempDest.val-xTempStep.val
xTempDest1.val=xTempDest1.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
@@ -1140,7 +1357,123 @@ Dual-state Button btDown1
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest.val,tTmp.txt,0,0
covx xTempDest1.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
ID : 46
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 178
y coordinate : 67
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371
Font Color (Unpressed) : 50712
Font Color (Pressed) : 64512
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
if(xTempDest2.val<xTempMax2.val)
{
xTempDest2.val=xTempDest2.val+xTempStep2.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
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 bDown2
Attributes
ID : 49
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 178
y coordinate : 179
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color (Unpressed) : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371
Font Color (Unpressed) : 50712
Font Color (Pressed) : 64512
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
if(xTempDest2.val>xTempMin2.val)
{
xTempDest2.val=xTempDest2.val-xTempStep2.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpd,"
//convert temperature
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
@@ -1355,18 +1688,18 @@ Timer tmSerial
covx tTmp.txt,xTempCurr.val,0,0
//dstTemp
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,xTempDest.val,0,0
covx tTmp.txt,xTempDest1.val,0,0
//status
spstr strCommand.txt,tStatus.txt,"~",6
//minTemp
spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,xTempMin.val,0,0
covx tTmp.txt,xTempMin1.val,0,0
//maxTemp
spstr strCommand.txt,tTmp.txt,"~",8
covx tTmp.txt,xTempMax.val,0,0
covx tTmp.txt,xTempMax1.val,0,0
//tempStep
spstr strCommand.txt,tTmp.txt,"~",9
covx tTmp.txt,xTempStep.val,0,0
covx tTmp.txt,xTempStep1.val,0,0
// disable all buttons
vis bt0,0
vis bt1,0