Updated LIC table
This commit is contained in:
+124
-54
@@ -3530,58 +3530,128 @@ static const char* const myCountries[] {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const char* const myLanguages[] {
|
static const char* const myLanguages[] {
|
||||||
"Unknown", // 0
|
"Unknown",
|
||||||
"Albanian", // 1
|
"Albanian",
|
||||||
"Breton", // 2
|
"Breton",
|
||||||
"Catalan", // 3
|
"Catalan",
|
||||||
"Croatian", // 4
|
"Croatian",
|
||||||
"Welsh", // 5
|
"Welsh",
|
||||||
"Czech", // 6
|
"Czech",
|
||||||
"Danish", // 7
|
"Danish",
|
||||||
"German", // 8
|
"German",
|
||||||
"English", // 9
|
"English",
|
||||||
"Spanish", // 10
|
"Spanish",
|
||||||
"Esperanto", // 11
|
"Esperanto",
|
||||||
"Estonian", // 12
|
"Estonian",
|
||||||
"Basque", // 13
|
"Basque",
|
||||||
"Faroese", // 14
|
"Faroese",
|
||||||
"French", // 15
|
"French",
|
||||||
"Frisian", // 16
|
"Frisian",
|
||||||
"Irish", // 17
|
"Irish",
|
||||||
"Gaelic", // 18
|
"Gaelic",
|
||||||
"Galician", // 19
|
"Galician",
|
||||||
"Icelandic", // 20
|
"Icelandic",
|
||||||
"Italian", // 21
|
"Italian",
|
||||||
"Lappish", // 22
|
"Lappish",
|
||||||
"Latin", // 23
|
"Latin",
|
||||||
"Latvian", // 24
|
"Latvian",
|
||||||
"Luxemb.", // 25
|
"Luxembourgian",
|
||||||
"Lithuan.", // 26
|
"Lithuanian",
|
||||||
"Hungarian", // 27
|
"Hungarian",
|
||||||
"Maltese", // 28
|
"Maltese",
|
||||||
"Dutch", // 29
|
"Dutch",
|
||||||
"Norwegian", // 30
|
"Norwegian",
|
||||||
"Occitan", // 31
|
"Occitan",
|
||||||
"Polish", // 32
|
"Polish",
|
||||||
"Portug.", // 33
|
"Portuguese",
|
||||||
"Romanian", // 34
|
"Romanian",
|
||||||
"Romansh", // 35
|
"Romansh",
|
||||||
"Serbian", // 36
|
"Serbian",
|
||||||
"Slovak", // 37
|
"Slovak",
|
||||||
"Slovene", // 38
|
"Slovene",
|
||||||
"Finnish", // 39
|
"Finnish",
|
||||||
"Swedish", // 40
|
"Swedish",
|
||||||
"Turkish", // 41
|
"Turkish",
|
||||||
"Flemish", // 42
|
"Flemish",
|
||||||
"Walloon", // 43
|
"Walloon",
|
||||||
"Ukranian", // 44
|
"",
|
||||||
"Russian", // 45
|
"",
|
||||||
"Moldavian", // 46
|
"",
|
||||||
"Macedon.", // 47
|
"",
|
||||||
"Hebrew", // 48
|
"",
|
||||||
"Greek", // 49
|
"",
|
||||||
"Georgian", // 50
|
"",
|
||||||
"Bulgarian", // 51
|
"",
|
||||||
"Armenian", // 52
|
"",
|
||||||
"Arabic" // 53
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"Background",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"Zulu",
|
||||||
|
"Vietnamese",
|
||||||
|
"Uzbek",
|
||||||
|
"Urdu",
|
||||||
|
"Ukrainian",
|
||||||
|
"Thai",
|
||||||
|
"Telugu",
|
||||||
|
"Tatar",
|
||||||
|
"Tamil",
|
||||||
|
"Tadzhik",
|
||||||
|
"Swahili",
|
||||||
|
"SrananTongo",
|
||||||
|
"Somali",
|
||||||
|
"Sinhalese",
|
||||||
|
"Shona",
|
||||||
|
"Serbo-Croat",
|
||||||
|
"Ruthenian",
|
||||||
|
"Russian",
|
||||||
|
"Quechua",
|
||||||
|
"Pushtu",
|
||||||
|
"Punjabi",
|
||||||
|
"Persian",
|
||||||
|
"Papamiento",
|
||||||
|
"Oriya",
|
||||||
|
"Nepali",
|
||||||
|
"Ndebele",
|
||||||
|
"Marathi",
|
||||||
|
"Moldovian",
|
||||||
|
"Malaysian",
|
||||||
|
"Malagasay",
|
||||||
|
"Macedonian",
|
||||||
|
"Laotian",
|
||||||
|
"Korean",
|
||||||
|
"Khmer",
|
||||||
|
"Kazakh",
|
||||||
|
"Kannada",
|
||||||
|
"Japanese",
|
||||||
|
"Indonesian",
|
||||||
|
"Hindi",
|
||||||
|
"Hebrew",
|
||||||
|
"Hausa",
|
||||||
|
"Gurani",
|
||||||
|
"Gujurati",
|
||||||
|
"Greek",
|
||||||
|
"Georgian",
|
||||||
|
"Fulani",
|
||||||
|
"Dari",
|
||||||
|
"Churash",
|
||||||
|
"Chinese",
|
||||||
|
"Burmese",
|
||||||
|
"Bulgarian",
|
||||||
|
"Bengali",
|
||||||
|
"Belorussian",
|
||||||
|
"Bambora",
|
||||||
|
"Azerbaijan",
|
||||||
|
"Assamese",
|
||||||
|
"Armenian",
|
||||||
|
"Arabic",
|
||||||
|
"Amharic"
|
||||||
};
|
};
|
||||||
+3
-17
@@ -56,30 +56,16 @@ void ShowAdvancedRDS() {
|
|||||||
if (!screenmute) tftPrint(-1, "N/A", 242, 208, BackgroundColor, BackgroundColor, 16);
|
if (!screenmute) tftPrint(-1, "N/A", 242, 208, BackgroundColor, BackgroundColor, 16);
|
||||||
if (!screenmute) tftPrint(-1, LIColdString, 242, 208, BackgroundColor, BackgroundColor, 16);
|
if (!screenmute) tftPrint(-1, LIColdString, 242, 208, BackgroundColor, BackgroundColor, 16);
|
||||||
|
|
||||||
if (radio.rds.LIC > 0 && radio.rds.LIC < 44) {
|
if (radio.rds.LIC > 0 && radio.rds.LIC < 171) {
|
||||||
if (!screenmute) {
|
if (!screenmute) {
|
||||||
if (radio.rds.hasLIC) tftPrint(-1, myLanguages[radio.rds.LIC], 242, 208, PrimaryColor, PrimaryColorSmooth, 16); else tftPrint(-1, "N/A", 242, 208, PrimaryColor, PrimaryColorSmooth, 16);
|
if (radio.rds.hasLIC) tftPrint(-1, myLanguages[radio.rds.LIC], 242, 208, PrimaryColor, PrimaryColorSmooth, 16); else tftPrint(-1, "N/A", 242, 208, PrimaryColor, PrimaryColorSmooth, 16);
|
||||||
}
|
}
|
||||||
LIColdString = myLanguages[radio.rds.LIC];
|
LIColdString = myLanguages[radio.rds.LIC];
|
||||||
} else {
|
} else {
|
||||||
byte lic;
|
|
||||||
switch (radio.rds.LIC) {
|
|
||||||
case 73: lic = 44; break;
|
|
||||||
case 86: lic = 45; break;
|
|
||||||
case 96: lic = 46; break;
|
|
||||||
case 99: lic = 47; break;
|
|
||||||
case 108: lic = 48; break;
|
|
||||||
case 112: lic = 49; break;
|
|
||||||
case 113: lic = 50; break;
|
|
||||||
case 119: lic = 51; break;
|
|
||||||
case 125: lic = 52; break;
|
|
||||||
case 126: lic = 53; break;
|
|
||||||
default: lic = 0; break;
|
|
||||||
}
|
|
||||||
if (!screenmute) {
|
if (!screenmute) {
|
||||||
if (radio.rds.hasLIC) tftPrint(-1, myLanguages[lic], 242, 208, PrimaryColor, PrimaryColorSmooth, 16); else tftPrint(-1, "N/A", 242, 208, PrimaryColor, PrimaryColorSmooth, 16);
|
if (radio.rds.hasLIC) tftPrint(-1, myLanguages[0], 242, 208, PrimaryColor, PrimaryColorSmooth, 16); else tftPrint(-1, "N/A", 242, 208, PrimaryColor, PrimaryColorSmooth, 16);
|
||||||
}
|
}
|
||||||
LIColdString = myLanguages[lic];
|
LIColdString = myLanguages[0];
|
||||||
}
|
}
|
||||||
licold = radio.rds.LIC;
|
licold = radio.rds.LIC;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user