add event code for number (add nextion2text)

This commit is contained in:
joBr99
2022-03-29 10:24:03 +00:00
committed by GitHub Actions
parent b1a47c112a
commit afa2c8da8f
4 changed files with 354 additions and 87 deletions

View File

@@ -670,9 +670,9 @@ Slider hSlider1
Send Component ID : disabled
Opacity : 127
x coordinate : 275
y coordinate : 76
y coordinate : 79
Width : 100
Height : 50
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -686,6 +686,24 @@ Slider hSlider1
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
nNum1.val=hSlider1.val
tSend.txt="event,buttonPress2,"+entn1.txt+",number-set,"
covx nNum1.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,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hSlider2
Attributes
ID : 55
@@ -695,9 +713,9 @@ Slider hSlider2
Send Component ID : disabled
Opacity : 127
x coordinate : 276
y coordinate : 132
y coordinate : 135
Width : 100
Height : 50
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -711,6 +729,24 @@ Slider hSlider2
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
nNum2.val=hSlider2.val
tSend.txt="event,buttonPress2,"+entn2.txt+",number-set,"
covx nNum2.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,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hSlider3
Attributes
ID : 56
@@ -720,9 +756,9 @@ Slider hSlider3
Send Component ID : disabled
Opacity : 127
x coordinate : 276
y coordinate : 186
y coordinate : 189
Width : 100
Height : 50
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -736,6 +772,24 @@ Slider hSlider3
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
nNum3.val=hSlider3.val
tSend.txt="event,buttonPress2,"+entn3.txt+",number-set,"
covx nNum3.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,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hSlider4
Attributes
ID : 57
@@ -745,9 +799,9 @@ Slider hSlider4
Send Component ID : disabled
Opacity : 127
x coordinate : 274
y coordinate : 241
y coordinate : 244
Width : 100
Height : 50
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -761,6 +815,24 @@ Slider hSlider4
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
nNum4.val=hSlider4.val
tSend.txt="event,buttonPress2,"+entn4.txt+",number-set,"
covx nNum4.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,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bDown1
Attributes
ID : 11
@@ -2104,16 +2176,16 @@ Timer tmSerial
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,",",8
//first value is current value
spstr bText1.txt,tTmp.txt,"|",1
spstr bText1.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
hSlider1.val=sys0
nNum1.val=sys0
//second value is min value
spstr bText1.txt,tTmp.txt,"|",2
spstr bText1.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider1.minval=sys0
//third value is max value
spstr bText1.txt,tTmp.txt,"|",3
spstr bText1.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
hSlider1.maxval=sys0
}
@@ -2228,16 +2300,16 @@ Timer tmSerial
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,",",14
//first value is current value
spstr bText2.txt,tTmp.txt,"|",1
spstr bText2.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
hSlider2.val=sys0
nNum2.val=sys0
//second value is min value
spstr bText2.txt,tTmp.txt,"|",2
spstr bText2.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider2.minval=sys0
//third value is max value
spstr bText2.txt,tTmp.txt,"|",3
spstr bText2.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
hSlider2.maxval=sys0
}
@@ -2352,16 +2424,16 @@ Timer tmSerial
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,",",20
//first value is current value
spstr bText3.txt,tTmp.txt,"|",1
spstr bText3.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
hSlider3.val=sys0
nNum3.val=sys0
//second value is min value
spstr bText3.txt,tTmp.txt,"|",2
spstr bText3.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider3.minval=sys0
//third value is max value
spstr bText3.txt,tTmp.txt,"|",3
spstr bText3.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
hSlider3.maxval=sys0
}
@@ -2476,16 +2548,16 @@ Timer tmSerial
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,",",26
//first value is current value
spstr bText4.txt,tTmp.txt,"|",1
spstr bText4.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
hSlider4.val=sys0
nNum4.val=sys0
//second value is min value
spstr bText4.txt,tTmp.txt,"|",2
spstr bText4.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider4.minval=sys0
//third value is max value
spstr bText4.txt,tTmp.txt,"|",3
spstr bText4.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0
}

View File

@@ -52,11 +52,11 @@ screensaver
133 Unique line(s) of event code
cardEntities
62 Component(s)
882 Line(s) of event code
380 Unique line(s) of event code
930 Line(s) of event code
388 Unique line(s) of event code
Total
13 Page(s)
353 Component(s)
3315 Line(s) of event code
902 Unique line(s) of event code
3363 Line(s) of event code
910 Unique line(s) of event code