├── .gitignore ├── images ├── V1.jpg ├── V2.jpg ├── V2_new.jpg ├── ide_pic_readme.png ├── ide_pic_readme0.png ├── ide_pic_readme1.png ├── ide_pic_readme2.png ├── ide_pic_readme3.png ├── ide_pic_readme4.png ├── ide_pic_readme5.png ├── ide_pic_readme6.png └── ide_pic_readme7.png ├── config_examples ├── bus_tram_domagkstr.h ├── tram_karolinenplatz.h ├── bus_koenigsplatz.h └── u2_koenigsplatz.h ├── MVV_ESP_LCD ├── config.h.dist ├── Free_Fonts.h ├── MVV_ESP_LCD.ino └── Free_Sans.h ├── MVV_ESP_OLED ├── config.h.dist └── MVV_ESP_OLED.ino ├── API └── geops_uids.txt ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | config.h 2 | Build/ 3 | .vscode/ 4 | -------------------------------------------------------------------------------- /images/V1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/V1.jpg -------------------------------------------------------------------------------- /images/V2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/V2.jpg -------------------------------------------------------------------------------- /images/V2_new.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/V2_new.jpg -------------------------------------------------------------------------------- /images/ide_pic_readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme.png -------------------------------------------------------------------------------- /images/ide_pic_readme0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme0.png -------------------------------------------------------------------------------- /images/ide_pic_readme1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme1.png -------------------------------------------------------------------------------- /images/ide_pic_readme2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme2.png -------------------------------------------------------------------------------- /images/ide_pic_readme3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme3.png -------------------------------------------------------------------------------- /images/ide_pic_readme4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme4.png -------------------------------------------------------------------------------- /images/ide_pic_readme5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme5.png -------------------------------------------------------------------------------- /images/ide_pic_readme6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme6.png -------------------------------------------------------------------------------- /images/ide_pic_readme7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianlederer/mvv-display-for-ESP32/HEAD/images/ide_pic_readme7.png -------------------------------------------------------------------------------- /config_examples/bus_tram_domagkstr.h: -------------------------------------------------------------------------------- 1 | static const Config configs[] = { 2 | { 3 | /* wifi_name */ "wifi_test", 4 | /* wifi_pass */ "wifi_pw", 5 | /* type */ mvg_api, 6 | /* url */ "de:09162:502", 7 | /* include_type */ {"BUS", "TRAM" }, 8 | /* include_line */ { "*" }, 9 | /* exclude_destination */ {}, 10 | }, 11 | }; 12 | -------------------------------------------------------------------------------- /config_examples/tram_karolinenplatz.h: -------------------------------------------------------------------------------- 1 | static const Config configs[] = { 2 | { 3 | /* wifi_name */ "wifi_test", 4 | /* wifi_pass */ "wifi_pw", 5 | /* type */ mvg_api, 6 | /*url */"de:09162:52", 7 | /* include_type */ {"TRAM" }, 8 | /* include_line */ {"*"}, 9 | /* exclude_destination */ {}, 10 | }, 11 | 12 | 13 | 14 | //Einstellung Tramlinien ohne Endhaltestelle Petuelring bzw. nur Richtung Stachus 15 | { 16 | /* wifi_name */ "wifi_test", 17 | /* wifi_pass */ "wifi_pw", 18 | /* type */ mvg_api, 19 | /*url */"de:09162:52", 20 | /* include_type */ {"TRAM" }, 21 | /* include_line */ {"*"}, 22 | /* exclude_destination */ {"Petuelring","Petuelring U"}, 23 | }, 24 | }; 25 | -------------------------------------------------------------------------------- /config_examples/bus_koenigsplatz.h: -------------------------------------------------------------------------------- 1 | //Bus-Verbindung Linie 58, 68 und 100 am Königsplatz 2 | 3 | static const Config configs[] = { 4 | { 5 | /* wifi_name */ "wifi_test", 6 | /* wifi_pass */ "wifi_pw", 7 | /* type */ mvg_api, 8 | /* url */ "de:09162:110", 9 | /* include_type */ {"BUS" }, 10 | /* include_line */ { "*" }, 11 | /* exclude_destination */ {}, 12 | }, 13 | 14 | 15 | //Beispiel nur Bus 68 und 100 (ohne Bus-Linie 58) 16 | // { 17 | // /* wifi_name */ "wifi_test", 18 | // /* wifi_pass */ "wifi_pw", 19 | // /* type */ mvg_api, 20 | // /*url */"de:09162:110", 21 | // /* include_type */ {"BUS" }, 22 | // /* include_line */ {"68","100"}, 23 | // /* exclude_destination */ {}, 24 | // }, 25 | }; 26 | 27 | -------------------------------------------------------------------------------- /config_examples/u2_koenigsplatz.h: -------------------------------------------------------------------------------- 1 | static const Config configs[] = { 2 | { 3 | /* wifi_name */ "wifi_name", 4 | /* wifi_pass */ "wifi_pw", 5 | /* type */ mvg_api, 6 | /* url */ "de:09162:110", 7 | /* include_type */ {"*" }, 8 | /* include_line */ { "U2", "U8" }, 9 | /* exclude_destination */ {}, 10 | }, 11 | 12 | //Credentials am Smartphone-Hotspot entsprechend neu einstellen 13 | //Mit Powerbank/LiPo-Akku Anzeige unterwegs (auf dem Weg zur Haltestelle nutzen) 14 | //Für wifi-Verbindungswechsel Controller per reset-button neu powern 15 | { 16 | /* wifi_name */ "test_hotspot", 17 | /* wifi_pass */ "pw_test_hotspot", 18 | /* type */ mvg_api, 19 | /* url */ "de:09162:110", 20 | /* include_type */ {"*" }, 21 | /* include_line */ { "U2", "U8" }, 22 | /* exclude_destination */ {}, 23 | }, 24 | }; 25 | -------------------------------------------------------------------------------- /MVV_ESP_LCD/config.h.dist: -------------------------------------------------------------------------------- 1 | static const Config configs[] = { 2 | { 3 | /* wifi_name */ "foo", 4 | /* wifi_pass */ "bar", 5 | /* type */ mvg_api, 6 | /* bahnhof */ "de:09162:2", //Marienplatz 7 | /* include_type */ {"*" }, 8 | /* include_line */ { "U3", "U6" }, 9 | /* exclude_destination */ { "Feldmoching" }, 10 | }, 11 | { 12 | /* wifi_name */ "top", 13 | /* wifi_pass */ "secret", 14 | /* type */ geops_api, 15 | /* bahnhof */ "8098263", //Hauptbahnhof 16 | /* include_type */ {"*" }, 17 | /* include_line */ { "*" }, 18 | /* exclude_destination */ { }, 19 | }, 20 | { 21 | /* wifi_name */ "work", 22 | /* wifi_pass */ "secret", 23 | /* type */ mvg_api, 24 | /* bahnhof */ "de:09162:2", //Marienplatz 25 | /* include_type */ {"*" }, 26 | /* include_line */ { "U2", "S2", "U6" }, 27 | /* exclude_destination */ { }, 28 | }, 29 | }; 30 | -------------------------------------------------------------------------------- /MVV_ESP_OLED/config.h.dist: -------------------------------------------------------------------------------- 1 | static const Config configs[] = { 2 | { 3 | /* wifi_name */ "foo", 4 | /* wifi_pass */ "bar", 5 | /* type */ mvg_api, 6 | /* bahnhof */ "de:09162:2", //Marienplatz 7 | /* include_type */ {"*" }, 8 | /* include_line */ { "U3", "U6" }, 9 | /* exclude_destination */ { "Feldmoching" }, 10 | }, 11 | { 12 | /* wifi_name */ "top", 13 | /* wifi_pass */ "secret", 14 | /* type */ geops_api, 15 | /* bahnhof */ "8098263", //Hauptbahnhof 16 | /* include_type */ {"*" }, 17 | /* include_line */ { "*" }, 18 | /* exclude_destination */ { }, 19 | }, 20 | { 21 | /* wifi_name */ "work", 22 | /* wifi_pass */ "secret", 23 | /* type */ mvg_api, 24 | /* bahnhof */ "de:09162:2", //Marienplatz 25 | /* include_type */ {"*" }, 26 | /* include_line */ { "U2", "S2", "U6" }, 27 | /* exclude_destination */ { }, 28 | }, 29 | }; 30 | -------------------------------------------------------------------------------- /API/geops_uids.txt: -------------------------------------------------------------------------------- 1 | Bahnhof | uic 2 | ----------------------|------------ 3 | Altenerding | 8000524 4 | Altomünster | 8000556 5 | Arnbach | 8000603 6 | Aufhausen(b Erding) | 8000653 7 | Aying | 8000675 8 | Bachern | 8000685 9 | Baierbrunn | 8000781 10 | Baldham | 8000785 11 | Buchenau(Oberbay) | 8001229 12 | Buchenhain | 8001231 13 | Dachau Bahnhof | 8001354 14 | Dachau Stadt | 8001355 15 | Deisenhofen | 8001404 16 | Dürrnhaar | 8001578 17 | Ebenhausen-Schäftlarn | 8001621 18 | Ebersberg(Oberbay) | 8001634 19 | Eching | 8001647 20 | Eglharting | 8001682 21 | Eichenau(Oberbay) | 8001702 22 | Erding | 8001825 23 | Erdweg | 8001829 24 | Esting | 8001996 25 | Fasanenpark | 8001963 26 | Feldafing | 8001970 27 | Feldkirchen(b München) | 8001973 28 | Freising | 8002078 29 | Fürstenfeldbruck | 8002141 30 | Furth(b Deisenhofen) | 8002161 31 | Gauting | 8002198 32 | Geisenbrunn | 8002210 33 | Geltendorf | 8000119 34 | Germering-Unterpfaffenhofen | 8006006 35 | Gernlinden | 8002247 36 | Gilching-Argelsried | 8002275 37 | Gräfelfing | 8002339 38 | Grafing Bahnhof | 8002347 39 | Grafing Stadt | 8002348 40 | Grafrath | 8002351 41 | Gröbenzell | 8002377 42 | Gronsdorf | 8002383 43 | Großhelfendorf | 8002420 44 | Großhesselohe Isartalbf | 8002422 45 | Grub(Oberbay) | 8002435 46 | Haar | 8002491 47 | Hallbergmoos | 8002534 48 | Harthaus | 8002610 49 | Hebertshausen | 8006189 50 | Heimstetten | 8002715 51 | Herrsching | 8002792 52 | Hohenbrunn | 8002940 53 | Höhenkirchen-Siegertsbrunn | 8002894 54 | Hohenschäftlarn | 8002955 55 | Höllriegelskreuth | 8002899 56 | Holzkirchen | 8002980 57 | Icking | 8003039 58 | Ismaning | 8003092 59 | Kirchseeon | 8003290 60 | Kleinberghofen | 8003317 61 | Kreuzstraße | 8003438 62 | Lochham | 8003720 63 | Lohhof | 8003735 64 | Maisach | 8003824 65 | Malching(Oberbay) | 8003828 66 | Mammendorf | 8004204 67 | Markt Indersdorf | 8003072 68 | Markt Schwaben | 8003879 69 | München-Allach | 8004140 70 | München-Aubing | 8004141 71 | München-Berg am Laim | 8004142 72 | München-Daglfing | 8004143 73 | München Donnersbergerbrücke | 8004128 74 | München-Englschalking | 8004144 75 | München-Fasanerie | 8004145 76 | München-Fasangarten | 8004146 77 | München-Feldmoching | 8004147 78 | München Flughafen Besucherpark | 8004167 79 | München Flughafen Terminal | 8004168 80 | München-Freiham | 8004181 81 | München-Giesing | 8004148 82 | München Hackerbrücke | 8004129 83 | München Harras | 8004130 84 | München Hbf (tief) | 8098263 85 | München Heimeranplatz | 8005419 86 | München Hirschgarten | 8004179 87 | München Isartor | 8004131 88 | München-Johanneskirchen | 8004149 89 | München-Karlsfeld | 8004150 90 | München Karlsplatz | 8004132 91 | München-Laim | 8004151 92 | München-Langwied | 8004152 93 | München Leienfelsstr. | 8004133 94 | München Leuchtenbergring | 8004134 95 | München-Lochhausen | 8004153 96 | München Marienplatz | 8004135 97 | München-Mittersendling | 8004154 98 | München-Moosach | 8004155 99 | München-Neuaubing | 8004156 100 | München-Neuperlach Süd | 8006696 101 | München-Obermenzing | 8004157 102 | München Ost | 8000262 103 | München-Pasing | 8004158 104 | München-Perlach | 8004159 105 | München-Riem | 8004160 106 | München Rosenheimer Platz | 8004136 107 | München Siemenswerke | 8004137 108 | München-Solln | 8004161 109 | München St.Martin-Str. | 8004138 110 | München-Trudering | 8004162 111 | München-Untermenzing | 8004139 112 | München-Westkreuz | 8004163 113 | Neubiberg | 8004252 114 | Neufahrn(b Freising) | 8004279 115 | Neugilching | 8004249 116 | Niederroth | 8004404 117 | Oberschleißheim | 8004580 118 | Olching | 8004667 119 | Ottenhofen(Oberbay) | 8004723 120 | Otterfing | 8004726 121 | Ottobrunn | 8004733 122 | Peiß | 8004761 123 | Petershausen(Obb) | 8004775 124 | Planegg | 8004827 125 | Poing | 8004854 126 | Possenhofen | 8004874 127 | Puchheim | 8004893 128 | Pullach | 8004899 129 | Pulling(b Freising) | 8004900 130 | Röhrmoos | 8005127 131 | Sauerlach | 8005299 132 | Schöngeising | 8005406 133 | Schwabhausen(b Dachau) | 8005442 134 | Seefeld-Hechendorf | 8005504 135 | Starnberg | 8005676 136 | Starnberg Nord | 8005675 137 | Steinebach | 8005699 138 | St Koloman | 8005652 139 | Stockdorf | 8005735 140 | Taufkirchen | 8005831 141 | Türkenfeld | 8005920 142 | Tutzing | 8005927 143 | Unterföhring | 8005986 144 | Unterhaching | 8005991 145 | Unterschleißheim | 8006688 146 | Vaterstetten | 8006059 147 | Vierkirchen-Esterhofen | 8001922 148 | Wächterhof | 8006131 149 | Weßling(Oberbay) | 8006359 150 | Wolfratshausen | 8006550 151 | Zorneding | 8006671 -------------------------------------------------------------------------------- /MVV_ESP_LCD/Free_Fonts.h: -------------------------------------------------------------------------------- 1 | // Attach this header file to your sketch to use the GFX Free Fonts. You can write 2 | // sketches without it, but it makes referencing them easier. 3 | 4 | // This calls up ALL the fonts but they only get loaded if you actually 5 | // use them in your sketch. 6 | // 7 | // No changes are needed to this header file unless new fonts are added to the 8 | // library "Fonts/GFXFF" folder. 9 | // 10 | // To save a lot of typing long names, each font can easily be referenced in the 11 | // sketch in three ways, either with: 12 | // 13 | // 1. Font file name with the & in front such as &FreeSansBoldOblique24pt7b 14 | // an example being: 15 | // 16 | // tft.setFreeFont(&FreeSansBoldOblique24pt7b); 17 | // 18 | // 2. FF# where # is a number determined by looking at the list below 19 | // an example being: 20 | // 21 | // tft.setFreeFont(FF32); 22 | // 23 | // 3. An abbreviation of the file name. Look at the list below to see 24 | // the abbreviations used, for example: 25 | // 26 | // tft.setFreeFont(FSSBO24) 27 | // 28 | // Where the letters mean: 29 | // F = Free font 30 | // M = Mono 31 | // SS = Sans Serif (double S to distinguish is form serif fonts) 32 | // S = Serif 33 | // B = Bold 34 | // O = Oblique (letter O not zero) 35 | // I = Italic 36 | // # = point size, either 9, 12, 18 or 24 37 | // 38 | // Setting the font to NULL will select the GLCD font: 39 | // 40 | // tft.setFreeFont(NULL); // Set font to GLCD 41 | 42 | #ifdef LOAD_GFXFF // Only include the fonts if LOAD_GFXFF is defined in User_Setup.h 43 | 44 | // Use these when printing or drawing text in GLCD and high rendering speed fonts 45 | #define GFXFF 1 46 | #define GLCD 0 47 | #define FONT2 2 48 | #define FONT4 4 49 | #define FONT6 6 50 | #define FONT7 7 51 | #define FONT8 8 52 | 53 | // Use the following when calling setFont() 54 | // 55 | // Reserved for GLCD font // FF0 56 | // 57 | 58 | #define TT1 &TomThumb 59 | 60 | #define FM9 &FreeMono9pt7b 61 | #define FM12 &FreeMono12pt7b 62 | #define FM18 &FreeMono18pt7b 63 | #define FM24 &FreeMono24pt7b 64 | 65 | #define FMB9 &FreeMonoBold9pt7b 66 | #define FMB12 &FreeMonoBold12pt7b 67 | #define FMB18 &FreeMonoBold18pt7b 68 | #define FMB24 &FreeMonoBold24pt7b 69 | 70 | #define FMO9 &FreeMonoOblique9pt7b 71 | #define FMO12 &FreeMonoOblique12pt7b 72 | #define FMO18 &FreeMonoOblique18pt7b 73 | #define FMO24 &FreeMonoOblique24pt7b 74 | 75 | #define FMBO9 &FreeMonoBoldOblique9pt7b 76 | #define FMBO12 &FreeMonoBoldOblique12pt7b 77 | #define FMBO18 &FreeMonoBoldOblique18pt7b 78 | #define FMBO24 &FreeMonoBoldOblique24pt7b 79 | 80 | #define FSS9 &FreeSans9pt7b 81 | #define FSS12 &FreeSans12pt7b 82 | #define FSS18 &FreeSans18pt7b 83 | #define FSS24 &FreeSans24pt7b 84 | 85 | #define FSSB9 &FreeSansBold9pt7b 86 | #define FSSB12 &FreeSansBold12pt7b 87 | #define FSSB18 &FreeSansBold18pt7b 88 | #define FSSB24 &FreeSansBold24pt7b 89 | 90 | #define FSSO9 &FreeSansOblique9pt7b 91 | #define FSSO12 &FreeSansOblique12pt7b 92 | #define FSSO18 &FreeSansOblique18pt7b 93 | #define FSSO24 &FreeSansOblique24pt7b 94 | 95 | #define FSSBO9 &FreeSansBoldOblique9pt7b 96 | #define FSSBO12 &FreeSansBoldOblique12pt7b 97 | #define FSSBO18 &FreeSansBoldOblique18pt7b 98 | #define FSSBO24 &FreeSansBoldOblique24pt7b 99 | 100 | #define FS9 &FreeSerif9pt7b 101 | #define FS12 &FreeSerif12pt7b 102 | #define FS18 &FreeSerif18pt7b 103 | #define FS24 &FreeSerif24pt7b 104 | 105 | #define FSI9 &FreeSerifItalic9pt7b 106 | #define FSI12 &FreeSerifItalic12pt7b 107 | #define FSI19 &FreeSerifItalic18pt7b 108 | #define FSI24 &FreeSerifItalic24pt7b 109 | 110 | #define FSB9 &FreeSerifBold9pt7b 111 | #define FSB12 &FreeSerifBold12pt7b 112 | #define FSB18 &FreeSerifBold18pt7b 113 | #define FSB24 &FreeSerifBold24pt7b 114 | 115 | #define FSBI9 &FreeSerifBoldItalic9pt7b 116 | #define FSBI12 &FreeSerifBoldItalic12pt7b 117 | #define FSBI18 &FreeSerifBoldItalic18pt7b 118 | #define FSBI24 &FreeSerifBoldItalic24pt7b 119 | 120 | #define FF0 NULL //ff0 reserved for GLCD 121 | #define FF1 &FreeMono9pt7b 122 | #define FF2 &FreeMono12pt7b 123 | #define FF3 &FreeMono18pt7b 124 | #define FF4 &FreeMono24pt7b 125 | 126 | #define FF5 &FreeMonoBold9pt7b 127 | #define FF6 &FreeMonoBold12pt7b 128 | #define FF7 &FreeMonoBold18pt7b 129 | #define FF8 &FreeMonoBold24pt7b 130 | 131 | #define FF9 &FreeMonoOblique9pt7b 132 | #define FF10 &FreeMonoOblique12pt7b 133 | #define FF11 &FreeMonoOblique18pt7b 134 | #define FF12 &FreeMonoOblique24pt7b 135 | 136 | #define FF13 &FreeMonoBoldOblique9pt7b 137 | #define FF14 &FreeMonoBoldOblique12pt7b 138 | #define FF15 &FreeMonoBoldOblique18pt7b 139 | #define FF16 &FreeMonoBoldOblique24pt7b 140 | 141 | #define FF17 &FreeSans9pt7b 142 | #define FF18 &FreeSans12pt7b 143 | #define FF19 &FreeSans18pt7b 144 | #define FF20 &FreeSans24pt7b 145 | 146 | #define FF21 &FreeSansBold9pt7b 147 | #define FF22 &FreeSansBold12pt7b 148 | #define FF23 &FreeSansBold18pt7b 149 | #define FF24 &FreeSansBold24pt7b 150 | 151 | #define FF25 &FreeSansOblique9pt7b 152 | #define FF26 &FreeSansOblique12pt7b 153 | #define FF27 &FreeSansOblique18pt7b 154 | #define FF28 &FreeSansOblique24pt7b 155 | 156 | #define FF29 &FreeSansBoldOblique9pt7b 157 | #define FF30 &FreeSansBoldOblique12pt7b 158 | #define FF31 &FreeSansBoldOblique18pt7b 159 | #define FF32 &FreeSansBoldOblique24pt7b 160 | 161 | #define FF33 &FreeSerif9pt7b 162 | #define FF34 &FreeSerif12pt7b 163 | #define FF35 &FreeSerif18pt7b 164 | #define FF36 &FreeSerif24pt7b 165 | 166 | #define FF37 &FreeSerifItalic9pt7b 167 | #define FF38 &FreeSerifItalic12pt7b 168 | #define FF39 &FreeSerifItalic18pt7b 169 | #define FF40 &FreeSerifItalic24pt7b 170 | 171 | #define FF41 &FreeSerifBold9pt7b 172 | #define FF42 &FreeSerifBold12pt7b 173 | #define FF43 &FreeSerifBold18pt7b 174 | #define FF44 &FreeSerifBold24pt7b 175 | 176 | #define FF45 &FreeSerifBoldItalic9pt7b 177 | #define FF46 &FreeSerifBoldItalic12pt7b 178 | #define FF47 &FreeSerifBoldItalic18pt7b 179 | #define FF48 &FreeSerifBoldItalic24pt7b 180 | 181 | // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 182 | // Now we define "s"tring versions for easy printing of the font name so: 183 | // tft.println(sFF5); 184 | // will print 185 | // Mono bold 9 186 | // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 187 | 188 | #define sFF0 "GLCD" 189 | #define sTT1 "Tom Thumb" 190 | #define sFF1 "Mono 9" 191 | #define sFF2 "Mono 12" 192 | #define sFF3 "Mono 18" 193 | #define sFF4 "Mono 24" 194 | 195 | #define sFF5 "Mono bold 9" 196 | #define sFF6 "Mono bold 12" 197 | #define sFF7 "Mono bold 18" 198 | #define sFF8 "Mono bold 24" 199 | 200 | #define sFF9 "Mono oblique 9" 201 | #define sFF10 "Mono oblique 12" 202 | #define sFF11 "Mono oblique 18" 203 | #define sFF12 "Mono oblique 24" 204 | 205 | #define sFF13 "Mono bold oblique 9" 206 | #define sFF14 "Mono bold oblique 12" 207 | #define sFF15 "Mono bold oblique 18" 208 | #define sFF16 "Mono bold obl. 24" // Full text line is too big for 480 pixel wide screen 209 | 210 | #define sFF17 "Sans 9" 211 | #define sFF18 "Sans 12" 212 | #define sFF19 "Sans 18" 213 | #define sFF20 "Sans 24" 214 | 215 | #define sFF21 "Sans bold 9" 216 | #define sFF22 "Sans bold 12" 217 | #define sFF23 "Sans bold 18" 218 | #define sFF24 "Sans bold 24" 219 | 220 | #define sFF25 "Sans oblique 9" 221 | #define sFF26 "Sans oblique 12" 222 | #define sFF27 "Sans oblique 18" 223 | #define sFF28 "Sans oblique 24" 224 | 225 | #define sFF29 "Sans bold oblique 9" 226 | #define sFF30 "Sans bold oblique 12" 227 | #define sFF31 "Sans bold oblique 18" 228 | #define sFF32 "Sans bold oblique 24" 229 | 230 | #define sFF33 "Serif 9" 231 | #define sFF34 "Serif 12" 232 | #define sFF35 "Serif 18" 233 | #define sFF36 "Serif 24" 234 | 235 | #define sFF37 "Serif italic 9" 236 | #define sFF38 "Serif italic 12" 237 | #define sFF39 "Serif italic 18" 238 | #define sFF40 "Serif italic 24" 239 | 240 | #define sFF41 "Serif bold 9" 241 | #define sFF42 "Serif bold 12" 242 | #define sFF43 "Serif bold 18" 243 | #define sFF44 "Serif bold 24" 244 | 245 | #define sFF45 "Serif bold italic 9" 246 | #define sFF46 "Serif bold italic 12" 247 | #define sFF47 "Serif bold italic 18" 248 | #define sFF48 "Serif bold italic 24" 249 | 250 | #else // LOAD_GFXFF not defined so setup defaults to prevent error messages 251 | 252 | // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 253 | // Free fonts are not loaded in User_Setup.h so we must define all as font 1 254 | // to prevent compile error messages 255 | // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 256 | 257 | #define GFXFF 1 258 | #define GLCD 1 259 | #define FONT2 2 260 | #define FONT4 4 261 | #define FONT6 6 262 | #define FONT7 7 263 | #define FONT8 8 264 | 265 | #define TT1 1 266 | 267 | #define FF0 1 268 | #define FF1 1 269 | #define FF2 1 270 | #define FF3 1 271 | #define FF4 1 272 | #define FF5 1 273 | #define FF6 1 274 | #define FF7 1 275 | #define FF8 1 276 | #define FF9 1 277 | #define FF10 1 278 | #define FF11 1 279 | #define FF12 1 280 | #define FF13 1 281 | #define FF14 1 282 | #define FF15 1 283 | #define FF16 1 284 | #define FF17 1 285 | #define FF18 1 286 | #define FF19 1 287 | #define FF20 1 288 | #define FF21 1 289 | #define FF22 1 290 | #define FF23 1 291 | #define FF24 1 292 | #define FF25 1 293 | #define FF26 1 294 | #define FF27 1 295 | #define FF28 1 296 | #define FF29 1 297 | #define FF30 1 298 | #define FF31 1 299 | #define FF32 1 300 | #define FF33 1 301 | #define FF34 1 302 | #define FF35 1 303 | #define FF36 1 304 | #define FF37 1 305 | #define FF38 1 306 | #define FF39 1 307 | #define FF40 1 308 | #define FF41 1 309 | #define FF42 1 310 | #define FF43 1 311 | #define FF44 1 312 | #define FF45 1 313 | #define FF46 1 314 | #define FF47 1 315 | #define FF48 1 316 | 317 | #define FM9 1 318 | #define FM12 1 319 | #define FM18 1 320 | #define FM24 1 321 | 322 | #define FMB9 1 323 | #define FMB12 1 324 | #define FMB18 1 325 | #define FMB24 1 326 | 327 | #define FMO9 1 328 | #define FMO12 1 329 | #define FMO18 1 330 | #define FMO24 1 331 | 332 | #define FMBO9 1 333 | #define FMBO12 1 334 | #define FMBO18 1 335 | #define FMBO24 1 336 | 337 | #define FSS9 1 338 | #define FSS12 1 339 | #define FSS18 1 340 | #define FSS24 1 341 | 342 | #define FSSB9 1 343 | #define FSSB12 1 344 | #define FSSB18 1 345 | #define FSSB24 1 346 | 347 | #define FSSO9 1 348 | #define FSSO12 1 349 | #define FSSO18 1 350 | #define FSSO24 1 351 | 352 | #define FSSBO9 1 353 | #define FSSBO12 1 354 | #define FSSBO18 1 355 | #define FSSBO24 1 356 | 357 | #define FS9 1 358 | #define FS12 1 359 | #define FS18 1 360 | #define FS24 1 361 | 362 | #define FSI9 1 363 | #define FSI12 1 364 | #define FSI19 1 365 | #define FSI24 1 366 | 367 | #define FSB9 1 368 | #define FSB12 1 369 | #define FSB18 1 370 | #define FSB24 1 371 | 372 | #define FSBI9 1 373 | #define FSBI12 1 374 | #define FSBI18 1 375 | #define FSBI24 1 376 | 377 | #endif // LOAD_GFXFF 378 | -------------------------------------------------------------------------------- /MVV_ESP_OLED/MVV_ESP_OLED.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | //mvg api timestamp in ms needs long long 4 | #define ARDUINOJSON_USE_LONG_LONG 1 5 | //geops api timestamp in ms needs double 6 | #define ARDUINOJSON_USE_DOUBLE 1 7 | //geops api uses unicode characters 8 | #define ARDUINOJSON_DECODE_UNICODE 1 9 | #include 10 | #include 11 | #include "Wire.h" 12 | #include "SSD1306.h" 13 | #include "time.h" 14 | #include 15 | #include 16 | #include 17 | using namespace std; 18 | 19 | #define MAX_INCLUDE_TYPE 10 20 | #define MAX_INCLUDE_LINE 10 21 | #define MAX_EXCLUDE_DESTINATION 10 22 | #define MAX_JSON_DOCUMENT 20000 23 | #define MAX_DEPARTURE_LIST_LENGTH 100 24 | 25 | enum types { 26 | mvg_api, 27 | geops_api 28 | }; 29 | 30 | 31 | typedef struct { 32 | const char *wifi_name; 33 | const char *wifi_pass; 34 | const enum types type; 35 | const char *bahnhof; 36 | const char *include_type[MAX_INCLUDE_TYPE]; 37 | const char *include_line[MAX_INCLUDE_LINE]; 38 | const char *exclude_destinations[MAX_EXCLUDE_DESTINATION]; 39 | } Config; 40 | #include "config.h"; 41 | 42 | typedef struct { 43 | unsigned long long aimed_time; 44 | unsigned long long estimated_time; 45 | String line; 46 | String destination; 47 | int platform; 48 | int wagon; 49 | } Departure; 50 | 51 | list departure_list; 52 | 53 | websockets::WebsocketsClient client; 54 | 55 | SSD1306 display (0x3c, 4, 15); 56 | 57 | StaticJsonDocument doc; 58 | 59 | const char* ntpServer = "pool.ntp.org"; 60 | const long gmtOffset_sec = 3600; 61 | const int daylightOffset_sec = 3600; 62 | const int number_of_configs = sizeof(configs) / sizeof(*configs); 63 | int config_number = -1; 64 | 65 | int connect_wifi(); 66 | void setup_display(); 67 | void handle_mvg_api(Config config); 68 | void drawDeparture(int display_line, const char * line, const char * destination, int track, int wagon, int minutes); 69 | void init_geops_api(Config config); 70 | void handle_geops_api(Config config); 71 | void ping_geops_api(); 72 | 73 | void setup() { 74 | 75 | Serial.begin(115200); 76 | 77 | setup_display(); 78 | 79 | delay(4000); //Delay needed before calling the WiFi.begin 80 | 81 | while (config_number == -1) { 82 | config_number = connect_wifi(); 83 | } 84 | Config loaded_config = configs[config_number]; 85 | 86 | switch (loaded_config.type) { 87 | case mvg_api: 88 | break; 89 | case geops_api: 90 | init_geops_api(loaded_config); 91 | break; 92 | default: 93 | Serial.println("Unkown config type"); 94 | break; 95 | } 96 | 97 | configTime(gmtOffset_sec, daylightOffset_sec, ntpServer); 98 | 99 | } 100 | 101 | void loop() { 102 | if (WiFi.status() == WL_CONNECTED) { 103 | Config loaded_config = configs[config_number]; 104 | switch (loaded_config.type) { 105 | case mvg_api: 106 | handle_mvg_api(loaded_config); 107 | break; 108 | case geops_api: 109 | static unsigned long last_time = 0; 110 | handle_geops_api(loaded_config); 111 | if(millis() > last_time + 10000) 112 | { 113 | last_time = millis(); 114 | ping_geops_api(); 115 | } 116 | break; 117 | default: 118 | Serial.println("Unkown config type"); 119 | } 120 | } else { 121 | Serial.println("Error in WiFi connection"); 122 | Serial.println("Try to Reconnect WiFi"); 123 | WiFi.disconnect(); 124 | WiFi.mode(WIFI_OFF); 125 | WiFi.mode(WIFI_STA); 126 | while (config_number == -1) { 127 | config_number = connect_wifi(); 128 | } 129 | } 130 | } 131 | 132 | int connect_wifi() 133 | { 134 | int number_of_networks = WiFi.scanNetworks(); 135 | if (number_of_networks == -1 ) { 136 | Serial.println("No networks available"); 137 | } 138 | int wait = 0; 139 | int wifi_retry = 0; 140 | for (int i = 0; i < number_of_networks; ++i) { 141 | String ssid = WiFi.SSID(i); 142 | // is this network in config...? 143 | for (int j = 0; j < number_of_configs; ++j) { 144 | if (strcmp(ssid.c_str(), configs[j].wifi_name) == 0) { 145 | // ... yes it is 146 | WiFi.begin(configs[j].wifi_name, configs[j].wifi_pass); 147 | while (WiFi.status() != WL_CONNECTED && wait < 5 ) 148 | { 149 | delay(1000); 150 | ++wait; 151 | } 152 | while (WiFi.status() != WL_CONNECTED && wifi_retry < 5 ) { 153 | ++wifi_retry; 154 | Serial.println("WiFi not connected. Try to reconnect"); 155 | WiFi.disconnect(); 156 | WiFi.mode(WIFI_OFF); 157 | WiFi.mode(WIFI_STA); 158 | WiFi.begin(configs[j].wifi_name, configs[j].wifi_pass); 159 | Serial.println("Connecting to WiFi..."); 160 | delay(5000); 161 | } 162 | if(wifi_retry >= 5) 163 | { 164 | Serial.println("\nReboot"); 165 | ESP.restart(); 166 | } 167 | else 168 | { 169 | Serial.printf("Connected to the WiFi network: %s\n", ssid.c_str()); 170 | return j; 171 | } 172 | } 173 | } 174 | } 175 | return -1; 176 | } 177 | 178 | void setup_display() { 179 | pinMode (16, OUTPUT); 180 | digitalWrite (16, LOW); // set GPIO16 low to reset OLED 181 | delay (50); 182 | digitalWrite (16, HIGH); // while OLED is running, GPIO16 must go high 183 | display.init (); 184 | display.flipScreenVertically (); 185 | display.setFont (ArialMT_Plain_10); 186 | delay(1000); 187 | } 188 | 189 | void handle_mvg_api(Config config) { 190 | HTTPClient http; 191 | String url = "https://www.mvg.de/api/fahrinfo/departure/" + String(config.bahnhof) + "?footway=0"; 192 | http.begin(url); 193 | int httpResponseCode = http.GET(); 194 | 195 | if (httpResponseCode > 0) { 196 | String response = http.getString(); 197 | Serial.println("New data"); 198 | Serial.println(httpResponseCode); 199 | Serial.println(response); 200 | 201 | Serial.println("Parsing JSON..."); 202 | DeserializationError error = deserializeJson(doc, response); 203 | if (error) { 204 | Serial.print(F("deserializeJson() failed: ")); 205 | Serial.println(error.c_str()); 206 | } else { 207 | Serial.println("No errors"); 208 | String servings = doc["departures"][0]; 209 | Serial.println(servings); 210 | 211 | time_t now; 212 | time(&now); 213 | Serial.println(now); 214 | 215 | display.clear(); 216 | unsigned int departures_length = doc["departures"].size(); 217 | unsigned int i = 0; 218 | unsigned int cnt = 0; 219 | 220 | while (i < departures_length && cnt < 4) { 221 | // Extract what we are interested in from response 222 | // based on config 223 | bool interesting_type = false; 224 | bool interesting_line = false; 225 | bool interesting_destination = true; 226 | 227 | for (int j = 0; j < MAX_INCLUDE_TYPE; ++j) { 228 | Serial.println(config.include_type[j]); 229 | if (config.include_type[j] && strcmp(config.include_type[j], "*") == 0) { 230 | // We want to see all types 231 | interesting_type = true; 232 | break; 233 | } 234 | if (config.include_type[j] && strcmp(config.include_type[j], doc["departures"][i]["product"]) == 0) { 235 | // We want to see this type 236 | interesting_type = true; 237 | break; 238 | } 239 | } 240 | 241 | for (int j = 0; j < MAX_INCLUDE_LINE; ++j) { 242 | Serial.println(config.include_line[j]); 243 | if (config.include_line[j] && strcmp(config.include_line[j], "*") == 0) { 244 | // We want to see all lines 245 | interesting_line = true; 246 | break; 247 | } 248 | if (config.include_line[j] && strcmp(config.include_line[j], doc["departures"][i]["label"]) == 0) { 249 | // We want to see this line 250 | interesting_line = true; 251 | break; 252 | } 253 | } 254 | if (interesting_type && interesting_line) { 255 | for (int j = 0; j < MAX_EXCLUDE_DESTINATION; ++j) { 256 | if (config.exclude_destinations[j] && strcmp(config.exclude_destinations[j], doc["departures"][i]["destination"]) == 0) { 257 | interesting_destination = false; 258 | break; 259 | } 260 | } 261 | } 262 | if (interesting_type && interesting_line && interesting_destination) { 263 | //Calc minutes until departure 264 | unsigned long departure = doc["departures"][i]["departureTime"].as() / 1000; //ms to seconds 265 | Serial.println(departure); 266 | 267 | unsigned long minutes = 0; 268 | if ( departure > now) { 269 | unsigned long wait = departure - now; 270 | Serial.println(wait); 271 | minutes = wait / 60; 272 | //if (wait % 60 > 30) ++minutes; 273 | minutes += doc["departures"][i]["delay"].as(); 274 | } 275 | Serial.println(minutes); 276 | 277 | drawDeparture(cnt, doc["departures"][i]["label"].as(), doc["departures"][i]["destination"].as(), 0, 0, minutes); 278 | 279 | ++cnt; 280 | } 281 | ++i; 282 | } 283 | display.display(); 284 | } 285 | } else { 286 | Serial.print("Error: Couldn't send GET: "); 287 | Serial.println(httpResponseCode); 288 | } 289 | http.end(); 290 | delay(30000); //Send a request every 30 seconds 291 | } 292 | 293 | 294 | void drawDeparture(int display_line, String line, String destination, int track, int wagon, int minutes) { 295 | String full_name = line + " " + destination; 296 | String sliced_name = full_name.substring(0, 19); 297 | display.setTextAlignment (TEXT_ALIGN_LEFT); 298 | display.setFont (ArialMT_Plain_10); 299 | display.drawString(0, display_line * 16, sliced_name); 300 | 301 | display.setFont (ArialMT_Plain_16); 302 | display.setTextAlignment (TEXT_ALIGN_RIGHT); 303 | display.drawString( 128, display_line * 16, String(minutes)); 304 | } 305 | 306 | void init_geops_api(Config config) 307 | { 308 | bool connected = client.connect("wss://api.geops.io:443/realtime-ws/v1/?key=5cc87b12d7c5370001c1d655306122aa0a4743c489b497cb1afbec9b"); 309 | if (connected) { 310 | Serial.println("Connecetd!"); 311 | client.send("GET timetable_" + String(config.bahnhof)); 312 | client.send("SUB timetable_" + String(config.bahnhof)); //Subscribe for Departures at Hauptbahnhof 313 | } else { 314 | Serial.println("Not Connected!"); 315 | } 316 | 317 | 318 | client.onEvent([&](websockets::WebsocketsEvent event, String data) { 319 | if(event == websockets::WebsocketsEvent::ConnectionOpened) { 320 | Serial.println("Connnection Opened"); 321 | } else if(event == websockets::WebsocketsEvent::ConnectionClosed) { 322 | Serial.println("Connnection Closed"); 323 | // Config loaded_config = configs[config_number]; 324 | // init_geops_api(loaded_config); 325 | } else if(event == websockets::WebsocketsEvent::GotPing) { 326 | Serial.println("Got a Ping!"); 327 | } else if(event == websockets::WebsocketsEvent::GotPong) { 328 | Serial.println("Got a Pong!"); 329 | } 330 | }); 331 | 332 | // run callback when messages are received 333 | client.onMessage([&](websockets::WebsocketsMessage message) { 334 | Serial.println(message.data()); 335 | Serial.println("Parsing JSON..."); 336 | DeserializationError error = deserializeJson(doc, message.data()); 337 | if (error) { 338 | Serial.print(F("deserializeJson() failed: ")); 339 | Serial.println(error.c_str()); 340 | } 341 | else 342 | { 343 | Serial.println("No errors"); 344 | Serial.print("Cheking for "); 345 | Config loaded_config = configs[config_number]; 346 | Serial.println(String(loaded_config.bahnhof)); 347 | if (doc["source"] == ("timetable_" + String(loaded_config.bahnhof))) 348 | { 349 | Departure received_departure; 350 | received_departure.aimed_time= doc["content"]["ris_aimed_time"].as(); 351 | received_departure.estimated_time = doc["content"]["time"].as(); 352 | received_departure.line = doc["content"]["line"]["name"].as(); 353 | received_departure.destination = doc["content"]["to"][0].as(); 354 | received_departure.platform = doc["content"]["platform"].as(); 355 | received_departure.wagon = doc["content"]["train_type"].as(); 356 | 357 | /* 358 | Serial.println((unsigned long)(received_departure.aimed_time/1000.)); 359 | Serial.println((unsigned long)(received_departure.estimated_time/1000.)); 360 | Serial.println(received_departure.line); 361 | Serial.println(received_departure.destination); 362 | Serial.println(received_departure.platform); 363 | Serial.println(received_departure.wagon); 364 | */ 365 | if (departure_list.empty()) 366 | { 367 | Serial.println("EMPTY"); 368 | departure_list.push_back(received_departure); 369 | } 370 | else 371 | { 372 | Serial.println("Not empty"); 373 | list::iterator it1; 374 | for (it1 = departure_list.begin(); it1 != departure_list.end(); ++it1) 375 | { 376 | Serial.println("For loop"); 377 | 378 | if (it1->aimed_time == received_departure.aimed_time && it1->line == received_departure.line && it1->destination == received_departure.destination) //Departure schon vorhanden => Update 379 | { 380 | Serial.println("Update"); 381 | *it1 = received_departure; 382 | //Sorting to be sure we are sill in correct order 383 | departure_list.sort([](const Departure & a, const Departure & b) { return a.estimated_time < b.estimated_time; }); 384 | break; 385 | } 386 | if ( next(it1, 1) == departure_list.end() && departure_list.size() < MAX_DEPARTURE_LIST_LENGTH) //Departure nicht vorhanden 387 | { 388 | Serial.println("Departure nicht vorhanden"); 389 | list::iterator it2; 390 | for (it2 = departure_list.begin(); it2 != departure_list.end(); ++it2) 391 | { 392 | if (it2->estimated_time > received_departure.estimated_time) //Element richtig einsortieren 393 | { 394 | Serial.println("Departure insert"); 395 | departure_list.insert(it2, received_departure); 396 | break; 397 | } 398 | if (next(it2,1) == departure_list.end()) //Element ganz hinten einfügen da größter Wert 399 | { 400 | Serial.println("Departure push_back"); 401 | departure_list.push_back(received_departure); 402 | break; //needed cause otherwise it2 != departure_list.end() will never be true 403 | } 404 | } 405 | } 406 | } 407 | } 408 | } 409 | } 410 | }); 411 | } 412 | 413 | void handle_geops_api(Config config) 414 | { 415 | if (client.available()) { 416 | client.poll(); 417 | } 418 | 419 | time_t now; 420 | time(&now); 421 | 422 | //Serial.println("New List"); 423 | display.clear(); 424 | list :: iterator it; 425 | it = departure_list.begin(); 426 | int cnt = 0; 427 | while ( !departure_list.empty() && it != departure_list.end() && cnt < 4) { 428 | unsigned long estimated_time_s = it->estimated_time / 1000; 429 | unsigned long minutes = 0; 430 | 431 | if (estimated_time_s > now) { 432 | unsigned long wait = estimated_time_s - now; 433 | minutes = wait / 60; 434 | //if (wait % 60 > 30) ++minutes; 435 | } else { 436 | // abfahrt in der vergangenheit => aus der liste entfernen 437 | departure_list.erase (it); 438 | } 439 | 440 | if (it != departure_list.end()) { 441 | // Serial.print(it->line); 442 | // Serial.print("\t"); 443 | // Serial.print(it->destination); 444 | // Serial.print("\t"); 445 | // Serial.println(minutes); 446 | drawDeparture(cnt, it->line, it->destination, 0, 0, minutes); 447 | } 448 | ++cnt; 449 | ++it; 450 | } 451 | display.display(); 452 | } 453 | 454 | void ping_geops_api() 455 | { 456 | if(client.available()) 457 | { 458 | client.send("PING"); 459 | Serial.println("Send Ping"); 460 | } 461 | else 462 | { 463 | Serial.println("Try to Reconnect geops!"); 464 | Config loaded_config = configs[config_number]; 465 | init_geops_api(loaded_config); 466 | } 467 | 468 | } 469 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mvv display for ESP32 2 | In diesem Projekt wird eine Echtzteitanzeige gebaut mit der die nächsten Abfahrten des Münchner Nahverkehrs auf einem kleinem Display angezeigt werden. Es handelt sich hierbei um kein Projekt der MVV. Akutell gibt es zwei Varianten des Projektes. Die neuere Version 2 unterscheidet sich vom Vorgänger durch ein größeres Farb Display. Damit können weitere Informationen wie z.B. Gleis und Wagonzahl angezeigt werden. Aus diesem Grund wird empfohlen die neuere Variante zu verwenden. 3 | 4 | ## Benötigtes Version 2 LCD Display (empfohlen): 5 | - ESP32 TTGO-T-Display: https://www.amazon.de/dp/B07VNG9D52/ 6 | - USB-C Kabel 7 | - USB Netzteil 8 | - Computer zum Programmieren 9 | 10 | 11 | 12 | ## Benötigtes Version 1 OLED Display (obsolet): 13 | - ESP32 mit OLED Display: https://www.amazon.de/dp/B076P8GRWV/ 14 | - Micro USB Kabel 15 | - USB Netzteil 16 | - Computer zum Programmieren 17 | 18 | 19 | 20 | ## Anleitung: 21 | 1. Arduino IDE installieren: https://www.arduino.cc/en/main/software 22 | 1. ESP32 Board installieren: https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/ 23 | 1. Tools -> Manage Libraries.. anklicken und nach den folgenden Libraries suchen und installieren: 24 | 1. "Arduinojson" (by Benoit Blanchon) 25 | 1. "ArduinoWebsockets" (by Gil Maimon) 26 | 1. "ESP8266 and ESP32 OLED driver for SSD1306 displays" (by ThingPulse, Fabrice Weinberg) (Benötigt für Version 1) 27 | 1. "TFT_eSPI" (by Bodmer) (Benötigt für Version 2) 28 | 1. Den Arduino Library Ordner öffnen und die "TFT_eSPI" wie hier in Schritt 2 erklärt, modifizieren: https://github.com/Xinyuan-LilyGO/TTGO-T-Display (Benötigt für Version 2) 29 | 1. Installiere die "Button2" Library: Das folgende ZIP-Archiv (https://github.com/lennarthennigs/Button2/zipball/master) herunterladen. Unter "Sketch > Include Library > Add .ZIP Library..." das heruntergeladene File auswählen um die Bibliothek zu installieren. (Benötigt für Version 2) 30 | 1. Tools -> Board -> "ESP32 Dev Module" auswählen. 31 | 1. Tools -> Port anschauen und die Enträge merken falls nicht ausgeblendet. 32 | 1. ESP32 mit dem Kabel mit dem Computer verbinden und erneut unter Tools -> Port schauen nun müsste ein neuer Port hinzugekommen sein/ Port ist nicht mehr ausgeblendet. Diesen nun auswählen. 33 | 1. Dieses Repo als ZIP herunterladen und MVV_ESP_XXXX/MVV_ESP_XXXX.ino (Version 1: OLED, Version 2: LCD) in der Arduino IDE öffnen. 34 | 1. MVV_ESP_XXXX/config.h.dist in config.h umbennenen und minderstens eine eigene Konfiguration eintragen: 35 | 1. Zunächst müssen wifi_name und wifi_pass angegeben werden. 36 | 1. bei type kann entweder mvg_api oder geops_api (ohne Anführungszeichen) eingetragen werden. 37 | 1. Unter bahnhof muss für die mvg_api die id eingetragen werden, für die geops_api muss die entsprechende uid eingefügt werden. Zum Herausfinden dieser Nummern gibt es im Ordner API entsprechende Listen. 38 | 1. Ein `*` bei include_type zeigt alle verfügbaren Verkehrsmittel an (mögliche Filter: "SBAHN", "UBAHN", "TRAM", "BUS", REGIONAL_BUS) 39 | 1. Ein `*` bei include_line zeigt alle verfügbaren Linien an (mögliche Filter: z.B. "S8", "U3", "17") 40 | 1. exclude_destinations kann bei Bedarf leer gelassen werden (mögliche Filter: z.B. "Feldmoching", "Pasing") 41 | 1. HINWEIS: Filter funktionieren aktuell nur mit der mvg_api und werden von der geops_api ignoriert. 42 | 1. Sketch -> Verify/Compile und schauen ob irgendwelche Fehler in der Konsole auftreten. Gegebenfalls die Libraries überprüfen. 43 | 1. Sketch -> Upload 44 | 1. Nach kurzer Zeit sollten auf dem Display die aktuellen Abfahrten angezeigt werden. 45 | 1. Zum Debuggen kann der Serielle Monitor unter Tools -> Serial Monitor aufgerufen werden. 46 | 47 | ## MVG API: 48 | Die MVG API liefert Infos für alle Verkehrsmittel der MVG (Bus/Sbahn/Ubahn/Tram). Sie stellt die Grundlage für die MVG Website sowie die MVG Naviagtor App dar. Allerdings sind die Echtzeitinformationen besonders bei Störungen nicht optimal. Aus diesem Grund kann ach die geops-API verwendet werden, die unteranderem in der München Navigator APP oder auf s-bahn-muenchen-live.de zum Einsatz kommt. Hier bekommt man sehr genaue Echtzeitinformationen, allerdings ausschließlich für die Sbahn. 49 | 50 | ### Server 51 | URL | Port | Protokoll 52 | ------------------------| -------- | -------- 53 | https://www.mvg.de/api | 443 | HTTP 54 | 55 | ### Kommandos 56 | Die wichtigesten Kommandos für dieses Projekt sind hier beispielhaft aufgelistet: 57 | 58 | Kommando | Funktion 59 | ---------------------------------- |--------------------------------------------------------------------------- 60 | /fahrinfo/location/queryWeb?q= | Liefert Infos zu allen Bahnhöfen (z.B. id) 61 | /fahrinfo/location/queryWeb?q=Marienplatz | Liefert Infos zu allen Bahnhöfen am Marienplatz 62 | /fahrinfo/departure/de:09162:2?footway=0 | Liefert die aktuellen Abfahrtzeiten am Marienplatz (id=de:09162:2) 63 | 64 | Der Server antwortet immer im JSON Format. 65 | 66 | Eine Beispielantwort eines location Paketes sieht folgendermaßen aus: 67 | ```json 68 | { 69 | "locations" : [ { 70 | "type" : "station", 71 | "latitude" : 48.13725, 72 | "longitude" : 11.57542, 73 | "id" : "de:09162:2", 74 | "divaId" : 2, 75 | "place" : "München", 76 | "name" : "Marienplatz", 77 | "hasLiveData" : true, 78 | "hasZoomData" : true, 79 | "products" : [ "SBAHN", "UBAHN", "BUS" ], 80 | "aliases" : "Rathaus Bf. Bahnhof München Muenchen Munchen", 81 | "link" : "MP", 82 | "lines" : { 83 | "tram" : [ ], 84 | "nachttram" : [ ], 85 | "sbahn" : [ ], 86 | "ubahn" : [ ], 87 | "bus" : [ ], 88 | "nachtbus" : [ ], 89 | "otherlines" : [ ] 90 | } 91 | }, { 92 | "type" : "station", 93 | "latitude" : 48.40054, 94 | "longitude" : 11.74386, 95 | "id" : "de:09178:2851", 96 | "divaId" : 2851, 97 | "place" : "Freising", 98 | "name" : "Marienplatz", 99 | "hasLiveData" : false, 100 | "hasZoomData" : false, 101 | "products" : [ "BUS" ], 102 | "aliases" : "FS", 103 | "lines" : { 104 | "tram" : [ ], 105 | "nachttram" : [ ], 106 | "sbahn" : [ ], 107 | "ubahn" : [ ], 108 | "bus" : [ ], 109 | "nachtbus" : [ ], 110 | "otherlines" : [ ] 111 | } 112 | }] 113 | } 114 | ``` 115 | 116 | Eine Beispielantwort eines departure Paketes sieht folgendermaßen aus: 117 | ```json 118 | { 119 | "servingLines" : [ { 120 | "destination" : "Ostbahnhof", 121 | "sev" : false, 122 | "partialNet" : "mvv", 123 | "product" : "SBAHN", 124 | "lineNumber" : "S1", 125 | "divaId" : "01001" 126 | }, { 127 | "destination" : "Leuchtenbergring", 128 | "sev" : false, 129 | "partialNet" : "ddb", 130 | "product" : "SBAHN", 131 | "lineNumber" : "S1", 132 | "divaId" : "92M01" 133 | }, { 134 | "destination" : "Ostbahnhof", 135 | "sev" : false, 136 | "partialNet" : "ddb", 137 | "product" : "SBAHN", 138 | "lineNumber" : "S2", 139 | "divaId" : "92M02" 140 | }, { 141 | "destination" : "Holzkirchen", 142 | "sev" : false, 143 | "partialNet" : "ddb", 144 | "product" : "SBAHN", 145 | "lineNumber" : "S3", 146 | "divaId" : "92M03" 147 | }, { 148 | "destination" : "Ostbahnhof", 149 | "sev" : false, 150 | "partialNet" : "ddb", 151 | "product" : "SBAHN", 152 | "lineNumber" : "S4", 153 | "divaId" : "92M04" 154 | }, { 155 | "destination" : "Ostbahnhof", 156 | "sev" : false, 157 | "partialNet" : "ddb", 158 | "product" : "SBAHN", 159 | "lineNumber" : "S6", 160 | "divaId" : "92M06" 161 | }, { 162 | "destination" : "Höhenkirchen-Siegertsbrunn", 163 | "sev" : false, 164 | "partialNet" : "ddb", 165 | "product" : "SBAHN", 166 | "lineNumber" : "S7", 167 | "divaId" : "92M07" 168 | }, { 169 | "destination" : "Flughafen München", 170 | "sev" : false, 171 | "partialNet" : "ddb", 172 | "product" : "SBAHN", 173 | "lineNumber" : "S8", 174 | "divaId" : "92M08" 175 | }, { 176 | "destination" : "Fürstenried West", 177 | "sev" : false, 178 | "partialNet" : "swm", 179 | "product" : "UBAHN", 180 | "lineNumber" : "U3", 181 | "divaId" : "010U3" 182 | }, { 183 | "destination" : "Harras", 184 | "sev" : false, 185 | "partialNet" : "swm", 186 | "product" : "UBAHN", 187 | "lineNumber" : "U6", 188 | "divaId" : "010U6" 189 | }, { 190 | "destination" : "Forstenrieder Park", 191 | "sev" : false, 192 | "partialNet" : "swm", 193 | "product" : "BUS", 194 | "lineNumber" : "132", 195 | "divaId" : "03132" 196 | } ], 197 | "departures" : [ { 198 | "departureTime" : 1577118720000, 199 | "product" : "SBAHN", 200 | "label" : "S6", 201 | "destination" : "Zorneding", 202 | "live" : false, 203 | "delay" : 1, 204 | "cancelled" : false, 205 | "lineBackgroundColor" : "#03a074", 206 | "departureId" : "35e650addb0e2620032f5f79e27d4d08#1577118720000#de:09162:2", 207 | "sev" : false, 208 | "platform" : "1" 209 | }, { 210 | "departureTime" : 1577118840000, 211 | "product" : "UBAHN", 212 | "label" : "U6", 213 | "destination" : "Garching, Forschungszentrum", 214 | "live" : false, 215 | "delay" : 0, 216 | "cancelled" : false, 217 | "lineBackgroundColor" : "#0472b3", 218 | "departureId" : "f0aefa74fcb536b1b073913a5f9bbc84#1577118840000#de:09162:2", 219 | "sev" : false, 220 | "platform" : "Gleis 1" 221 | }] 222 | } 223 | ``` 224 | ## Geops API Sbahn München: 225 | Diese API kommt unter anderem in der München Navigator APP oder auf s-bahn-muenchen-live.de zum Einsatz und liefert sehr genaue Echtzeitinformationen, allerdings ausschließlich für die Sbahn. Alle nachfolgenden Erkenntnisse stammen aus öffentlichen Quellen oder aus Mitschnitten und Analysen des Netzwerktraffics. 226 | 227 | ### Funktionsweise 228 | In jedem Zug befindet sich eine Art GPS Tracker. Circa alle 10 Sekunden werden die aktuellen GPS-Koordinaten sowie Informationen zum Zuglauf und zum Status von jeder aktiven Sbahn an einen Server verschickt. Diese Daten werden ausgewertet und die daraus berechneten Abfahrtszeiten sowie die Zugpositionen auf der MVV-Netzkarte über die API verbereitet. 229 | 230 | ### Server 231 | URL | Port | Protokoll 232 | ------------------------------------------------------------------------------------------------| -------- | -------- 233 | wss://api.geops.io/realtime-ws/v1/?key= | 443 | Websocket 234 | 235 | ### Kommandos 236 | Die Kommandos die an den Server geschickt werden sind in der redis-websocket-api definiert. Die wichtigesten Kommandos für dieses Projekt mit ihren Keys sind hier aufgelistet: 237 | 238 | Kommando | Funktion 239 | ----------------------|--------------------------------------------------------------------------- 240 | PING | Überprüfen der Verbindung 241 | GET healthcheck | Auskunft über den Serverstatus 242 | GET newsticker | Liefert Zusatzmeldungen 243 | GET trajectory | Liefert Live Infos zu allen aktiven Sbahnen (z.B. GPS Koordinaten) 244 | GET station | Liefert Infos zu allen Bahnöfen. (z.B. uic Nummer) 245 | GET timetable_8098263 | Liefert die aktuellen Abfahrtzeiten am Hauptbahnhof (uic=8098263) 246 | SUB timetable_8098263 | Abboniert die Abfahrtzeiten am Hauptbahnhof (uic=8098263) 247 | DEL timetable_8098263 | Deabboniert die Abfahrtzeiten am Hauptbahnhof (uic=8098263) 248 | 249 | Während GET einmalig die nächsten Abfahrten liefert, bekommt der Client mit SUB immer automatisch eine Aktualisierung. Die uic Bahnhofsnummer ist nicht identisch mit der id der MVG API. Im Ordner API gibt es eine Liste mit allen Bahnhöfen und ihren uic Nummern. Der Server antwortet immer im JSON Format. 250 | 251 | Damit eine Verbindung länger erhalten bleibt, muss in gewissen Abständen (ca. 10s) ein PING Kommando an der Server geschickt werden. 252 | 253 | Zum Ausprobieren der Kommandos kann der Client WS-GUII verwendet werden. Hierfür muss nur die oben aufgeführte Server URL eingetragen werden und ein Kommando abgschickt werden: [https://github.com/kbjr/ws-gui](https://github.com/kbjr/ws-gui) 254 | 255 | Ein Beispielpaket eines timetabeles Paketes einer Sbahn sieht folgendermaßen aus: 256 | 257 | 258 | ```json 259 | { 260 | "timestamp":1576000939716.51, 261 | "content":{ 262 | "ris_estimated_time":1576002060000.0, 263 | "created_at":1575990536037.232, 264 | "min_arrival_time":1576001823000.0, 265 | "train_type":2, 266 | "fzo_estimated_time":1576002222000.0, 267 | "next_stoppoints":[ 268 | "MDA", 269 | "MKFS", 270 | "MMAL", 271 | "MAUG", 272 | "MOZ", 273 | "ML", 274 | "MMHG", 275 | "MMDN", 276 | "MHAB", 277 | "MHT", 278 | "MKA", 279 | "MMP", 280 | "MIT", 281 | "MRP", 282 | "MOP" 283 | ], 284 | "train_id":139923201210800, 285 | "no_stop_between":null, 286 | "line":{ 287 | "text_color":"#ffffff", 288 | "color":"#8bbd4d", 289 | "id":2, 290 | "name":"S2" 291 | }, 292 | "state":null, 293 | "new_to":null, 294 | "updated_at":1575998600946.968, 295 | "no_stop_till":null, 296 | "platform":"1", 297 | "formation":null, 298 | "at_station_ds100":"MDA", 299 | "ris_aimed_time":1576002060000.0, 300 | "to":[ 301 | "M\u00fcnchen Ost" 302 | ], 303 | "has_fzo":true, 304 | "train_number":6015, 305 | "time":1576002060000.0, 306 | "call_id":37049115 307 | }, 308 | "source":"timetable_8000261", 309 | "client_reference":null 310 | } 311 | ``` 312 | Die ris_aimed_time stellet die geplante Abfahrtszeit nach Fahrplan dar. Der Wert time gibt die live berechnete Abfahrtszeit, die auch in der App verwendet wird, an. 313 | Interessant sind die ris_estimated_time, min_arrival_time und fzo_estimated_time zu der aktuell weitere Erkenntnisse fehlen... Ideen? 314 | 315 | Weitere sehr Interessante Infos sind train_type mit der Wagonanzahl sowie at_station_ds100 mit der aktuellen Stationsposition. 316 | 317 | Ein Besipielpaket eines trajectory Paketes einer Sbahn sieht folgendermaßen aus: 318 | ```json 319 | { 320 | "content":{ 321 | "properties":{ 322 | "vehicle_number":"282", 323 | "event_timestamp":1576233062000.0, 324 | "line":{ 325 | "id":3, 326 | "name":"S3", 327 | "text_color":"#ffffff", 328 | "color":"#8d1890" 329 | }, 330 | "event":"FA", 331 | "time_since_update":1000, 332 | "stop_point_ds100":"MLW", 333 | "time_intervals":[ 334 | [ 335 | 1576233073171.119, 336 | 0.0, 337 | -0.4944043532027426 338 | ], 339 | [ 340 | 1576233082546.119, 341 | 0.25, 342 | -0.4686027216471579 343 | ], 344 | [ 345 | 1576233091921.119, 346 | 0.5, 347 | -0.4647913562689031 348 | ], 349 | [ 350 | 1576233101296.119, 351 | 0.75, 352 | -0.43077358214065276 353 | ], 354 | [ 355 | 1576233110671.119, 356 | 1.0, 357 | -0.43077358214065276 358 | ], 359 | [ 360 | 253402300800000.0, 361 | 1, 362 | -0.43077358214065276 363 | ] 364 | ], 365 | "original_train_number":6353, 366 | "position_correction":2, 367 | "aimed_time_offset":80.0, 368 | "state":"DRIVING", 369 | "train_number":6353, 370 | "ride_state":"K", 371 | "delay":2.432588, 372 | "transmitting_vehicle":"948004232823", 373 | "timestamp":1576233073182.2168, 374 | "raw_coordinates":[ 375 | 11.457110249894782, 376 | 48.151313408014126 377 | ], 378 | "calls_stack":[ 379 | "MMAM", 380 | "MMAG", 381 | "MMA", 382 | "MGLD", 383 | "MESG", 384 | "MOL", 385 | "MGRZ", 386 | "MLO", 387 | "MLW", 388 | "MP", 389 | "ML", 390 | "MMHG", 391 | "MMDN", 392 | "MHAB", 393 | "MHT", 394 | "MKA", 395 | "MMP", 396 | "MIT", 397 | "MRP", 398 | "MOP", 399 | "MMAR", 400 | "MGI", 401 | "MFG", 402 | "MFP", 403 | "MUH", 404 | "MTU", 405 | "MFU", 406 | "MDS", 407 | "MSR", 408 | "MOTF", 409 | "MHO" 410 | ], 411 | "rake":"948004232278;0;0;0;948004232823;0;0;0", 412 | "train_id":139921365582400 413 | }, 414 | "geometry":{ 415 | "coordinates":[ 416 | [ 417 | 11.4581872405487, 418 | 48.1509589922501 419 | ], 420 | [ 421 | 11.4582242, 422 | 48.1509457 423 | ], 424 | [ 425 | 11.4589674, 426 | 48.1506947 427 | ], 428 | [ 429 | 11.4590367041999, 430 | 48.1506715148803 431 | ] 432 | ], 433 | "type":"LineString" 434 | }, 435 | "type":"Feature" 436 | }, 437 | "client_reference":null, 438 | "source":"trajectory", 439 | "timestamp":1576233076278.496 440 | } 441 | ``` 442 | Besonders interessant sind hier die raw_coordinates die Longitude und Latitude binhalten. Ebenfalls interessant ist der state der scheinbar zwischen "DRIVING" und "BORDING" wechselt. 443 | 444 | ## Quellen: 445 | [https://www.mvg.de](https://www.mvg.de/) 446 | [https://s-bahn-muenchen-live.de](https://s-bahn-muenchen-live.de) 447 | [https://geops.ch/sbahnm-live](https://geops.ch/sbahnm-live) 448 | [https://geops.ch/blog/zuege-echtzeit](https://geops.ch/blog/zuege-echtzeit) 449 | [https://github.com/geops/redis-websocket-api](https://github.com/geops/redis-websocket-api) 450 | 451 | ## Jodel: 452 | [https://shared.jodel.com/58NiubGCf2?channel=other](https://shared.jodel.com/58NiubGCf2?channel=other) 453 | -------------------------------------------------------------------------------- /MVV_ESP_LCD/MVV_ESP_LCD.ino: -------------------------------------------------------------------------------- 1 | //Quellen: 2 | // https://github.com/Bodmer/TFT_eSPI/blob/master/examples/320%20x%20240/Free_Font_Demo/Free_Font_Demo.ino 3 | // https://github.com/Xinyuan-LilyGO/TTGO-T-Display 4 | #include 5 | #include 6 | //mvg api timestamp in ms needs long long 7 | #define ARDUINOJSON_USE_LONG_LONG 1 8 | //geops api timestamp in ms needs double 9 | #define ARDUINOJSON_USE_DOUBLE 1 10 | //geops api uses unicode characters 11 | #define ARDUINOJSON_DECODE_UNICODE 1 12 | #include 13 | #include 14 | #include "Wire.h" 15 | #include "time.h" 16 | #include 17 | #include 18 | #include 19 | using namespace std; 20 | #include 21 | #include 22 | #include "WiFi.h" 23 | #include 24 | #include "Free_Fonts.h" 25 | #include "Free_Sans.h" 26 | #include 27 | 28 | #define MAX_INCLUDE_TYPE 10 29 | #define MAX_INCLUDE_LINE 10 30 | #define MAX_EXCLUDE_DESTINATION 10 31 | #define MAX_JSON_DOCUMENT 20000 32 | #define MAX_DEPARTURE_LIST_LENGTH 100 33 | 34 | #ifndef TFT_DISPOFF 35 | #define TFT_DISPOFF 0x28 36 | #endif 37 | 38 | #ifndef TFT_SLPIN 39 | #define TFT_SLPIN 0x10 40 | #endif 41 | 42 | #define TFT_MOSI 19 43 | #define TFT_SCLK 18 44 | #define TFT_CS 5 45 | #define TFT_DC 16 46 | #define TFT_RST 23 47 | 48 | #define TFT_BL 4 // Display backlight control pin 49 | #define ADC_EN 14 50 | #define ADC_PIN 34 51 | #define BUTTON_1 35 52 | #define BUTTON_2 0 53 | 54 | enum types { 55 | mvg_api, 56 | geops_api 57 | }; 58 | 59 | 60 | typedef struct { 61 | const char *wifi_name; 62 | const char *wifi_pass; 63 | const enum types type; 64 | const char *bahnhof; 65 | const char *include_type[MAX_INCLUDE_TYPE]; 66 | const char *include_line[MAX_INCLUDE_LINE]; 67 | const char *exclude_destinations[MAX_EXCLUDE_DESTINATION]; 68 | } Config; 69 | #include "config.h"; 70 | 71 | typedef struct { 72 | unsigned long long aimed_time; 73 | unsigned long long estimated_time; 74 | String line; 75 | String destination; 76 | int platform; 77 | int wagon; 78 | } Departure; 79 | 80 | list departure_list; 81 | 82 | websockets::WebsocketsClient client; 83 | 84 | TFT_eSPI tft = TFT_eSPI(135, 240); // Invoke custom library 85 | TFT_eSprite img = TFT_eSprite(&tft); 86 | 87 | Button2 btn1(BUTTON_1); 88 | Button2 btn2(BUTTON_2); 89 | 90 | StaticJsonDocument doc; 91 | 92 | const char* ntpServer = "pool.ntp.org"; 93 | const long gmtOffset_sec = 3600; 94 | const int daylightOffset_sec = 3600; 95 | const int number_of_configs = sizeof(configs) / sizeof(*configs); 96 | int config_number = -1; 97 | 98 | int connect_wifi(); 99 | void handle_mvg_api(Config config); 100 | void init_geops_api(Config config); 101 | void handle_geops_api(Config config); 102 | void ping_geops_api(); 103 | 104 | void button_init() 105 | { 106 | btn1.setPressedHandler([](Button2 & b) { 107 | Serial.println("btn2 pressed"); 108 | int r = digitalRead(TFT_BL); 109 | tft.fillScreen(TFT_BLACK); 110 | tft.setTextColor(TFT_GREEN, TFT_BLACK); 111 | tft.setTextDatum(MC_DATUM); 112 | tft.drawString("Shutting down...", tft.width() / 2, tft.height() / 2 ); 113 | delay(3000); 114 | digitalWrite(TFT_BL, !r); 115 | 116 | tft.writecommand(TFT_DISPOFF); 117 | tft.writecommand(TFT_SLPIN); 118 | esp_sleep_enable_ext1_wakeup(GPIO_SEL_35, ESP_EXT1_WAKEUP_ALL_LOW); 119 | esp_deep_sleep_start(); 120 | delay(100); 121 | }); 122 | 123 | btn2.setPressedHandler([](Button2 & b) { 124 | Serial.println("btn2 pressed"); 125 | }); 126 | } 127 | 128 | void button_loop() 129 | { 130 | btn1.loop(); 131 | btn2.loop(); 132 | } 133 | 134 | //! Long time delay, it is recommended to use shallow sleep, which can effectively reduce the current consumption 135 | void espDelay(int ms) 136 | { 137 | esp_sleep_enable_timer_wakeup(ms * 1000); 138 | esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH,ESP_PD_OPTION_ON); 139 | esp_light_sleep_start(); 140 | } 141 | 142 | void drawTopLine() 143 | { 144 | img.setTextDatum(TL_DATUM); 145 | img.fillRect(0, 0, 240, 8,TFT_YELLOW); 146 | img.setTextFont(GLCD); 147 | img.setTextColor(0x005, TFT_YELLOW); 148 | img.drawString("Linie", 1, 0); 149 | img.drawString("Ziel", 33, 0); 150 | img.drawString("Gleis", 128, 0); 151 | img.drawString("A", 169, 0); 152 | img.drawString("B", 184, 0); 153 | img.drawString("C", 200, 0); 154 | img.drawString("Min", 220, 0); 155 | } 156 | 157 | void setup_display() 158 | { tft.init(); 159 | tft.setRotation(3); 160 | //tft.fillScreen(TFT_BLACK); 161 | tft.fillScreen(0x005); 162 | if (TFT_BL > 0) { // TFT_BL has been set in the TFT_eSPI library in the User Setup file TTGO_T_Display.h 163 | pinMode(TFT_BL, OUTPUT); // Set backlight pin to output mode 164 | digitalWrite(TFT_BL, TFT_BACKLIGHT_ON); // Turn backlight on. TFT_BACKLIGHT_ON has been set in the TFT_eSPI library in the User Setup file TTGO_T_Display.h 165 | } 166 | img.createSprite(240, 135); 167 | img.fillSprite(0x005); 168 | } 169 | 170 | void drawDeparture(int display_line, String line, String destination, int track, int wagon, int minutes) 171 | { 172 | char str_buffer[10]; 173 | int line_height = 15; 174 | int offset = 9; 175 | int offest_string = 7; 176 | int y_display = display_line*line_height+offset; 177 | int y_display_string = display_line*line_height+offest_string; 178 | 179 | //img.setFreeFont(FF17); 180 | img.setFreeFont(&FreeSans9pt8b); 181 | img.setTextDatum(TL_DATUM); 182 | 183 | //line 184 | if(line[0]=='S') //Sbahn 185 | { 186 | uint16_t rect_color = 0x005; 187 | uint16_t font_color = TFT_WHITE; 188 | switch (line[1]) 189 | { 190 | case '1': 191 | rect_color = 0x05FF; 192 | break; 193 | 194 | case '2': 195 | rect_color = 0x05F0; 196 | break; 197 | 198 | case '3': 199 | rect_color = TFT_MAGENTA; 200 | break; 201 | 202 | case '4': 203 | rect_color = 0xE800; 204 | break; 205 | 206 | case '6': 207 | rect_color = 0x03E0; 208 | break; 209 | 210 | case '7': 211 | rect_color = 0xB963; 212 | break; 213 | 214 | case '8': 215 | rect_color = TFT_BLACK; 216 | font_color = TFT_YELLOW; 217 | break; 218 | 219 | default: 220 | break; 221 | } 222 | img.fillRoundRect(0, y_display, 28, 15, 7,rect_color); 223 | img.setTextColor(font_color); 224 | img.drawString(line, 3, y_display_string); 225 | } 226 | else if(line[0]=='U') //Ubahn 227 | { 228 | uint16_t rect_color = 0x005; 229 | uint16_t font_color = TFT_WHITE; 230 | switch (line[1]) 231 | { 232 | case '1': 233 | rect_color = 0x03E0; 234 | break; 235 | 236 | case '2': 237 | rect_color = 0xE800; 238 | break; 239 | 240 | case '3': 241 | rect_color = TFT_ORANGE; 242 | break; 243 | 244 | case '4': 245 | rect_color = 0x05F0; 246 | break; 247 | 248 | case '5': 249 | rect_color = 0xB963; 250 | break; 251 | 252 | case '6': 253 | rect_color = TFT_BLUE; 254 | break; 255 | 256 | case '7': 257 | img.fillTriangle(28, y_display, 1, y_display, 1, y_display+14, 0x03E0); //Green Half 258 | img.fillTriangle(1, y_display+14, 28, y_display, 28, y_display+14,0xE800); //Red Half 259 | break; 260 | 261 | case '8': 262 | img.fillTriangle(28, y_display, 1, y_display, 1, y_display+14, 0xE800); //Red Half 263 | img.fillTriangle(1, y_display+14, 28, y_display, 28, y_display+14,TFT_ORANGE); //Orange Half 264 | break; 265 | 266 | default: 267 | break; 268 | } 269 | if( !(line[1]=='7' || line[1]=='8')) //line U1-U6 270 | { 271 | img.fillRect(1, y_display+1, 28, 14, rect_color); 272 | } 273 | img.setTextColor(font_color); 274 | img.drawString(line, 3, y_display_string); 275 | } 276 | else //default 277 | { 278 | img.setTextColor(TFT_WHITE); 279 | img.drawString(line, 3, y_display_string); 280 | } 281 | 282 | //destination 283 | img.setTextColor(TFT_WHITE); 284 | if(track == 0 && wagon == 0) 285 | { 286 | img.drawString(destination.substring(0, 20), 32, y_display_string); 287 | } 288 | else 289 | { 290 | img.drawString(destination.substring(0, 11), 32, y_display_string); 291 | } 292 | 293 | //track 294 | if(track !=0) 295 | { 296 | sprintf(str_buffer, "%u", track); 297 | img.drawString(str_buffer, 150, y_display_string); 298 | } 299 | 300 | //wagon 301 | if(wagon == 1 || wagon == 2 || wagon == 3) img.drawString("_ _ _", 167, y_display_string); 302 | switch(wagon) 303 | { 304 | case 3: 305 | img.fillRoundRect(195, y_display+4, 14, 11, 3,TFT_WHITE); //rechts 306 | case 2: 307 | img.fillRoundRect(165, y_display+4, 14, 11, 3,TFT_WHITE); //links 308 | case 1: 309 | img.fillRoundRect(180, y_display+4, 14, 11, 3,TFT_WHITE); //mitte 310 | default: 311 | break; 312 | } 313 | 314 | //minutes 315 | img.setTextDatum(TR_DATUM); 316 | sprintf(str_buffer, "%u", minutes); 317 | img.drawString(str_buffer, 240,y_display_string); 318 | 319 | } 320 | 321 | void setup() 322 | { 323 | Serial.begin(115200); 324 | 325 | setup_display(); 326 | 327 | button_init(); 328 | 329 | delay(4000); //Delay needed before calling the WiFi.begin 330 | 331 | while (config_number == -1) { 332 | config_number = connect_wifi(); 333 | } 334 | Config loaded_config = configs[config_number]; 335 | 336 | switch (loaded_config.type) { 337 | case mvg_api: 338 | break; 339 | case geops_api: 340 | init_geops_api(loaded_config); 341 | break; 342 | default: 343 | Serial.println("Unkown config type"); 344 | break; 345 | } 346 | 347 | configTime(gmtOffset_sec, daylightOffset_sec, ntpServer); 348 | 349 | 350 | } 351 | 352 | 353 | void loop() { 354 | button_loop(); 355 | Config loaded_config = configs[config_number]; 356 | if (WiFi.status() == WL_CONNECTED) { 357 | switch (loaded_config.type) 358 | { 359 | case mvg_api: 360 | handle_mvg_api(loaded_config); 361 | break; 362 | case geops_api: 363 | static unsigned long last_time = 0; 364 | handle_geops_api(loaded_config); 365 | if(millis() > last_time + 10000) 366 | { 367 | last_time = millis(); 368 | ping_geops_api(); 369 | } 370 | break; 371 | default: 372 | Serial.println("Unkown config type"); 373 | } 374 | } 375 | else 376 | { 377 | Serial.println("Error in WiFi connection"); 378 | Serial.println("Try to Reconnect WiFi"); 379 | WiFi.disconnect(); 380 | WiFi.mode(WIFI_OFF); 381 | WiFi.mode(WIFI_STA); 382 | while (config_number == -1) { 383 | config_number = connect_wifi(); 384 | } 385 | } 386 | } 387 | 388 | int connect_wifi() 389 | { 390 | int number_of_networks = WiFi.scanNetworks(); 391 | if (number_of_networks == -1 ) { 392 | Serial.println("No networks available"); 393 | } 394 | int wait = 0; 395 | int wifi_retry = 0; 396 | for (int i = 0; i < number_of_networks; ++i) { 397 | String ssid = WiFi.SSID(i); 398 | // is this network in config...? 399 | for (int j = 0; j < number_of_configs; ++j) { 400 | if (strcmp(ssid.c_str(), configs[j].wifi_name) == 0) { 401 | // ... yes it is 402 | WiFi.begin(configs[j].wifi_name, configs[j].wifi_pass); 403 | while (WiFi.status() != WL_CONNECTED && wait < 5 ) 404 | { 405 | delay(1000); 406 | ++wait; 407 | } 408 | while (WiFi.status() != WL_CONNECTED && wifi_retry < 5 ) { 409 | ++wifi_retry; 410 | Serial.println("WiFi not connected. Try to reconnect"); 411 | WiFi.disconnect(); 412 | WiFi.mode(WIFI_OFF); 413 | WiFi.mode(WIFI_STA); 414 | WiFi.begin(configs[j].wifi_name, configs[j].wifi_pass); 415 | Serial.println("Connecting to WiFi..."); 416 | delay(5000); 417 | } 418 | if(wifi_retry >= 5) 419 | { 420 | Serial.println("\nReboot"); 421 | ESP.restart(); 422 | } 423 | else 424 | { 425 | Serial.printf("Connected to the WiFi network: %s\n", ssid.c_str()); 426 | return j; 427 | } 428 | } 429 | } 430 | } 431 | return -1; 432 | } 433 | 434 | 435 | void handle_mvg_api(Config config) 436 | { 437 | HTTPClient http; 438 | String url = "https://www.mvg.de/api/fahrinfo/departure/" + String(config.bahnhof) + "?footway=0"; 439 | http.begin(url); 440 | int httpResponseCode = http.GET(); 441 | 442 | if (httpResponseCode > 0) { 443 | String response = http.getString(); 444 | Serial.println("New data"); 445 | Serial.println(httpResponseCode); 446 | Serial.println(response); 447 | 448 | Serial.println("Parsing JSON..."); 449 | DeserializationError error = deserializeJson(doc, response); 450 | if (error) { 451 | Serial.print(F("deserializeJson() failed: ")); 452 | Serial.println(error.c_str()); 453 | } else { 454 | Serial.println("No errors"); 455 | String servings = doc["departures"][0]; 456 | Serial.println(servings); 457 | 458 | time_t now; 459 | time(&now); 460 | Serial.println(now); 461 | 462 | img.fillSprite(0x005); 463 | drawTopLine(); 464 | unsigned int departures_length = doc["departures"].size(); 465 | unsigned int i = 0; 466 | unsigned int cnt = 0; 467 | 468 | while (i < departures_length && cnt < 8) { 469 | // Extract what we are interested in from response 470 | // based on config 471 | bool interesting_type = false; 472 | bool interesting_line = false; 473 | bool interesting_destination = true; 474 | 475 | for (int j = 0; j < MAX_INCLUDE_TYPE; ++j) { 476 | Serial.println(config.include_type[j]); 477 | if (config.include_type[j] && strcmp(config.include_type[j], "*") == 0) { 478 | // We want to see all types 479 | interesting_type = true; 480 | break; 481 | } 482 | if (config.include_type[j] && strcmp(config.include_type[j], doc["departures"][i]["product"]) == 0) { 483 | // We want to see this type 484 | interesting_type = true; 485 | break; 486 | } 487 | } 488 | 489 | for (int j = 0; j < MAX_INCLUDE_LINE; ++j) { 490 | Serial.println(config.include_line[j]); 491 | if (config.include_line[j] && strcmp(config.include_line[j], "*") == 0) { 492 | // We want to see all lines 493 | interesting_line = true; 494 | break; 495 | } 496 | if (config.include_line[j] && strcmp(config.include_line[j], doc["departures"][i]["label"]) == 0) { 497 | // We want to see this line 498 | interesting_line = true; 499 | break; 500 | } 501 | } 502 | if (interesting_type && interesting_line) { 503 | for (int j = 0; j < MAX_EXCLUDE_DESTINATION; ++j) { 504 | if (config.exclude_destinations[j] && strcmp(config.exclude_destinations[j], doc["departures"][i]["destination"]) == 0) { 505 | interesting_destination = false; 506 | break; 507 | } 508 | } 509 | } 510 | if (interesting_type && interesting_line && interesting_destination) { 511 | //Calc minutes until departure 512 | unsigned long departure = doc["departures"][i]["departureTime"].as() / 1000; //ms to seconds 513 | Serial.println(departure); 514 | 515 | unsigned long minutes = 0; 516 | if ( departure > now) { 517 | unsigned long wait = departure - now; 518 | Serial.println(wait); 519 | minutes = wait / 60; 520 | //if (wait % 60 > 30) ++minutes; 521 | minutes += doc["departures"][i]["delay"].as(); 522 | } 523 | Serial.println(minutes); 524 | 525 | drawDeparture(cnt, doc["departures"][i]["label"].as(), doc["departures"][i]["destination"].as(), doc["departures"][i]["platform"].as(), 0, minutes); 526 | 527 | ++cnt; 528 | } 529 | ++i; 530 | } 531 | img.pushSprite(0, 0); 532 | } 533 | } else { 534 | Serial.print("Error: Couldn't send GET: "); 535 | Serial.println(httpResponseCode); 536 | } 537 | http.end(); 538 | delay(30000); //Send a request every 30 seconds 539 | } 540 | 541 | void init_geops_api(Config config) 542 | { 543 | bool connected = client.connect("wss://api.geops.io:443/realtime-ws/v1/?key=5cc87b12d7c5370001c1d655306122aa0a4743c489b497cb1afbec9b"); 544 | if (connected) { 545 | Serial.println("Connecetd!"); 546 | client.send("GET timetable_" + String(config.bahnhof)); 547 | client.send("SUB timetable_" + String(config.bahnhof)); //Subscribe for Departures at Hauptbahnhof 548 | } else { 549 | Serial.println("Not Connected!"); 550 | } 551 | 552 | 553 | client.onEvent([&](websockets::WebsocketsEvent event, String data) { 554 | if(event == websockets::WebsocketsEvent::ConnectionOpened) { 555 | Serial.println("Connnection Opened"); 556 | } else if(event == websockets::WebsocketsEvent::ConnectionClosed) { 557 | Serial.println("Connnection Closed"); 558 | // Config loaded_config = configs[config_number]; 559 | // init_geops_api(loaded_config); 560 | } else if(event == websockets::WebsocketsEvent::GotPing) { 561 | Serial.println("Got a Ping!"); 562 | } else if(event == websockets::WebsocketsEvent::GotPong) { 563 | Serial.println("Got a Pong!"); 564 | } 565 | }); 566 | 567 | // run callback when messages are received 568 | client.onMessage([&](websockets::WebsocketsMessage message) { 569 | Serial.println(message.data()); 570 | Serial.println("Parsing JSON..."); 571 | DeserializationError error = deserializeJson(doc, message.data()); 572 | if (error) { 573 | Serial.print(F("deserializeJson() failed: ")); 574 | Serial.println(error.c_str()); 575 | } 576 | else 577 | { 578 | Serial.println("No errors"); 579 | Serial.print("Cheking for "); 580 | Config loaded_config = configs[config_number]; 581 | Serial.println(String(loaded_config.bahnhof)); 582 | if (doc["source"] == ("timetable_" + String(loaded_config.bahnhof))) 583 | { 584 | Departure received_departure; 585 | received_departure.aimed_time= doc["content"]["ris_aimed_time"].as(); 586 | received_departure.estimated_time = doc["content"]["time"].as(); 587 | received_departure.line = doc["content"]["line"]["name"].as(); 588 | received_departure.destination = doc["content"]["to"][0].as(); 589 | received_departure.platform = doc["content"]["platform"].as(); 590 | received_departure.wagon = doc["content"]["train_type"].as(); 591 | 592 | /* 593 | Serial.println((unsigned long)(received_departure.aimed_time/1000.)); 594 | Serial.println((unsigned long)(received_departure.estimated_time/1000.)); 595 | Serial.println(received_departure.line); 596 | Serial.println(received_departure.destination); 597 | Serial.println(received_departure.platform); 598 | Serial.println(received_departure.wagon); 599 | */ 600 | if (departure_list.empty()) 601 | { 602 | Serial.println("EMPTY"); 603 | departure_list.push_back(received_departure); 604 | } 605 | else 606 | { 607 | Serial.println("Not empty"); 608 | list::iterator it1; 609 | for (it1 = departure_list.begin(); it1 != departure_list.end(); ++it1) 610 | { 611 | Serial.println("For loop"); 612 | 613 | if (it1->aimed_time == received_departure.aimed_time && it1->line == received_departure.line && it1->destination == received_departure.destination) //Departure schon vorhanden => Update 614 | { 615 | Serial.println("Update"); 616 | *it1 = received_departure; 617 | //Sorting to be sure we are sill in correct order 618 | departure_list.sort([](const Departure & a, const Departure & b) { return a.estimated_time < b.estimated_time; }); 619 | break; 620 | } 621 | if ( next(it1, 1) == departure_list.end() && departure_list.size() < MAX_DEPARTURE_LIST_LENGTH) //Departure nicht vorhanden 622 | { 623 | Serial.println("Departure nicht vorhanden"); 624 | list::iterator it2; 625 | for (it2 = departure_list.begin(); it2 != departure_list.end(); ++it2) 626 | { 627 | if (it2->estimated_time > received_departure.estimated_time) //Element richtig einsortieren 628 | { 629 | Serial.println("Departure insert"); 630 | departure_list.insert(it2, received_departure); 631 | break; 632 | } 633 | if (next(it2,1) == departure_list.end()) //Element ganz hinten einfügen da größter Wert 634 | { 635 | Serial.println("Departure push_back"); 636 | departure_list.push_back(received_departure); 637 | break; //needed cause otherwise it2 != departure_list.end() will never be true 638 | } 639 | } 640 | } 641 | } 642 | } 643 | } 644 | } 645 | }); 646 | } 647 | 648 | void handle_geops_api(Config config) 649 | { 650 | if (client.available()) { 651 | client.poll(); 652 | } 653 | 654 | time_t now; 655 | time(&now); 656 | 657 | //Serial.println("New List"); 658 | img.fillSprite(0x005); 659 | drawTopLine(); 660 | list :: iterator it; 661 | it = departure_list.begin(); 662 | int cnt = 0; 663 | while ( !departure_list.empty() && it != departure_list.end() && cnt < 8) 664 | { 665 | unsigned long estimated_time_s = it->estimated_time/1000; 666 | unsigned long minutes = 0; 667 | 668 | if (estimated_time_s > now) 669 | { 670 | unsigned long wait = estimated_time_s - now; 671 | minutes = wait / 60; 672 | //if (wait % 60 > 30) ++minutes; 673 | } 674 | else //abfahrt in der vergangenheit => aus der liste entfernen 675 | { 676 | departure_list.erase (it); 677 | } 678 | 679 | if (it != departure_list.end()) 680 | { 681 | // Serial.print(it->line); 682 | // Serial.print("\t"); 683 | // Serial.print(it->destination); 684 | // Serial.print("\t"); 685 | // Serial.println(minutes); 686 | drawDeparture(cnt, it->line, it->destination, it->platform, it->wagon, minutes); 687 | } 688 | ++cnt; 689 | ++it; 690 | } 691 | img.pushSprite(0, 0); 692 | } 693 | 694 | void ping_geops_api() 695 | { 696 | if(client.available()) 697 | { 698 | client.send("PING"); 699 | Serial.println("Send Ping"); 700 | } 701 | else 702 | { 703 | Serial.println("Try to Reconnect geops!"); 704 | Config loaded_config = configs[config_number]; 705 | init_geops_api(loaded_config); 706 | } 707 | 708 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /MVV_ESP_LCD/Free_Sans.h: -------------------------------------------------------------------------------- 1 | const uint8_t FreeSans9pt8bBitmaps[] PROGMEM = { 2 | 0xFF, 0xFE, 0x00, 0xF3, 0xE7, 0xB1, 0xBF, 0x07, 0xF8, 0x3F, 0x01, 0xF8, 3 | 0x1B, 0xC3, 0x9E, 0x18, 0xF1, 0x87, 0x8C, 0x3C, 0x01, 0xE0, 0x0F, 0x18, 4 | 0x78, 0x03, 0xFF, 0xF8, 0xFF, 0xFE, 0x00, 0xF3, 0xE7, 0xB1, 0xBF, 0x07, 5 | 0xF8, 0x3F, 0x01, 0xF8, 0x1B, 0xC3, 0x9E, 0x18, 0xF1, 0x87, 0x8C, 0x3C, 6 | 0x01, 0xE0, 0x0F, 0x18, 0x78, 0x03, 0xFF, 0xF8, 0xFF, 0xFE, 0x00, 0xF3, 7 | 0xE7, 0xB1, 0xBF, 0x07, 0xF8, 0x3F, 0x01, 0xF8, 0x1B, 0xC3, 0x9E, 0x18, 8 | 0xF1, 0x87, 0x8C, 0x3C, 0x01, 0xE0, 0x0F, 0x18, 0x78, 0x03, 0xFF, 0xF8, 9 | 0xFF, 0xFE, 0x00, 0xF3, 0xE7, 0xB1, 0xBF, 0x07, 0xF8, 0x3F, 0x01, 0xF8, 10 | 0x1B, 0xC3, 0x9E, 0x18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02, 0x63, 0x04, 0x63, 0x04, 0x77, 82 | 0x08, 0x3C, 0x0E, 0x06, 0x60, 0xCC, 0x19, 0x81, 0xE0, 0x18, 0x0F, 0x03, 83 | 0x36, 0xC2, 0xD8, 0x73, 0x06, 0x31, 0xE3, 0xC4, 0xFE, 0x13, 0x26, 0x6C, 84 | 0xCC, 0xCC, 0xC4, 0x66, 0x23, 0x10, 0x8C, 0x46, 0x63, 0x33, 0x33, 0x32, 85 | 0x66, 0x4C, 0x80, 0x25, 0x7E, 0xA5, 0x00, 0x30, 0xC3, 0x3F, 0x30, 0xC3, 86 | 0x0C, 0xD6, 0xF0, 0xC0, 0x08, 0x44, 0x21, 0x10, 0x84, 0x42, 0x11, 0x08, 87 | 0x00, 0x3C, 0x66, 0x42, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0x42, 88 | 0x66, 0x3C, 0x11, 0x3F, 0x33, 0x33, 0x33, 0x33, 0x30, 0x3E, 0x31, 0xB0, 89 | 0x78, 0x30, 0x18, 0x1C, 0x1C, 0x1C, 0x18, 0x18, 0x10, 0x08, 0x07, 0xF8, 90 | 0x3C, 0x66, 0xC3, 0xC3, 0x03, 0x06, 0x1C, 0x07, 0x03, 0xC3, 0xC3, 0x66, 91 | 0x3C, 0x0C, 0x18, 0x71, 0x62, 0xC9, 0xA3, 0x46, 0xFE, 0x18, 0x30, 0x60, 92 | 0xC0, 0x7F, 0x20, 0x10, 0x08, 0x08, 0x07, 0xF3, 0x8C, 0x03, 0x01, 0x80, 93 | 0xF0, 0x6C, 0x63, 0xE0, 0x1E, 0x31, 0x98, 0x78, 0x0C, 0x06, 0xF3, 0x8D, 94 | 0x83, 0xC1, 0xE0, 0xD0, 0x6C, 0x63, 0xE0, 0xFF, 0x03, 0x02, 0x06, 0x04, 95 | 0x0C, 0x08, 0x18, 0x18, 0x18, 0x10, 0x30, 0x30, 0x3E, 0x31, 0xB0, 0x78, 96 | 0x3C, 0x1B, 0x18, 0xF8, 0xC6, 0xC1, 0xE0, 0xF0, 0x6C, 0x63, 0xE0, 0x3C, 97 | 0x66, 0xC2, 0xC3, 0xC3, 0xC3, 0x67, 0x3B, 0x03, 0x03, 0xC2, 0x66, 0x3C, 98 | 0xC0, 0x00, 0x30, 0xC0, 0x00, 0x00, 0x64, 0xA0, 0x00, 0x81, 0xC7, 0x8E, 99 | 0x0C, 0x07, 0x80, 0x70, 0x0E, 0x01, 0x80, 0xFF, 0x80, 0x00, 0x1F, 0xF0, 100 | 0x00, 0x70, 0x0E, 0x01, 0xC0, 0x18, 0x38, 0x71, 0xC0, 0x80, 0x00, 0x3E, 101 | 0x31, 0xB0, 0x78, 0x30, 0x18, 0x18, 0x38, 0x18, 0x18, 0x0C, 0x00, 0x00, 102 | 0x01, 0x80, 0x03, 0xF0, 0x06, 0x0E, 0x06, 0x01, 0x86, 0x00, 0x66, 0x1D, 103 | 0xBB, 0x31, 0xCF, 0x18, 0xC7, 0x98, 0x63, 0xCC, 0x31, 0xE6, 0x11, 0xB3, 104 | 0x99, 0xCC, 0xF7, 0x86, 0x00, 0x01, 0x80, 0x00, 0x70, 0x40, 0x0F, 0xE0, 105 | 0x06, 0x00, 0xF0, 0x0F, 0x00, 0x90, 0x19, 0x81, 0x98, 0x10, 0x83, 0x0C, 106 | 0x3F, 0xC2, 0x04, 0x60, 0x66, 0x06, 0xC0, 0x30, 0xFF, 0x18, 0x33, 0x03, 107 | 0x60, 0x6C, 0x0D, 0x83, 0x3F, 0xC6, 0x06, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 108 | 0x6F, 0xF8, 0x1F, 0x86, 0x19, 0x81, 0xA0, 0x3C, 0x01, 0x80, 0x30, 0x06, 109 | 0x00, 0xC0, 0x68, 0x0D, 0x83, 0x18, 0x61, 0xF0, 0xFF, 0x18, 0x33, 0x03, 110 | 0x60, 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x03, 0x60, 111 | 0xCF, 0xF0, 0x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, 0xF8, 0x00, 0xFF, 0x30, 0x6C, 126 | 0x0F, 0x03, 0xC0, 0xF0, 0x6F, 0xF3, 0x00, 0xC0, 0x30, 0x0C, 0x03, 0x00, 127 | 0xC0, 0x00, 0x0F, 0x81, 0x83, 0x18, 0x0C, 0xC0, 0x6C, 0x01, 0xE0, 0x0F, 128 | 0x00, 0x78, 0x03, 0xC0, 0x1B, 0x01, 0x98, 0x6C, 0x60, 0xC0, 0xFB, 0x00, 129 | 0x08, 0xFF, 0x8C, 0x0E, 0xC0, 0x6C, 0x06, 0xC0, 0x6C, 0x0C, 0xFF, 0x8C, 130 | 0x0E, 0xC0, 0x6C, 0x06, 0xC0, 0x6C, 0x06, 0xC0, 0x70, 0x3F, 0x18, 0x6C, 131 | 0x0F, 0x03, 0xC0, 0x1E, 0x01, 0xF0, 0x0E, 0x00, 0xF0, 0x3C, 0x0D, 0x86, 132 | 0x3F, 0x00, 0xFF, 0x86, 0x03, 0x01, 0x80, 0xC0, 0x60, 0x30, 0x18, 0x0C, 133 | 0x06, 0x03, 0x01, 0x80, 0xC0, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 134 | 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xB0, 0x61, 0xF0, 0xC0, 135 | 0x6C, 0x0D, 0x81, 0x10, 0x63, 0x0C, 0x61, 0x04, 0x60, 0xCC, 0x19, 0x01, 136 | 0x60, 0x3C, 0x07, 0x00, 0x60, 0xC1, 0x81, 0x30, 0xE1, 0x98, 0x70, 0xCC, 137 | 0x28, 0x66, 0x26, 0x21, 0x13, 0x30, 0xC8, 0x98, 0x6C, 0x4C, 0x14, 0x34, 138 | 0x0A, 0x1A, 0x07, 0x07, 0x03, 0x03, 0x80, 0x81, 0x80, 0x60, 0x63, 0x0C, 139 | 0x30, 0xC1, 0x98, 0x0F, 0x00, 0xE0, 0x06, 0x00, 0xF0, 0x19, 0x01, 0x98, 140 | 0x30, 0xC6, 0x0E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08, 269 | 0x18, 0x20, 0x61, 0x01, 0x84, 0x06, 0x21, 0x80, 0x86, 0x04, 0x78, 0x32, 270 | 0x60, 0x87, 0xC4, 0x06, 0x10, 0x18, 0x20, 0x43, 0x81, 0x06, 0x08, 0x18, 271 | 0x20, 0x61, 0x01, 0x8D, 0xE6, 0x2C, 0xC1, 0x03, 0x0C, 0x0C, 0x20, 0x41, 272 | 0x86, 0x0C, 0x30, 0x20, 0xFC, 0x78, 0x11, 0x98, 0x40, 0x31, 0x00, 0x82, 273 | 0x00, 0xC8, 0x01, 0x90, 0x33, 0x43, 0x3D, 0x06, 0x02, 0x3C, 0x08, 0x98, 274 | 0x10, 0xF8, 0x40, 0x61, 0x00, 0xC0, 0x0C, 0x00, 0x00, 0x01, 0x80, 0xC0, 275 | 0xC0, 0xE0, 0xC0, 0xC0, 0x60, 0xF0, 0x6C, 0x63, 0xE0, 0x0C, 0x00, 0x60, 276 | 0x00, 0x00, 0x60, 0x0F, 0x00, 0xF0, 0x09, 0x01, 0x98, 0x19, 0x81, 0x08, 277 | 0x30, 0xC3, 0xFC, 0x20, 0x46, 0x06, 0x60, 0x6C, 0x03, 0x03, 0x00, 0x60, 278 | 0x00, 0x00, 0x60, 0x0F, 0x00, 0xF0, 0x09, 0x01, 0x98, 0x19, 0x81, 0x08, 279 | 0x30, 0xC3, 0xFC, 0x20, 0x46, 0x06, 0x60, 0x6C, 0x03, 0x0E, 0x01, 0xB0, 280 | 0x00, 0x00, 0x60, 0x0F, 0x00, 0xF0, 0x09, 0x01, 0x98, 0x19, 0x81, 0x08, 281 | 0x30, 0xC3, 0xFC, 0x20, 0x46, 0x06, 0x60, 0x6C, 0x03, 0x0D, 0x01, 0x30, 282 | 0x00, 0x00, 0x60, 0x0F, 0x00, 0xF0, 0x09, 0x01, 0x98, 0x19, 0x81, 0x08, 283 | 0x30, 0xC3, 0xFC, 0x20, 0x46, 0x06, 0x60, 0x6C, 0x03, 0x19, 0x80, 0x00, 284 | 0x06, 0x00, 0xF0, 0x0F, 0x00, 0x90, 0x19, 0x81, 0x98, 0x10, 0x83, 0x0C, 285 | 0x3F, 0xC2, 0x04, 0x60, 0x66, 0x06, 0xC0, 0x30, 0x0F, 0x80, 0xD8, 0x0D, 286 | 0x80, 0x20, 0x06, 0x00, 0xF0, 0x0F, 0x00, 0x90, 0x19, 0x81, 0x98, 0x10, 287 | 0x83, 0x0C, 0x3F, 0xC2, 0x04, 0x60, 0x66, 0x06, 0xC0, 0x30, 0x07, 0xFF, 288 | 0x04, 0xC0, 0x0C, 0xC0, 0x08, 0xC0, 0x18, 0xC0, 0x18, 0xC0, 0x30, 0xFF, 289 | 0x30, 0xC0, 0x3F, 0xC0, 0x60, 0xC0, 0x60, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 290 | 0x1F, 0x06, 0x19, 0x83, 0x20, 0x3C, 0x01, 0x80, 0x30, 0x06, 0x00, 0xC0, 291 | 0x68, 0x0D, 0x83, 0x18, 0xE1, 0xF0, 0x08, 0x01, 0xC0, 0x18, 0x0E, 0x00, 292 | 0x18, 0x06, 0x00, 0x1F, 0xFC, 0x06, 0x03, 0x01, 0x80, 0xC0, 0x7F, 0xB0, 293 | 0x18, 0x0C, 0x06, 0x03, 0x01, 0xFF, 0x0C, 0x0C, 0x00, 0x1F, 0xFC, 0x06, 294 | 0x03, 0x01, 0x80, 0xC0, 0x7F, 0xB0, 0x18, 0x0C, 0x06, 0x03, 0x01, 0xFF, 295 | 0x1C, 0x1B, 0x00, 0x1F, 0xFC, 0x06, 0x03, 0x01, 0x80, 0xC0, 0x7F, 0xB0, 296 | 0x18, 0x0C, 0x06, 0x03, 0x01, 0xFF, 0x33, 0x00, 0x3F, 0xF8, 0x0C, 0x06, 297 | 0x03, 0x01, 0x80, 0xFF, 0x60, 0x30, 0x18, 0x0C, 0x06, 0x03, 0xFE, 0x63, 298 | 0x03, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x6C, 0x06, 0x66, 0x66, 0x66, 299 | 0x66, 0x66, 0x66, 0x76, 0xC0, 0x63, 0x18, 0xC6, 0x31, 0x8C, 0x63, 0x18, 300 | 0xC6, 0xCC, 0x03, 0x0C, 0x30, 0xC3, 0x0C, 0x30, 0xC3, 0x0C, 0x30, 0xC3, 301 | 0x00, 0x7F, 0x0C, 0x31, 0x83, 0x30, 0x36, 0x06, 0xC0, 0xFE, 0x1B, 0x03, 302 | 0x60, 0x6C, 0x0D, 0x83, 0x30, 0xE7, 0xF0, 0x19, 0x02, 0xC0, 0x00, 0x70, 303 | 0x3E, 0x07, 0xE0, 0xF4, 0x1E, 0xC3, 0xCC, 0x78, 0x8F, 0x19, 0xE1, 0xBC, 304 | 0x37, 0x83, 0xF0, 0x3E, 0x07, 0x0C, 0x00, 0x30, 0x00, 0x00, 0x1F, 0x03, 305 | 0x06, 0x30, 0x19, 0x80, 0xD8, 0x03, 0xC0, 0x1E, 0x00, 0xF0, 0x07, 0x80, 306 | 0x36, 0x03, 0x30, 0x18, 0xC1, 0x81, 0xF0, 0x03, 0x00, 0x30, 0x00, 0x00, 307 | 0x1F, 0x03, 0x06, 0x30, 0x19, 0x80, 0xD8, 0x03, 0xC0, 0x1E, 0x00, 0xF0, 308 | 0x07, 0x80, 0x36, 0x03, 0x30, 0x18, 0xC1, 0x81, 0xF0, 0x0E, 0x00, 0xD8, 309 | 0x00, 0x00, 0x1F, 0x03, 0x06, 0x30, 0x19, 0x80, 0xD8, 0x03, 0xC0, 0x1E, 310 | 0x00, 0xF0, 0x07, 0x80, 0x36, 0x03, 0x30, 0x18, 0xC1, 0x81, 0xF0, 0x0D, 311 | 0x00, 0x98, 0x00, 0x00, 0x1F, 0x03, 0x06, 0x30, 0x19, 0x80, 0xD8, 0x03, 312 | 0xC0, 0x1E, 0x00, 0xF0, 0x07, 0x80, 0x36, 0x03, 0x30, 0x18, 0xC1, 0x81, 313 | 0xF0, 0x19, 0x80, 0x00, 0x03, 0xE0, 0x60, 0xC6, 0x03, 0x30, 0x1B, 0x00, 314 | 0x78, 0x03, 0xC0, 0x1E, 0x00, 0xF0, 0x06, 0xC0, 0x66, 0x03, 0x18, 0x30, 315 | 0x3E, 0x00, 0x81, 0x89, 0xA1, 0x83, 0x89, 0xA1, 0x80, 0x0F, 0xD9, 0x83, 316 | 0x18, 0x1C, 0xC1, 0xEC, 0x19, 0xE0, 0x8F, 0x08, 0x78, 0x83, 0xC8, 0x1B, 317 | 0x81, 0x98, 0x0C, 0xE0, 0xC8, 0xF8, 0x00, 0x0C, 0x00, 0xC0, 0x00, 0x60, 318 | 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 319 | 0x07, 0x80, 0xD8, 0x30, 0xF8, 0x06, 0x01, 0x80, 0x00, 0x60, 0x3C, 0x07, 320 | 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 0x80, 321 | 0xD8, 0x30, 0xF8, 0x0E, 0x03, 0x60, 0x00, 0x60, 0x3C, 0x07, 0x80, 0xF0, 322 | 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xD8, 0x30, 323 | 0xF8, 0x19, 0x80, 0x03, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x03, 324 | 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x06, 0xC1, 0x87, 0xC0, 0x03, 0x00, 325 | 0x60, 0x00, 0x0C, 0x03, 0x60, 0x63, 0x0C, 0x30, 0xC1, 0x98, 0x1D, 0x80, 326 | 0xF0, 0x06, 0x00, 0x60, 0x06, 0x00, 0x60, 0x06, 0x00, 0x60, 0xC0, 0x30, 327 | 0x0F, 0xF3, 0x06, 0xC0, 0xF0, 0x3C, 0x0F, 0x06, 0xFF, 0x30, 0x0C, 0x03, 328 | 0x00, 0xC0, 0x00, 0x3C, 0x33, 0x30, 0xD8, 0x6C, 0x36, 0x33,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xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC7, 358 | 0x7B, 0x30, 0x28, 0x68, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 359 | 0xC7, 0x7B, 0x66, 0x00, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 360 | 0xC7, 0x7B, 0x06, 0x02, 0x02, 0x18, 0x24, 0x33, 0x19, 0x88, 0x4C, 0x36, 361 | 0x1A, 0x07, 0x03, 0x81, 0x80, 0xC0, 0x60, 0x20, 0x60, 0x00, 0xC0, 0x60, 362 | 0x30, 0x1B, 0xCE, 0x36, 0x0F, 0x07, 0x83, 0xC1, 0xE0, 0xF0, 0x7C, 0x6D, 363 | 0xE6, 0x03, 0x01, 0x80, 0x33, 0x00, 0x30, 0x48, 0x66, 0x33, 0x10, 0x98, 364 | 0x6C, 0x34, 0x0E, 0x07, 0x03, 0x01, 0x80, 0xC0, 0x40, 0xC0 }; 365 | 366 | const GFXglyph FreeSans9pt8bGlyphs[] PROGMEM = { 367 | { 0, 13, 17, 14, 1, -13 }, // 0x00 368 | { 28, 13, 17, 14, 1, -13 }, // 0x01 369 | { 56, 13, 17, 14, 1, -13 }, // 0x02 370 | { 84, 13, 17, 14, 1, -13 }, // 0x03 371 | { 112, 13, 17, 14, 1, -13 }, // 0x04 372 | { 140, 13, 17, 14, 1, -13 }, // 0x05 373 | { 168, 13, 17, 14, 1, -13 }, // 0x06 374 | { 196, 13, 17, 14, 1, -13 }, // 0x07 375 | { 224, 13, 17, 14, 1, -13 }, // 0x08 376 | { 252, 13, 17, 14, 1, -13 }, // 0x09 377 | { 280, 13, 17, 14, 1, -13 }, // 0x0A 378 | { 308, 13, 17, 14, 1, -13 }, // 0x0B 379 | { 336, 13, 17, 14, 1, -13 }, // 0x0C 380 | { 364, 13, 17, 14, 1, -13 }, // 0x0D 381 | { 392, 13, 17, 14, 1, -13 }, // 0x0E 382 | { 420, 13, 17, 14, 1, -13 }, // 0x0F 383 | { 448, 13, 17, 14, 1, -13 }, // 0x10 384 | { 476, 13, 17, 14, 1, -13 }, // 0x11 385 | { 504, 13, 17, 14, 1, -13 }, // 0x12 386 | { 532, 13, 17, 14, 1, -13 }, // 0x13 387 | { 560, 13, 17, 14, 1, -13 }, // 0x14 388 | { 588, 13, 17, 14, 1, -13 }, // 0x15 389 | { 616, 13, 17, 14, 1, -13 }, // 0x16 390 | { 644, 13, 17, 14, 1, -13 }, // 0x17 391 | { 672, 13, 17, 14, 1, -13 }, // 0x18 392 | { 700, 13, 17, 14, 1, -13 }, // 0x19 393 | { 728, 13, 17, 14, 1, -13 }, // 0x1A 394 | { 756, 13, 17, 14, 1, -13 }, // 0x1B 395 | { 784, 13, 17, 14, 1, -13 }, // 0x1C 396 | { 812, 13, 17, 14, 1, -13 }, // 0x1D 397 | { 840, 13, 17, 14, 1, -13 }, // 0x1E 398 | { 868, 13, 17, 14, 1, -13 }, // 0x1F 399 | { 896, 0, 0, 5, 0, 1 }, // 0x20 ' ' 400 | { 896, 2, 13, 6, 2, -12 }, // 0x21 '!' 401 | { 900, 5, 4, 6, 1, -12 }, // 0x22 '"' 402 | { 903, 10, 12, 10, 0, -11 }, // 0x23 '#' 403 | { 918, 9, 16, 10, 1, -13 }, // 0x24 '$' 404 | { 936, 16, 13, 16, 1, -12 }, // 0x25 '%' 405 | { 962, 11, 13, 12, 1, -12 }, // 0x26 '&' 406 | { 980, 2, 4, 4, 1, -12 }, // 0x27 ''' 407 | { 981, 4, 17, 6, 1, -12 }, // 0x28 '(' 408 | { 990, 4, 17, 6, 1, -12 }, // 0x29 ')' 409 | { 999, 5, 5, 7, 1, -12 }, // 0x2A '*' 410 | { 1003, 6, 8, 11, 3, -7 }, // 0x2B '+' 411 | { 1009, 2, 4, 5, 2, 0 }, // 0x2C ',' 412 | { 1010, 4, 1, 6, 1, -4 }, // 0x2D '-' 413 | { 1011, 2, 1, 5, 1, 0 }, // 0x2E '.' 414 | { 1012, 5, 13, 5, 0, -12 }, // 0x2F '/' 415 | { 1021, 8, 13, 10, 1, -12 }, // 0x30 '0' 416 | { 1034, 4, 13, 10, 3, -12 }, // 0x31 '1' 417 | { 1041, 9, 13, 10, 1, -12 }, // 0x32 '2' 418 | { 1056, 8, 13, 10, 1, -12 }, // 0x33 '3' 419 | { 1069, 7, 13, 10, 2, -12 }, // 0x34 '4' 420 | { 1081, 9, 13, 10, 1, -12 }, // 0x35 '5' 421 | { 1096, 9, 13, 10, 1, -12 }, // 0x36 '6' 422 | { 1111, 8, 13, 10, 0, -12 }, // 0x37 '7' 423 | { 1124, 9, 13, 10, 1, -12 }, // 0x38 '8' 424 | { 1139, 8, 13, 10, 1, -12 }, // 0x39 '9' 425 | { 1152, 2, 10, 5, 1, -9 }, // 0x3A ':' 426 | { 1155, 3, 12, 5, 1, -8 }, // 0x3B ';' 427 | { 1160, 9, 9, 11, 1, -8 }, // 0x3C '<' 428 | { 1171, 9, 4, 11, 1, -5 }, // 0x3D '=' 429 | { 1176, 9, 9, 11, 1, -8 }, // 0x3E '>' 430 | { 1187, 9, 13, 10, 1, -12 }, // 0x3F '?' 431 | { 1202, 17, 16, 18, 1, -12 }, // 0x40 '@' 432 | { 1236, 12, 13, 12, 0, -12 }, // 0x41 'A' 433 | { 1256, 11, 13, 12, 1, -12 }, // 0x42 'B' 434 | { 1274, 11, 13, 13, 1, -12 }, // 0x43 'C' 435 | { 1292, 11, 13, 13, 1, -12 }, // 0x44 'D' 436 | { 1310, 9, 13, 11, 1, -12 }, // 0x45 'E' 437 | { 1325, 8, 13, 11, 1, -12 }, // 0x46 'F' 438 | { 1338, 12, 13, 14, 1, -12 }, // 0x47 'G' 439 | { 1358, 11, 13, 13, 1, -12 }, // 0x48 'H' 440 | { 1376, 2, 13, 5, 2, -12 }, // 0x49 'I' 441 | { 1380, 7, 13, 10, 1, -12 }, // 0x4A 'J' 442 | { 1392, 11, 13, 12, 1, -12 }, // 0x4B 'K' 443 | { 1410, 8, 13, 10, 1, -12 }, // 0x4C 'L' 444 | { 1423, 13, 13, 15, 1, -12 }, // 0x4D 'M' 445 | { 1445, 11, 13, 13, 1, -12 }, // 0x4E 'N' 446 | { 1463, 13, 13, 14, 1, -12 }, // 0x4F 'O' 447 | { 1485, 10, 13, 12, 1, -12 }, // 0x50 'P' 448 | { 1502, 13, 14, 14, 1, -12 }, // 0x51 'Q' 449 | { 1525, 12, 13, 13, 1, -12 }, // 0x52 'R' 450 | { 1545, 10, 13, 12, 1, -12 }, // 0x53 'S' 451 | { 1562, 9, 13, 11, 1, -12 }, // 0x54 'T' 452 | { 1577, 11, 13, 13, 1, -12 }, // 0x55 'U' 453 | { 1595, 11, 13, 12, 0, -12 }, // 0x56 'V' 454 | { 1613, 17, 13, 17, 0, -12 }, // 0x57 'W' 455 | { 1641, 12, 13, 12, 0, -12 }, // 0x58 'X' 456 | { 1661, 12, 13, 12, 0, -12 }, // 0x59 'Y' 457 | { 1681, 10, 13, 11, 1, -12 }, // 0x5A 'Z' 458 | { 1698, 3, 17, 5, 1, -12 }, // 0x5B '[' 459 | { 1705, 5, 13, 5, 0, -12 }, // 0x5C '\' 460 | { 1714, 3, 17, 5, 0, -12 }, // 0x5D ']' 461 | { 1721, 7, 7, 8, 1, -12 }, // 0x5E '^' 462 | { 1728, 10, 1, 10, 0, 3 }, // 0x5F '_' 463 | { 1730, 4, 3, 5, 0, -12 }, // 0x60 '`' 464 | { 1732, 9, 10, 10, 1, -9 }, // 0x61 'a' 465 | { 1744, 9, 13, 10, 1, -12 }, // 0x62 'b' 466 | { 1759, 8, 10, 9, 1, -9 }, // 0x63 'c' 467 | { 1769, 8, 13, 10, 1, -12 }, // 0x64 'd' 468 | { 1782, 8, 10, 10, 1, -9 }, // 0x65 'e' 469 | { 1792, 4, 13, 5, 1, -12 }, // 0x66 'f' 470 | { 1799, 8, 14, 10, 1, -9 }, // 0x67 'g' 471 | { 1813, 8, 13, 10, 1, -12 }, // 0x68 'h' 472 | { 1826, 2, 13, 4, 1, -12 }, // 0x69 'i' 473 | { 1830, 4, 17, 4, 0, -12 }, // 0x6A 'j' 474 | { 1839, 9, 13, 9, 1, -12 }, // 0x6B 'k' 475 | { 1854, 2, 13, 4, 1, -12 }, // 0x6C 'l' 476 | { 1858, 13, 10, 15, 1, -9 }, // 0x6D 'm' 477 | { 1875, 8, 10, 10, 1, -9 }, // 0x6E 'n' 478 | { 1885, 8, 10, 10, 1, -9 }, // 0x6F 'o' 479 | { 1895, 9, 13, 10, 1, -9 }, // 0x70 'p' 480 | { 1910, 8, 13, 10, 1, -9 }, // 0x71 'q' 481 | { 1923, 5, 10, 6, 1, -9 }, // 0x72 'r' 482 | { 1930, 8, 10, 9, 1, -9 }, // 0x73 's' 483 | { 1940, 4, 12, 5, 1, -11 }, // 0x74 't' 484 | { 1946, 8, 10, 10, 1, -9 }, // 0x75 'u' 485 | { 1956, 9, 10, 9, 0, -9 }, // 0x76 'v' 486 | { 1968, 13, 10, 13, 0, -9 }, // 0x77 'w' 487 | { 1985, 8, 10, 9, 0, -9 }, // 0x78 'x' 488 | { 1995, 9, 14, 9, 0, -9 }, // 0x79 'y' 489 | { 2011, 7, 10, 9, 1, -9 }, // 0x7A 'z' 490 | { 2020, 4, 17, 6, 1, -12 }, // 0x7B '{' 491 | { 2029, 2, 17, 4, 2, -12 }, // 0x7C '|' 492 | { 2034, 4, 17, 6, 1, -12 }, // 0x7D '}' 493 | { 2043, 7, 3, 9, 1, -7 }, // 0x7E '~' 494 | { 2046, 13, 17, 14, 1, -13 }, // 0x7F 495 | { 2074, 13, 17, 14, 1, -13 }, // 0x80 496 | { 2102, 13, 17, 14, 1, -13 }, // 0x81 497 | { 2130, 13, 17, 14, 1, -13 }, // 0x82 498 | { 2158, 13, 17, 14, 1, -13 }, // 0x83 499 | { 2186, 13, 17, 14, 1, -13 }, // 0x84 500 | { 2214, 13, 17, 14, 1, -13 }, // 0x85 501 | { 2242, 13, 17, 14, 1, -13 }, // 0x86 502 | { 2270, 13, 17, 14, 1, -13 }, // 0x87 503 | { 2298, 13, 17, 14, 1, -13 }, // 0x88 504 | { 2326, 13, 17, 14, 1, -13 }, // 0x89 505 | { 2354, 13, 17, 14, 1, -13 }, // 0x8A 506 | { 2382, 13, 17, 14, 1, -13 }, // 0x8B 507 | { 2410, 13, 17, 14, 1, -13 }, // 0x8C 508 | { 2438, 13, 17, 14, 1, -13 }, // 0x8D 509 | { 2466, 13, 17, 14, 1, -13 }, // 0x8E 510 | { 2494, 13, 17, 14, 1, -13 }, // 0x8F 511 | { 2522, 13, 17, 14, 1, -13 }, // 0x90 512 | { 2550, 13, 17, 14, 1, -13 }, // 0x91 513 | { 2578, 13, 17, 14, 1, -13 }, // 0x92 514 | { 2606, 13, 17, 14, 1, -13 }, // 0x93 515 | { 2634, 13, 17, 14, 1, -13 }, // 0x94 516 | { 2662, 13, 17, 14, 1, -13 }, // 0x95 517 | { 2690, 13, 17, 14, 1, -13 }, // 0x96 518 | { 2718, 13, 17, 14, 1, -13 }, // 0x97 519 | { 2746, 13, 17, 14, 1, -13 }, // 0x98 520 | { 2774, 13, 17, 14, 1, -13 }, // 0x99 521 | { 2802, 13, 17, 14, 1, -13 }, // 0x9A 522 | { 2830, 13, 17, 14, 1, -13 }, // 0x9B 523 | { 2858, 13, 17, 14, 1, -13 }, // 0x9C 524 | { 2886, 13, 17, 14, 1, -13 }, // 0x9D 525 | { 2914, 13, 17, 14, 1, -13 }, // 0x9E 526 | { 2942, 13, 17, 14, 1, -13 }, // 0x9F 527 | { 2970, 0, 0, 5, 0, 1 }, // 0xA0 528 | { 2970, 2, 13, 6, 2, -8 }, // 0xA1 529 | { 2974, 9, 14, 10, 1, -11 }, // 0xA2 530 | { 2990, 10, 13, 10, 0, -12 }, // 0xA3 531 | { 3007, 7, 8, 10, 2, -9 }, // 0xA4 532 | { 3014, 8, 13, 10, 1, -12 }, // 0xA5 533 | { 3027, 2, 17, 5, 2, -12 }, // 0xA6 534 | { 3032, 9, 17, 10, 1, -12 }, // 0xA7 535 | { 3052, 6, 1, 6, 0, -11 }, // 0xA8 536 | { 3053, 14, 13, 14, 1, -12 }, // 0xA9 537 | { 3076, 5, 8, 7, 1, -12 }, // 0xAA 538 | { 3081, 7, 6, 9, 1, -7 }, // 0xAB 539 | { 3087, 9, 5, 11, 2, -5 }, // 0xAC 540 | { 3093, 4, 1, 6, 1, -4 }, // 0xAD 541 | { 3094, 14, 13, 14, 1, -12 }, // 0xAE 542 | { 3117, 5, 1, 6, 0, -12 }, // 0xAF 543 | { 3118, 5, 5, 11, 3, -11 }, // 0xB0 544 | { 3122, 9, 11, 11, 1, -10 }, // 0xB1 545 | { 3135, 6, 8, 6, 1, -14 }, // 0xB2 546 | { 3141, 7, 8, 6, 0, -14 }, // 0xB3 547 | { 3148, 4, 3, 6, 2, -12 }, // 0xB4 548 | { 3150, 9, 13, 10, 1, -9 }, // 0xB5 549 | { 3165, 8, 16, 10, 2, -12 }, // 0xB6 550 | { 3181, 2, 1, 5, 2, -4 }, // 0xB7 551 | { 3182, 5, 4, 6, 1, 1 }, // 0xB8 552 | { 3185, 3, 7, 6, 2, -13 }, // 0xB9 553 | { 3188, 5, 8, 7, 1, -12 }, // 0xBA 554 | { 3193, 7, 6, 9, 1, -7 }, // 0xBB 555 | { 3199, 14, 13, 16, 2, -12 }, // 0xBC 556 | { 3222, 14, 13, 16, 2, -12 }, // 0xBD 557 | { 3245, 15, 13, 16, 1, -12 }, // 0xBE 558 | { 3270, 9, 13, 10, 1, -8 }, // 0xBF 559 | { 3285, 12, 16, 12, 0, -15 }, // 0xC0 560 | { 3309, 12, 16, 12, 0, -15 }, // 0xC1 561 | { 3333, 12, 16, 12, 0, -15 }, // 0xC2 562 | { 3357, 12, 16, 12, 0, -15 }, // 0xC3 563 | { 3381, 12, 15, 12, 0, -14 }, // 0xC4 564 | { 3404, 12, 17, 12, 0, -16 }, // 0xC5 565 | { 3430, 16, 13, 18, 1, -12 }, // 0xC6 566 | { 3456, 11, 17, 13, 1, -12 }, // 0xC7 567 | { 3480, 9, 16, 11, 1, -15 }, // 0xC8 568 | { 3498, 9, 16, 11, 1, -15 }, // 0xC9 569 | { 3516, 9, 16, 11, 1, -15 }, // 0xCA 570 | { 3534, 9, 15, 11, 1, -14 }, // 0xCB 571 | { 3551, 4, 16, 5, 0, -15 }, // 0xCC 572 | { 3559, 4, 16, 5, 1, -15 }, // 0xCD 573 | { 3567, 5, 16, 5, 0, -15 }, // 0xCE 574 | { 3577, 6, 15, 5, 0, -14 }, // 0xCF 575 | { 3589, 11, 13, 13, 1, -12 }, // 0xD0 576 | { 3607, 11, 16, 13, 1, -15 }, // 0xD1 577 | { 3629, 13, 16, 14, 1, -15 }, // 0xD2 578 | { 3655, 13, 16, 14, 1, -15 }, // 0xD3 579 | { 3681, 13, 16, 14, 1, -15 }, // 0xD4 580 | { 3707, 13, 16, 14, 1, -15 }, // 0xD5 581 | { 3733, 13, 15, 14, 1, -14 }, // 0xD6 582 | { 3758, 7, 7, 11, 2, -7 }, // 0xD7 583 | { 3765, 13, 13, 14, 1, -12 }, // 0xD8 584 | { 3787, 11, 16, 13, 1, -15 }, // 0xD9 585 | { 3809, 11, 16, 13, 1, -15 }, // 0xDA 586 | { 3831, 11, 16, 13, 1, -15 }, // 0xDB 587 | { 3853, 11, 15, 13, 1, -14 }, // 0xDC 588 | { 3874, 12, 16, 12, 0, -15 }, // 0xDD 589 | { 3898, 10, 13, 12, 1, -12 }, // 0xDE 590 | { 3915, 9, 13, 11, 1, -12 }, // 0xDF 591 | { 3930, 9, 13, 10, 1, -12 }, // 0xE0 592 | { 3945, 9, 13, 10, 1, -12 }, // 0xE1 593 | { 3960, 9, 13, 10, 1, -12 }, // 0xE2 594 | { 3975, 9, 13, 10, 1, -12 }, // 0xE3 595 | { 3990, 9, 12, 10, 1, -11 }, // 0xE4 596 | { 4004, 9, 14, 10, 1, -13 }, // 0xE5 597 | { 4020, 15, 10, 16, 1, -9 }, // 0xE6 598 | { 4039, 8, 14, 9, 1, -9 }, // 0xE7 599 | { 4053, 8, 13, 10, 1, -12 }, // 0xE8 600 | { 4066, 8, 13, 10, 1, -12 }, // 0xE9 601 | { 4079, 8, 13, 10, 1, -12 }, // 0xEA 602 | { 4092, 8, 12, 10, 1, -11 }, // 0xEB 603 | { 4104, 4, 13, 4, 0, -12 }, // 0xEC 604 | { 4111, 4, 13, 4, 1, -12 }, // 0xED 605 | { 4118, 5, 13, 5, -1, -12 }, // 0xEE 606 | { 4127, 6, 12, 5, -1, -11 }, // 0xEF 607 | { 4136, 8, 14, 10, 1, -13 }, // 0xF0 608 | { 4150, 8, 13, 10, 1, -12 }, // 0xF1 609 | { 4163, 8, 13, 10, 1, -12 }, // 0xF2 610 | { 4176, 8, 13, 10, 1, -12 }, // 0xF3 611 | { 4189, 8, 13, 10, 1, -12 }, // 0xF4 612 | { 4202, 8, 13, 10, 1, -12 }, // 0xF5 613 | { 4215, 8, 12, 10, 1, -11 }, // 0xF6 614 | { 4227, 9, 8, 11, 1, -7 }, // 0xF7 615 | { 4236, 8, 11, 10, 1, -9 }, // 0xF8 616 | { 4247, 8, 13, 10, 1, -12 }, // 0xF9 617 | { 4260, 8, 13, 10, 1, -12 }, // 0xFA 618 | { 4273, 8, 13, 10, 1, -12 }, // 0xFB 619 | { 4286, 8, 12, 10, 1, -11 }, // 0xFC 620 | { 4298, 9, 17, 9, 0, -12 }, // 0xFD 621 | { 4318, 9, 16, 10, 1, -12 }, // 0xFE 622 | { 4336, 9, 16, 9, 0, -11 } }; // 0xFF 623 | 624 | const GFXfont FreeSans9pt8b PROGMEM = { 625 | (uint8_t *)FreeSans9pt8bBitmaps, 626 | (GFXglyph *)FreeSans9pt8bGlyphs, 627 | 0x00, 0xFF, 21 }; 628 | 629 | // Approx. 6153 bytes 630 | --------------------------------------------------------------------------------