Optimised tickers
This commit is contained in:
@@ -465,6 +465,10 @@ void BuildAFScreen() {
|
|||||||
PIold = " ";
|
PIold = " ";
|
||||||
PSold = " ";
|
PSold = " ";
|
||||||
xPos = 0;
|
xPos = 0;
|
||||||
|
xPos2 = 0;
|
||||||
|
xPos3 = 0;
|
||||||
|
xPos4 = 0;
|
||||||
|
xPos5 = 0;
|
||||||
for (byte i = 0; i < 20; i++) {
|
for (byte i = 0; i < 20; i++) {
|
||||||
mappedfreqold[i] = 0;
|
mappedfreqold[i] = 0;
|
||||||
mappedfreqold2[i] = 0;
|
mappedfreqold2[i] = 0;
|
||||||
@@ -1554,6 +1558,7 @@ void BuildAdvancedRDS() {
|
|||||||
xPos2 = 0;
|
xPos2 = 0;
|
||||||
xPos3 = 0;
|
xPos3 = 0;
|
||||||
xPos4 = 0;
|
xPos4 = 0;
|
||||||
|
xPos5 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildDisplay() {
|
void BuildDisplay() {
|
||||||
@@ -1707,6 +1712,10 @@ void BuildDisplay() {
|
|||||||
BWreset = true;
|
BWreset = true;
|
||||||
dropout = false;
|
dropout = false;
|
||||||
xPos = 0;
|
xPos = 0;
|
||||||
|
xPos2 = 0;
|
||||||
|
xPos3 = 0;
|
||||||
|
xPos4 = 0;
|
||||||
|
xPos5 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuUp() {
|
void MenuUp() {
|
||||||
|
|||||||
+2
-2
@@ -85,7 +85,7 @@ void ShowAdvancedRDS() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (millis() - afticker >= 5) {
|
if (millis() - afticker >= 5) {
|
||||||
if (radio.rds.hasAF) {
|
if (radio.rds.hasAF && afstring.length() > 30) {
|
||||||
if (afstring.length() != afstringlengthold) {
|
if (afstring.length() != afstringlengthold) {
|
||||||
afstringWidth = afstring.length() * charwidth;
|
afstringWidth = afstring.length() * charwidth;
|
||||||
afstringlengthold = afstring.length();
|
afstringlengthold = afstring.length();
|
||||||
@@ -107,7 +107,7 @@ void ShowAdvancedRDS() {
|
|||||||
RDSSprite.fillSprite(BackgroundColor);
|
RDSSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) RDSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else RDSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
if (RDSstatus) RDSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else RDSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
||||||
RDSSprite.drawString(afstring, xPos2, 2);
|
RDSSprite.drawString(afstring, xPos2, 2);
|
||||||
if (radio.rds.hasAF) RDSSprite.drawString(afstring, xPos2 + afstringWidth, 2);
|
if (radio.rds.hasAF && afstring.length() > 30) RDSSprite.drawString(afstring, xPos2 + afstringWidth, 2);
|
||||||
RDSSprite.pushSprite(35, 197);
|
RDSSprite.pushSprite(35, 197);
|
||||||
afticker = millis();
|
afticker = millis();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user