TFT Color Display Sitronix ST7796S SPI
Jump to navigation
Jump to search
Summary
TFT color display module using the Sitronix ST7796S controller with SPI interface. Supports full-color rendering, inversion, mirroring, and multiple orientation modes.
Description
The ST7796S TFT Color Display (SPI) is a high-resolution display controller widely used in embedded projects. It provides SPI-based communication with configurable bus speed, supports inversion and mirroring, and allows advanced text and graphics rendering. This driver enables smooth rendering of text, images, and graphical primitives for user interfaces or visualization applications.
Diagram:
Properties
- Background Color – Default background color of the display.
- Elements – Configurable rendering elements (Text, Bitmap, Graphics, etc.).
- Inverted – Boolean flag for color inversion.
- Mirror – Horizontal/Vertical flip (boolean).
- Orientation – Screen orientation (goUp, goDown, goLeft, goRight).
- SPISpeed – SPI bus speed (default 62500000).
- Text – Default text properties for rendering.
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.
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.
Categories
- File:TArduinoDisplayCategory.png Category Display – Screen and display components.
- File:TArduinoSPICategory.png Category SPI – SPI communication devices.