Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. //https://github.com/Bodmer/PNG_TEST_ONLY
  2. //
  3. #include <TFT_eSPI.h>              
  4. TFT_eSPI tft = TFT_eSPI();        
  5. #include <HTTPClient.h>
  6.  
  7. #define USE_LINE_BUFFER
  8. #include "support_functions.h"
  9. #define WIFI_SSID "WIFI SSID"
  10. #define WIFI_PASS "WIFI PASSWORD"
  11.  
  12. void setup()
  13. {
  14.   Serial.begin(115200);
  15.   tft.begin();
  16.  
  17.  
  18.   WiFi.begin(WIFI_SSID, WIFI_PASS);
  19.   while (WiFi.status() != WL_CONNECTED) {
  20.     Serial.print(".");
  21.     delay(1000);
  22.   }
  23.   Serial.println("\n WiFi connected.\n");
  24. }
  25.  
  26.  
  27. void loop()
  28. {
  29.   tft.fillScreen(0);
  30.   setPngPosition(0, 0);
  31.   load_png("http://IP_RECEPTOR/picon/protvhd.png");
  32.   delay(2000);
  33.  
  34.   tft.fillScreen(0);
  35.   setPngPosition(0, 0);
  36.   load_png("http://IP_RECEPTOR/picon/hbohd.png");
  37.   delay(2000);
  38.  
  39.   tft.fillScreen(0);
  40.   setPngPosition(0, 0);
  41.   load_png("http://IP_RECEPTOR/picon/comedycentral.png");
  42.   delay(2000);
  43. }