You've already forked TEF6686_ESP32
Corrected mappedfreq2 color.
This commit is contained in:
@@ -3374,7 +3374,7 @@ void DefaultSettings(byte userhardwaremodel) {
|
|||||||
EEPROM.writeByte(EE_BYTE_IMSSET, 1);
|
EEPROM.writeByte(EE_BYTE_IMSSET, 1);
|
||||||
EEPROM.writeByte(EE_BYTE_EQSET, 1);
|
EEPROM.writeByte(EE_BYTE_EQSET, 1);
|
||||||
EEPROM.writeByte(EE_BYTE_BAND, BAND_FM);
|
EEPROM.writeByte(EE_BYTE_BAND, BAND_FM);
|
||||||
EEPROM.writeInt(EE_BYTE_LOWLEVELSET, -10);
|
EEPROM.writeInt(EE_BYTE_LOWLEVELSET, -15);
|
||||||
EEPROM.writeByte(EE_BYTE_MEMORYPOS, 0);
|
EEPROM.writeByte(EE_BYTE_MEMORYPOS, 0);
|
||||||
EEPROM.writeByte(EE_BYTE_REGION, 0);
|
EEPROM.writeByte(EE_BYTE_REGION, 0);
|
||||||
EEPROM.writeByte(EE_BYTE_RDS_UNDERSCORE, 0);
|
EEPROM.writeByte(EE_BYTE_RDS_UNDERSCORE, 0);
|
||||||
|
|||||||
@@ -520,13 +520,11 @@ void showRadioText() {
|
|||||||
AdvRadiotextSprite.drawString(radio.rds.stationText + " " + radio.rds.stationText32, xPos, 2);
|
AdvRadiotextSprite.drawString(radio.rds.stationText + " " + radio.rds.stationText32, xPos, 2);
|
||||||
AdvRadiotextSprite.pushSprite(35, 220);
|
AdvRadiotextSprite.pushSprite(35, 220);
|
||||||
} else if (!advancedRDS && radio.rds.stationText.length() < 29) {
|
} else if (!advancedRDS && radio.rds.stationText.length() < 29) {
|
||||||
if (RTold != radio.rds.stationText + " " + radio.rds.stationText32) {
|
|
||||||
xPos = 0;
|
xPos = 0;
|
||||||
RadiotextSprite.fillSprite(BackgroundColor);
|
RadiotextSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) RadiotextSprite.setTextColor(PrimaryColor, PrimaryColorSmooth, false); else RadiotextSprite.setTextColor(SecondaryColor, SecondaryColorSmooth, false);
|
if (RDSstatus) RadiotextSprite.setTextColor(PrimaryColor, PrimaryColorSmooth, false); else RadiotextSprite.setTextColor(SecondaryColor, SecondaryColorSmooth, false);
|
||||||
RadiotextSprite.drawString(radio.rds.stationText + " " + radio.rds.stationText32, xPos, 2);
|
RadiotextSprite.drawString(radio.rds.stationText + " " + radio.rds.stationText32, xPos, 2);
|
||||||
RadiotextSprite.pushSprite(38, 220);
|
RadiotextSprite.pushSprite(38, 220);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (millis() - rtticker >= 15) {
|
if (millis() - rtticker >= 15) {
|
||||||
if (xPos == 0) {
|
if (xPos == 0) {
|
||||||
@@ -672,7 +670,7 @@ void ShowAFEON() {
|
|||||||
|
|
||||||
if (radio.eon[i + y].mappedfreq2 > 0) {
|
if (radio.eon[i + y].mappedfreq2 > 0) {
|
||||||
if (radio.eon[i + y].mappedfreq2 != mappedfreqold2[i + y]) tftPrint(1, String(mappedfreqold2[i + y] / 100) + "." + String((mappedfreqold2[i + y] % 100) / 10), 216, 48 + (15 * i), BackgroundColor, BackgroundColor, 16);
|
if (radio.eon[i + y].mappedfreq2 != mappedfreqold2[i + y]) tftPrint(1, String(mappedfreqold2[i + y] / 100) + "." + String((mappedfreqold2[i + y] % 100) / 10), 216, 48 + (15 * i), BackgroundColor, BackgroundColor, 16);
|
||||||
tftPrint(1, String(radio.eon[i + y].mappedfreq2 / 100) + "." + String((radio.eon[i + y].mappedfreq2 % 100) / 10), 216, 48 + (15 * i), SecondaryColor, PrimaryColorSmooth, 16);
|
tftPrint(1, String(radio.eon[i + y].mappedfreq2 / 100) + "." + String((radio.eon[i + y].mappedfreq2 % 100) / 10), 216, 48 + (15 * i), PrimaryColor, PrimaryColorSmooth, 16);
|
||||||
mappedfreqold2[i + y] = radio.eon[i + y].mappedfreq2;
|
mappedfreqold2[i + y] = radio.eon[i + y].mappedfreq2;
|
||||||
} else {
|
} else {
|
||||||
tftPrint(1, String(mappedfreqold2[i + y] / 100) + "." + String((mappedfreqold2[i + y] % 100) / 10), 216, 48 + (15 * i), BackgroundColor, BackgroundColor, 16);
|
tftPrint(1, String(mappedfreqold2[i + y] / 100) + "." + String((mappedfreqold2[i + y] % 100) / 10), 216, 48 + (15 * i), BackgroundColor, BackgroundColor, 16);
|
||||||
|
|||||||
Reference in New Issue
Block a user