More finetuning

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-06 17:12:53 +01:00
parent aee633eb77
commit 926a6db8c0
5 changed files with 175 additions and 115 deletions
+7 -4
View File
@@ -18,7 +18,7 @@ void doTouchEvent(uint16_t x, uint16_t y) {
if (menuopen) { // Menu navigation
if (x > 18 && x < 78 && y > 150 && y < 190) KeyDown(); // ---------------
if (x > 240 && x < 300 && y > 150 && y < 190) KeyUp();
if (x > 240 && x < 300 && y > 40 && y < 80) ButtonPress();
if ((x > 240 && x < 300 && y > 40 && y < 80) || (x > 130 && x < 190 && y > 150 && y < 190)) ButtonPress();
return;
} else {
if (x > 8 && x < 158) {
@@ -102,7 +102,6 @@ void doTouchEvent(uint16_t x, uint16_t y) {
}
if (BWtune) { // BW menu
byte BWtemp = 255;
if (y > 35 && y < 65) {
if (x > 7 && x < 77) BWtemp = 1;
if (x > 87 && x < 157) BWtemp = 2;
@@ -152,14 +151,18 @@ void doTouchEvent(uint16_t x, uint16_t y) {
if (y > 195 && y < 225 && x > 247 && x < 317) {
leave = true;
if (BWtemp != 255) BWset = BWtemp;
bwtouchtune = true;
BWset = BWtemp;
doBW();
BuildDisplay();
SelectBand();
bwtouchtune = false;
} else {
if (BWtemp != 255) BWset = BWtemp;
bwtouchtune = true;
BWset = BWtemp;
showBWSelector();
doBW();
bwtouchtune = false;
}
return;
}