Skip to content

TFT module

loboris edited this page Mar 15, 2017 · 5 revisions

tft module

This module provides functions to manage external displays connected to the ESP32 board via 4-wire SPI

For now this module supports displays with one of the following chipsets:

  • ST7735
  • ILI9341

Features:

  • Touch panel with XPT2046 controllers is supported.
  • Included graphics functions: putpixel, line, linebyangle, rect, roundrect, circle, ellipse, triangle,arc, poly, star. All shapes can be filled or not. Drawing can be limitid to clipping window.
  • Fonts: fixed width an proportional, 7 fonts embeded, unlimited number of fonts from file, 7-segment vector font with variable width/height. Proportional fonts can be used in fixed width mode.
  • String write function: on x,y possition, center, left/right/top/bottom justify. Transparent or opaque writing, optional wrapping. Writting can be limitid to clipping window.
  • Images: raw image, jpg & bmp formats supported, jpg image from camera supported
  • Touch: gettouch, getrawtouch functions. Lua calibration program included.
  • Read from display memory functions included

Complete Reference manual is avalable as pdf file. download or view

Examples

Clone this wiki locally