Add tiny_train sprite

This commit is contained in:
2025-04-25 03:18:49 +02:00
parent 16f7d80677
commit 76cca9c1c0
4 changed files with 18 additions and 6 deletions
+3 -6
View File
@@ -102,20 +102,17 @@ void setup() {
pinMode(BUTTON_PIN, INPUT_PULLUP);
attachInterrupt(BUTTON_PIN, onButtonFalling, FALLING);
/*
display.print(" 5 Mannheim sofort\n"
"26 Kirchheim 9 min\n"
" 5 Weinheim 20:13");
*/
}
#define QUERY_STRING "stop_id=de:08221:1225&platform=A"
// TODO: Error handling
String fetchDepartures() {
std::unique_ptr<BearSSL::WiFiClientSecure> https(new BearSSL::WiFiClientSecure);
https->setInsecure();
HTTPClient client;
if (!client.begin(*https, "vrnp.beany.club", 443, "/departures?stop_id=de:08221:1225&platform=A")) {
if (!client.begin(*https, "vrnp.beany.club", 443, "/departures?" QUERY_STRING)) {
display.fillScreen(COLOR_BG);
display.setCursor(0, 0);
display.print("begin failed");