Font update
Changed shape of boxes Added extra quality check on memory AF
This commit is contained in:
+57
-58
@@ -868,11 +868,11 @@ void loop() {
|
||||
if (millis() >= flashingtimer + 500) {
|
||||
flashing = !flashing;
|
||||
if (flashing) {
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MEM", 22, 82, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, ActiveColor, 16);
|
||||
} else {
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, GreyoutColor, 16);
|
||||
}
|
||||
flashingtimer = millis();
|
||||
}
|
||||
@@ -902,7 +902,7 @@ void loop() {
|
||||
if (af != 0 && dropout && millis() >= aftimer + 1000) {
|
||||
aftimer = millis();
|
||||
if (radio.af_counter == 0) {
|
||||
if (findMemoryAF && radio.rds.correctPI != 0 && tunemode == TUNE_MEM) {
|
||||
if (findMemoryAF && radio.rds.correctPI != 0 && tunemode == TUNE_MEM && (USN > 250 || WAM > 250)) {
|
||||
radio.setMute();
|
||||
tft.drawBitmap(92, 4, Speaker, 26, 22, PrimaryColor);
|
||||
SQ = true;
|
||||
@@ -2202,10 +2202,10 @@ void SelectBand() {
|
||||
tftPrint(-1, "RT:", 3, 221, GreyoutColor, BackgroundColor, 16);
|
||||
tftPrint(-1, "PTY:", 3, 163, GreyoutColor, BackgroundColor, 16);
|
||||
tft.drawBitmap(122, 5, RDSLogo, 35, 22, GreyoutColor);
|
||||
tft.drawRoundRect(248, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "iMS", 265, 59, GreyoutColor, BackgroundColor, 16);
|
||||
tft.drawRoundRect(286, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "EQ", 301, 59, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(248, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "iMS", 265, 59, BackgroundColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(286, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "EQ", 301, 59, BackgroundColor, BackgroundColor, 16);
|
||||
tftReplace(-1, "MHz", "kHz", 258, 76, ActiveColor, ActiveColorSmooth, BackgroundColor, 28);
|
||||
// todo
|
||||
// if (band == AM_BAND_AIR) tftPrint(-1, "MHz", 258, 76, ActiveColor, ActiveColorSmooth, 28);
|
||||
@@ -3507,14 +3507,14 @@ void doSquelch() {
|
||||
void updateBW() {//todo air
|
||||
if (BWset == 0) {
|
||||
if (!screenmute && !advancedRDS && !afscreen) {
|
||||
tft.drawRoundRect(247, 35, 71, 20, 5, ActiveColor);
|
||||
tftPrint(0, "AUTO BW", 282, 38, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(247, 35, 71, 20, 5, ActiveColor);
|
||||
tftPrint(0, "AUTO BW", 282, 38, BackgroundColor, ActiveColor, 16);
|
||||
}
|
||||
radio.setFMABandw();
|
||||
} else {
|
||||
if (!screenmute && !advancedRDS && !afscreen) {
|
||||
tft.drawRoundRect(247, 35, 71, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "AUTO BW", 282, 38, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(247, 35, 71, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "AUTO BW", 282, 38, BackgroundColor, GreyoutColor, 16);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3523,14 +3523,14 @@ void updateiMS() {
|
||||
if (band < BAND_GAP) {
|
||||
if (iMSset == 0) {
|
||||
if (!screenmute && !advancedRDS && !afscreen) {
|
||||
tft.drawRoundRect(248, 56, 32, 20, 5, ActiveColor);
|
||||
tftPrint(0, "iMS", 265, 59, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(248, 56, 32, 20, 5, ActiveColor);
|
||||
tftPrint(0, "iMS", 265, 59, BackgroundColor, ActiveColor, 16);
|
||||
}
|
||||
radio.setiMS(1);
|
||||
} else {
|
||||
if (!screenmute && !advancedRDS && !afscreen) {
|
||||
tft.drawRoundRect(248, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "iMS", 265, 59, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(248, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "iMS", 265, 59, BackgroundColor, GreyoutColor, 16);
|
||||
}
|
||||
radio.setiMS(0);
|
||||
}
|
||||
@@ -3541,14 +3541,14 @@ void updateEQ() {
|
||||
if (band < BAND_GAP) {
|
||||
if (EQset == 0) {
|
||||
if (!screenmute && !advancedRDS && !afscreen) {
|
||||
tft.drawRoundRect(286, 56, 32, 20, 5, ActiveColor);
|
||||
tftPrint(0, "EQ", 301, 59, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(286, 56, 32, 20, 5, ActiveColor);
|
||||
tftPrint(0, "EQ", 301, 59, BackgroundColor, ActiveColor, 16);
|
||||
}
|
||||
radio.setEQ(1);
|
||||
} else {
|
||||
if (!screenmute && !advancedRDS && !afscreen) {
|
||||
tft.drawRoundRect(286, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "EQ", 301, 59, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(286, 56, 32, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "EQ", 301, 59, BackgroundColor, GreyoutColor, 16);
|
||||
}
|
||||
radio.setEQ(0);
|
||||
}
|
||||
@@ -3700,68 +3700,67 @@ void ShowTuneMode() {
|
||||
switch (tunemode) {
|
||||
case TUNE_MAN:
|
||||
if (band == BAND_SW && nowToggleSWMIBand) {
|
||||
tftPrint(0, "AUTO", 22, 60, BackgroundColor, BackgroundColor, 16);
|
||||
tft.drawRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "BAND", 22, 60, GreyoutColor, BackgroundColor, 16);
|
||||
tftPrint(0, "AUTO", 22, 60, GreyoutColor, GreyoutColor, 16);
|
||||
tft.fillRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "BAND", 22, 60, BackgroundColor, GreyoutColor, 16);
|
||||
} else {
|
||||
tftPrint(0, "BAND", 22, 60, BackgroundColor, BackgroundColor, 16);
|
||||
tft.drawRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "AUTO", 22, 60, GreyoutColor, BackgroundColor, 16);
|
||||
tftPrint(0, "BAND", 22, 60, GreyoutColor, GreyoutColor, 16);
|
||||
tft.fillRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "AUTO", 22, 60, BackgroundColor, GreyoutColor, 16);
|
||||
}
|
||||
|
||||
tft.drawRoundRect(1, 35, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MAN", 22, 38, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 35, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MAN", 22, 38, BackgroundColor, ActiveColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, GreyoutColor, 16);
|
||||
break;
|
||||
|
||||
case TUNE_AUTO:
|
||||
tft.drawRoundRect(1, 57, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "AUTO", 22, 60, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 57, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "AUTO", 22, 60, BackgroundColor, ActiveColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 35, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MAN", 22, 38, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 35, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MAN", 22, 38, BackgroundColor, GreyoutColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, GreyoutColor, 16);
|
||||
break;
|
||||
|
||||
case TUNE_MEM:
|
||||
if (band == BAND_SW && nowToggleSWMIBand) {
|
||||
tftPrint(0, "AUTO", 22, 60, BackgroundColor, BackgroundColor, 16);
|
||||
tftPrint(0, "AUTO", 22, 60, GreyoutColor, GreyoutColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "BAND", 22, 60, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "BAND", 22, 60, BackgroundColor, GreyoutColor, 16);
|
||||
} else {
|
||||
tftPrint(0, "BAND", 22, 60, BackgroundColor, BackgroundColor, 16);
|
||||
tftPrint(0, "BAND", 22, 60, BackgroundColor, GreyoutColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "AUTO", 22, 60, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 57, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "AUTO", 22, 60, BackgroundColor, GreyoutColor, 16);
|
||||
}
|
||||
|
||||
tft.drawRoundRect(1, 35, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MAN", 22, 38, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 35, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MAN", 22, 38, BackgroundColor, GreyoutColor, 16);
|
||||
|
||||
if (memorystore) {
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, SignificantColor);
|
||||
tftPrint(0, "MEM", 22, 82, SignificantColor, SignificantColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, SignificantColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, SignificantColor, 16);
|
||||
} else {
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MEM", 22, 82, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, ActiveColor, 16);
|
||||
}
|
||||
break;
|
||||
|
||||
case TUNE_MI_BAND:
|
||||
tft.drawRoundRect(1, 57, 42, 20, 5, ActiveColor);
|
||||
tft.setTextColor(ActiveColor);
|
||||
tftPrint(0, "BAND", 22, 60, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 57, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "BAND", 22, 60, BackgroundColor, ActiveColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 35, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MAN", 22, 38, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 35, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MAN", 22, 38, BackgroundColor, GreyoutColor, 16);
|
||||
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, GreyoutColor, BackgroundColor, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, GreyoutColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, GreyoutColor, 16);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -4427,8 +4426,8 @@ void cancelDXScan() {
|
||||
tft.drawBitmap(92, 4, Speaker, 26, 22, GreyoutColor);
|
||||
|
||||
if (!flashing) {
|
||||
tft.drawRoundRect(1, 79, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MEM", 22, 82, ActiveColor, ActiveColorSmooth, 16);
|
||||
tft.fillRoundRect(1, 79, 42, 20, 5, ActiveColor);
|
||||
tftPrint(0, "MEM", 22, 82, BackgroundColor, ActiveColor, 16);
|
||||
}
|
||||
|
||||
SQ = false;
|
||||
|
||||
+4326
-4320
File diff suppressed because it is too large
Load Diff
+12190
-12170
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user