Increased height of PS Sprite
This commit is contained in:
+1
-1
@@ -638,7 +638,7 @@ void setup() {
|
|||||||
RDSSprite.createSprite(165, 19);
|
RDSSprite.createSprite(165, 19);
|
||||||
RDSSprite.setTextDatum(TL_DATUM);
|
RDSSprite.setTextDatum(TL_DATUM);
|
||||||
|
|
||||||
PSSprite.createSprite(150, 30);
|
PSSprite.createSprite(150, 32);
|
||||||
PSSprite.setTextDatum(TL_DATUM);
|
PSSprite.setTextDatum(TL_DATUM);
|
||||||
|
|
||||||
SquelchSprite.createSprite(47, 19);
|
SquelchSprite.createSprite(47, 19);
|
||||||
|
|||||||
+12
-12
@@ -344,12 +344,12 @@ void readRds() {
|
|||||||
if (!radio.rds.hasLongPS) {
|
if (!radio.rds.hasLongPS) {
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
||||||
PSSprite.drawString(PSold, 0, 0);
|
PSSprite.drawString(PSold, 0, 4);
|
||||||
|
|
||||||
if (advancedRDS) {
|
if (advancedRDS) {
|
||||||
PSSprite.pushSprite(36, 74);
|
PSSprite.pushSprite(36, 72);
|
||||||
} else {
|
} else {
|
||||||
PSSprite.pushSprite(36, 187);
|
PSSprite.pushSprite(36, 185);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,12 +400,12 @@ void readRds() {
|
|||||||
if (!radio.rds.hasLongPS) {
|
if (!radio.rds.hasLongPS) {
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
PSSprite.setTextColor(RDSColor, RDSColorSmooth, false);
|
PSSprite.setTextColor(RDSColor, RDSColorSmooth, false);
|
||||||
PSSprite.drawString(PSold, 0, 0);
|
PSSprite.drawString(PSold, 0, 4);
|
||||||
|
|
||||||
if (advancedRDS) {
|
if (advancedRDS) {
|
||||||
PSSprite.pushSprite(36, 74);
|
PSSprite.pushSprite(36, 72);
|
||||||
} else {
|
} else {
|
||||||
PSSprite.pushSprite(36, 187);
|
PSSprite.pushSprite(36, 185);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -683,7 +683,7 @@ void showPS() {
|
|||||||
xPos5 = 0;
|
xPos5 = 0;
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
||||||
PSSprite.drawString(stationNameLongString, xPos5, 2);
|
PSSprite.drawString(stationNameLongString, xPos5, 4);
|
||||||
} else {
|
} else {
|
||||||
if (millis() - pslongticker >= 5) {
|
if (millis() - pslongticker >= 5) {
|
||||||
if (xPos5 < -PSLongWidth) xPos5 = 0;
|
if (xPos5 < -PSLongWidth) xPos5 = 0;
|
||||||
@@ -698,8 +698,8 @@ void showPS() {
|
|||||||
}
|
}
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
||||||
PSSprite.drawString(stationNameLongString, xPos5, 2);
|
PSSprite.drawString(stationNameLongString, xPos5, 4);
|
||||||
PSSprite.drawString(stationNameLongString, xPos5 + PSLongWidth, 2);
|
PSSprite.drawString(stationNameLongString, xPos5 + PSLongWidth, 4);
|
||||||
pslongticker = millis();
|
pslongticker = millis();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -707,13 +707,13 @@ void showPS() {
|
|||||||
xPos5 = 0;
|
xPos5 = 0;
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
if (!RDSstatus || band > BAND_GAP) PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false); else PSSprite.setTextColor(RDSColor, RDSColorSmooth, false);
|
if (!RDSstatus || band > BAND_GAP) PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false); else PSSprite.setTextColor(RDSColor, RDSColorSmooth, false);
|
||||||
PSSprite.drawString(radio.rds.stationName, 0, 0);
|
PSSprite.drawString(radio.rds.stationName, 0, 4);
|
||||||
}
|
}
|
||||||
if (!screenmute) {
|
if (!screenmute) {
|
||||||
if (advancedRDS) {
|
if (advancedRDS) {
|
||||||
PSSprite.pushSprite(36, 74);
|
PSSprite.pushSprite(36, 72);
|
||||||
} else {
|
} else {
|
||||||
PSSprite.pushSprite(36, 187);
|
PSSprite.pushSprite(36, 185);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user