TFT Color Display ST7735/ST7789
Summary
TFT color display module supporting ST7735 and ST7789 controllers over SPI. Provides full-color rendering with flexible initialization options for different panel variants.
Description
The ST7735/ST7789 TFT Color Display (SPI) supports multiple panel configurations and resolutions. It allows customization of background color, inversion, mirroring, and orientation. The driver includes advanced options such as pixel offset overrides for non-standard modules. Rendering supports text, images, bitmaps, and graphics primitives.
Diagram:
Categories
- File:TArduinoDisplayCategory.png Category Display – Screen and display components.
- File:TArduinoSPICategory.png Category SPI – SPI communication devices.
Properties
- Background Color – Default background color of the display.
- Elements – Configurable rendering elements (Text, Bitmap, Graphics, etc.).
- Inverted – Enables or disables display color inversion.
- Mirror – Horizontal/Vertical flip (boolean).
- Orientation – Screen orientation (goUp, goDown, goLeft, goRight).
- Override Pixel Offset – Manual pixel offset configuration:
* x – Horizontal offset. * y – Vertical offset. * enabled – Boolean flag to enable offset override.
- SPISpeed – SPI bus speed.
- Text – Default text properties for rendering.
- Type – Display panel type:
* dtST7735R_Arduino * dtST7735R_BlackTab * dtST7735R_GreenTab * dtST7735R_GreenTab_144 * dtST7735R_GreenTab_160_80 * dtST7735R_RedTab_160_80 * dtST7735R_RedTab * dtST7735B * dtST7789_240_240 * dtST7789_135_240
Elements
- Text – Displays text using configurable font and style.
- Render Event – Triggers external rendering events.
- Draw Bitmap – Renders bitmap images.
- Fill Screen – Fills the screen with a chosen color.
- Scroll – Scrolls text or graphics across the display.
- Graphics – General graphic primitives rendering.
- Draw Scene – Renders predefined graphical scenes.
- Image – Displays stored image data.
- Pixels – Direct control over individual pixels.
- Lines – Draws straight lines between two points.
- Shapes – Draws basic shapes (rectangles, circles, etc.).
Pins
Input Pins
- In (text) – Text input for display rendering.
- Elements – When display elements are added, they create their own input and clock pins automatically.
- Refresh – Clock input to refresh/redraw the display.
Output Pins
- Reset – Digital reset control for the display.
- Control – SPI communication bus connection.
- Chip Select – Digital chip select line for display addressing.
- Data/Command – Digital control pin to switch between data and command mode.