Merge edge swipe functionality from matrixx567/edge_swipe (add nextion2text)

This commit is contained in:
joBr99
2022-05-13 22:10:34 +00:00
committed by github-actions[bot]
parent 8109346738
commit 8e0b85a12d
25 changed files with 2638 additions and 83 deletions

View File

@@ -127,7 +127,7 @@ XFloat xTempCurr
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 148
x coordinate : 143
y coordinate : 70
Width : 90
Height : 35
@@ -157,7 +157,7 @@ XFloat xTempDest
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 301
x coordinate : 296
y coordinate : 97
Width : 120
Height : 60
@@ -427,7 +427,7 @@ Text tStatus
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 148
x coordinate : 143
y coordinate : 115
Width : 86
Height : 30
@@ -457,7 +457,7 @@ Text t2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 422
x coordinate : 417
y coordinate : 115
Width : 25
Height : 30
@@ -504,7 +504,7 @@ Button bNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 411
x coordinate : 391
y coordinate : 16
Width : 50
Height : 50
@@ -551,7 +551,7 @@ Button bPrev
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 24
x coordinate : 9
y coordinate : 16
Width : 50
Height : 50
@@ -1046,7 +1046,7 @@ Dual-state Button btUp1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 337
x coordinate : 332
y coordinate : 46
Width : 50
Height : 50
@@ -1104,7 +1104,7 @@ Dual-state Button btDown1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 337
x coordinate : 332
y coordinate : 158
Width : 50
Height : 50
@@ -1154,6 +1154,117 @@ Dual-state Button btDown1
prints tSend.txt,0
prints crcval,2
Hotspot mSwipeNext
Attributes
ID : 41
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 440
y coordinate : 5
Width : 40
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//This thin hotspot down the edge will intercept swipes
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 0
Width : 426
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//This thin hotspot down the edge will intercept swipes
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev
Attributes
ID : 43
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//This thin hotspot down the edge will intercept swipes
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial
Attributes
ID : 5