TTGO T-Display

Simple Example #

dependencies #

lib_deps =    
    https://github.com/ESP32Home/TFT_eSPI_ttgo_t-display.git#2.3.4_t-display
    https://github.com/ESP32Home/GfxUi.git#v1.0.1

Example Code #

click to expand the example code...
#include <Arduino.h>
#include <TFT_eSPI.h>
#include <SPI.h>
#include "GfxUi.h"
#include <SPIFFS.h>

TFT_eSPI tft = TFT_eSPI(135, 240);
GfxUi ui = GfxUi(&tft);

void setup()
{
    Serial.begin(115200);

    tft.init();
    tft.setRotation(3);
    SPIFFS.begin(true);//FORMAT_SPIFFS_IF_FAILED
    ui.drawBmp("/esp_home.bmp", 0, 0);//'ui' needs tft and SPIFF

    tft.setCursor(0, 0);
    tft.setTextColor(TFT_GREEN);
    tft.setTextSize(2);
    tft.drawString("Hello TFT World",  tft.width() / 2, tft.height() / 2 );

}

void loop()
{

}

3D printed case #

Display #

  • IPS ST7789V
  • 1,14 Zoll
  • 135x240

Suppliers #

Applications #

Thermostat control #

Features

  • C++ Platformio project
  • Adjust temperature up/down with buttons
  • LCD display
    • ongoing request
    • target temperature
    • current temperature
    • metal temperature
    • hot water flow
  • rechargeable battery
  • Deep Sleep, wake on button press
  • MQTT
  • Json payload
  • LCD Graphics splash screen
Build info
PACKAGES:
 - framework-arduinoespressif32 3.10004.201016 (1.0.4)
 - tool-esptoolpy 1.30000.201119 (3.0.0)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
Dependency Graph
|-- <TFT_eSPI> 2.3.52+sha.49cdca6
|   |-- <SPI> 1.0
|   |-- <FS> 1.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|-- <GfxUi> 1.0.0+sha.64d5ced
|   |-- <TFT_eSPI> 2.3.52+sha.49cdca6
|   |   |-- <SPI> 1.0
|   |   |-- <FS> 1.0
|   |   |-- <SPIFFS> 1.0
|   |   |   |-- <FS> 1.0
|   |-- <SPI> 1.0
|   |-- <FS> 1.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|-- <ArduinoJson> 6.16.1
|-- <MQTT> 2.4.7
|-- <SPI> 1.0
|-- <FS> 1.0
|-- <SPIFFS> 1.0
|   |-- <FS> 1.0
|-- <WiFi> 1.0
|-- <Wire> 1.0.1
|-- <Button2>