Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://github.com/Bodmer/PNG_TEST_ONLY
- //
- #include <TFT_eSPI.h>
- TFT_eSPI tft = TFT_eSPI();
- #include <HTTPClient.h>
- #define USE_LINE_BUFFER
- #include "support_functions.h"
- #define WIFI_SSID "WIFI SSID"
- #define WIFI_PASS "WIFI PASSWORD"
- void setup()
- {
- Serial.begin(115200);
- tft.begin();
- WiFi.begin(WIFI_SSID, WIFI_PASS);
- while (WiFi.status() != WL_CONNECTED) {
- Serial.print(".");
- delay(1000);
- }
- Serial.println("\n WiFi connected.\n");
- }
- void loop()
- {
- tft.fillScreen(0);
- setPngPosition(0, 0);
- load_png("http://IP_RECEPTOR/picon/protvhd.png");
- delay(2000);
- tft.fillScreen(0);
- setPngPosition(0, 0);
- load_png("http://IP_RECEPTOR/picon/hbohd.png");
- delay(2000);
- tft.fillScreen(0);
- setPngPosition(0, 0);
- load_png("http://IP_RECEPTOR/picon/comedycentral.png");
- delay(2000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement