meta data for this page
Differences
This shows you the differences between two versions of the page.
| display:st7789v [2026/05/19 21:37] – created vamsan | display:st7789v [2026/05/19 22:00] (current) – vamsan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LamaPLC: ST7789 driver / TFT-LCD screen ====== | ====== LamaPLC: ST7789 driver / TFT-LCD screen ====== | ||
| + | {{ : | ||
| The ST7789 is a popular single-chip controller/ | The ST7789 is a popular single-chip controller/ | ||
| Line 9: | Line 10: | ||
| * **Voltage: | * **Voltage: | ||
| * **View Angle:** IPS versions offer "full viewing angles," | * **View Angle:** IPS versions offer "full viewing angles," | ||
| + | * **On-Chip Memory:** Features an integrated display data RAM (DDRAM) of 240 x 320 x 18 bits. This allows the chip to refresh the display independently of the host microcontroller, | ||
| + | * **Colour Depth Options:** Supports various colour formats, including 12-bit, 16-bit (65K colours), and 18-bit (262K colours). | ||
| + | * **Logic Voltage:** <color red> | ||
| + | * **Temperature Range:** Typically rated for -30 °C to +85 °C, making it suitable for outdoor or industrial use. | ||
| + | * **Tearing Effect (TE) Signal:** Provides a synchronization signal to the host MCU to prevent " | ||
| + | * **Hardware Scrolling: | ||
| + | ==== Software Libraries ==== | ||
| + | * **ESP32:** The '' | ||
| + | * **Arduino: | ||
| + | * **Python/ | ||
| - | ===== I²C topics on lamaPLC ===== | + | **Pro Tip:** If your screen shows " |
| - | {{topic>i2c}} | + | |
| + | ==== ST7789 driver Pinout ==== | ||
| + | The pinout for the ST7789 depends on whether you have a 7-pin or 8-pin breakout board. Most common DIY modules use a 7-pin layout, but many professional breakouts include a '' | ||
| + | |||
| + | * **GND:** Ground (0V). | ||
| + | * **VCC:** Power (Typically 3.3V; some modules support 5V). | ||
| + | * **SCL:** Serial Clock (SPI Clock / SCK). | ||
| + | * **SDA:** Serial Data (SPI MOSI). | ||
| + | * **RES (RST):** Reset pin (Active low). | ||
| + | * **DC (D/C):** Data/ | ||
| + | * **LK (BL):** Backlight control. | ||
| + | |||
| + | Some modules add an eighth pin to allow multiple devices on the same SPI bus. | ||
| + | |||
| + | * **CS (Chip Select):** Enables or disables the display on the SPI bus. | ||
| + | |||
| + | |||
| + | ==== Visual designer for ST7789 ==== | ||
| + | To create graphics for an ST7789 display, you can either use professional GUI editors for complex interfaces or simple image converters for static images. If you want to drag-and-drop buttons, sliders, and charts, use these tools that export code directly: | ||
| + | |||
| + | * **SquareLine Studio:** The official visual editor for LVGL. It is the most professional option for creating modern, high-end interfaces. You can design the UI and export the C++ code for your RP2040. | ||
| + | * **LVGL UI Editor:** An XML-based development environment that provides real-time previews and code generation specifically for embedded UIs. | ||
| + | * **EEZ Studio:** An open-source visual tool for designing dashboards and complex user interfaces that can run on small TFT screens | ||
| + | |||
| + | **Image & Asset Converters** | ||
| + | |||
| + | If you have a picture (JPG/PNG) and just want to display it on the screen: | ||
| + | |||
| + | * **LVGL Image Converter: | ||
| + | * **LCD Image Converter: | ||
| + | * **image2cpp: | ||
| + | |||
| + | |||
| + | ===== SPI topics on lamaPLC ===== | ||
| + | {{topic>spi}} | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | {{tag> | + | {{tag> |
| \\ | \\ | ||
| This page has been accessed for: Today: {{counter|today}}, | This page has been accessed for: Today: {{counter|today}}, | ||