Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Levente Daradici https://www.youtube.com/@LeventeDaradici/videos
- // LCD4Linux on ESP32-2432s028
- //
- #include <TFT_eSPI.h>
- TFT_eSPI tft = TFT_eSPI();
- #include <HTTPClient.h>
- #define USE_LINE_BUFFER
- #include "support_functions.h"
- #define WIFI_SSID "YOUR WIFI SSID"
- #define WIFI_PASS "YOUR WIFI PASSWORD"
- void setup()
- {
- Serial.begin(115200);
- tft.begin();
- tft.setRotation(3);
- WiFi.begin(WIFI_SSID, WIFI_PASS);
- while (WiFi.status() != WL_CONNECTED) {
- Serial.print(".");
- delay(1000);
- }
- Serial.println("\n WiFi connected.\n");
- tft.fillScreen(0);
- //tft.fillRect(0,0,232,134, TFT_BLUE);
- }
- void loop()
- {
- //tft.fillScreen(0);
- //tft.fillRect(1,1,230,132,TFT_BLACK);
- setPngPosition(1, 1);
- load_png("http://192.168.X.XXX/lcd4linux/dpf.png"); // Your Receiver IP
- delay(200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement