Add tiny_train sprite
This commit is contained in:
+3
-6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user