Where I’m Stuck

I’ve followed the steps below to connect my ESP32-2432S028 TFT display to https://display.regardingwork.com, but I’m stuck. The ESP32’s LED turns on briefly during upload but turns off, and the TFT remains blank. I think it’s due to two issues:

For initial setup, see the ESP32 Setup Guide.

Introduction

This guide outlines how to connect your ESP32-2432S028 TFT display to https://display.regardingwork.com for displaying data from APIs (e.g., RegardingWork game, CoinGecko, OpenWeatherMap). It builds on the initial ESP32 setup from the ESP32 Setup Guide.

Step 1: Verify Hardware Compatibility

Ensure your ESP32-2432S028 with TFT supports the required features:

Confirm with the Shopee specs: 240MHz dual-core, SPI interface.

Step 2: Set Up the Display

Prepare the display for operation.

Step 3: Register the Display with the System

Link the display to the web platform.

Step 4: Configure API Connections

Set up widgets in the web dashboard.

Step 5: Program the Display to Fetch Data

Update firmware to fetch and display data.


#include 
#include 
#include 
#include 

TFT_eSPI tft = TFT_eSPI();
const char* ssid = "yourSSID";
const char* password = "yourPassword";
const char* url = "https://display.regardingwork.com/device/yourDeviceId/data";

void setup() {
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) delay(1000);
  tft.init();
  tft.setTextColor(TFT_WHITE);
}

void loop() {
  if (WiFi.status() == WL_CONNECTED) {
    HTTPClient http;
    http.begin(url);
    int httpCode = http.GET();
    if (httpCode == 200) {
      String payload = http.getString();
      DynamicJsonDocument doc(1024);
      deserializeJson(doc, payload);
      String content = doc["widgets"][0]["content"].as();
      tft.fillScreen(TFT_BLACK);
      tft.setCursor(0, 0);
      tft.println(content);
    }
    http.end();
  }
  delay(60000); // Update every minute
}
        

Adjust for your user_setup.h from ESP32 Setup Guide.

Step 6: Test and Debug

Verify functionality.

Step 7: Enhance and Scale

Improve the setup.

Conclusion

This guide builds on the ESP32 Setup Guide. Address power and config issues to resolve the stuck point.

Comments

Approved comments appear below. Log in once with GFAVIP — it applies across the whole site. GFAVIP login

View comments archive