TEP DOWNLOAD CENTER

Project Files of ST7789 TFT LCD Library for Proteus V1.0 (1.3 / 1.54 inch IPS)

Libraries Code Projects Simulation
tep://download-terminal tft-st7789-tep-v1-0-7e676f28841a4708814e929eaeb32e20.zip ZIP archiveV1.0Verified34 downloadsFree
ST7789 TFT LCD Library for Proteus V1.0: an Arduino UNO V4.0 with the 1.3 inch ST7789 IPS TFT showing a dashboard and the Advance pop-up of the 1.54 inch board showing the colour test
Proteus library · File 1 of 1

ST7789 TFT LCD Library for Proteus V1.0

ST7789 TFT LCD Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • HEXHEX firmware

Description

This is the download page of ST7789 TFT LCD Library for Proteus V1.0, the file package of the tutorial ST7789 TFT LCD Library for Proteus V1.0 (1.3 / 1.54 inch IPS), published on The Engineering Projects in October 2026. Here you get the ZIP file (1.2 MB) with the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware, the list of files it contains, the README when there is one, and the installation steps in order.

What this library is

TFT-ST7789-Library-for-Proteus-v1.0.zip with the 1.3" (no CS) and 1.54" ST7789 240x240 IPS TFT SPI modules, Simple and Advance (TEPST7789.LIB and TEPST7789.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO Adafruit ST7789 simulation with its HEX file, the demo sketch and a README.

This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.

What is inside the ZIP file

  • ArduinoV4TEP.LIB – Proteus library, 201.9 KB
  • TEPST7789.LIB – Proteus library, 85.8 KB
  • TEPARDUINO.DLL – Simulation model, 883.5 KB
  • TEPST7789.DLL – Simulation model, 315 KB
  • TFT-ST7789-ArduinoUnoV4.pdsprj – Proteus simulation, 23.5 KB
  • TFT_ST7789_Demo.ino – Arduino sketch, 11.2 KB
  • and 4 more, all listed in the File Structure tab

The archive unpacks to 2.7 MB and carries its own README (README.txt), shown in the README tab above.

How to download

Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.

How to install

  • Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
  • Step 2: Close Proteus and copy ArduinoV4TEP.LIB and TEPST7789.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPARDUINO.DLL and TEPST7789.DLL into the MODELS folder next to it, so the part simulates.
  • Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
  • Step 5: Open TFT_ST7789_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
  • Step 6: In Proteus set the controller's Program File to TFT_ST7789_Demo.hex; on hardware, flash the same file.
  • Step 7: Open TFT-ST7789-ArduinoUnoV4.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, ST7789 TFT LCD Library for Proteus V1.0 (1.3 / 1.54 inch IPS), explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.

Read ST7789 TFT LCD Library for Proteus V1.0 (1.3 / 1.54 inch IPS)

File Structure

tft-st7789-tep-v1-0-7e676f28841a4708814e929eaeb32e20.zip10 files · 5 folders · 2.7 MB unpacked
TFT-ST7789-TEP-v1.0/10 files · 2.7 MB
Arduino Code/1 file · 11.2 KB
TFT_ST7789_Demo/1 file · 11.2 KB
INO TFT_ST7789_Demo.inoArduino sketch 11.2 KB
Proteus Library Files/2 files · 287.7 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPST7789.LIBProteus library 85.8 KB
Proteus Model Files/2 files · 1.2 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPST7789.DLLSimulation model 315 KB
Proteus Simulation/4 files · 1.3 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPST7789.DLLSimulation model 315 KB
DSN TFT-ST7789-ArduinoUnoV4.pdsprjProteus simulation 23.5 KB
HEX TFT_ST7789_Demo.hexCompiled HEX file 63.5 KB
TXT README.txtText file 32.3 KB

README

README.txt 381 lines
TFT ST7789 LIBRARY FOR PROTEUS - V1.0
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/10/st7789-tft-lcd-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/lcd-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
The built-in monitor is our TEP Serial Monitor Advance - its own article:
  https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Our other colour TFTs: the 1.8" ST7735 and the 2.4" ILI9341 with touch:
  https://www.theengineeringprojects.com/2026/10/tft-st7735-library-for-proteus-v1-0.html
  https://www.theengineeringprojects.com/2026/10/tft-ili9341-library-for-proteus-v1-0.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
TFT-ST7789-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                          201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPST7789.LIB                              85.8 KB   the 4 TFT ST7789 devices -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                            883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPST7789.DLL                             315.0 KB   the TFT ST7789 model -> MODELS folder
|-- Proteus Simulation/
|   |-- TEPARDUINO.DLL                            883.5 KB   copy of the board model
|   |-- TEPST7789.DLL                             315.0 KB   copy of the model so the demo runs as is
|   |-- TFT_ST7789_Demo.hex                        63.5 KB   both UNOs (demo sketch V1.0)
|   |-- TFT-ST7789-ArduinoUnoV4.pdsprj             23.5 KB   demo: UNO 1 + 1.3" Simple, UNO 2 + 1.54" Advance
|-- Arduino Code/
|   |-- TFT_ST7789_Demo/TFT_ST7789_Demo.ino        11.2 KB   the demo sketch (source of the .hex)
|-- README.txt                                    ~33.1 KB   this file
Total: 2.75 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the small 240 x 240 IPS TFT SPI modules for Proteus 8: the
65K-colour IPS glass with the ST7789 controller, on the two common blue boards:
  * 1.3"  - 27.78 x 39.22 mm, 7 pins GND, VCC, SCL, SDA, RES, DC, BLK. There is
            NO CS pin: the controller's CS is tied low on the board.
  * 1.54" - 32.00 x 43.72 mm, 8 pins GND, VCC, SCL, SDA, RES, DC, CS, BLK.
Our own model, not a symbol on top of Proteus's parts. It is built and tested
with the Adafruit ST7735 and ST7789 library (Adafruit_ST7789 tft(10, 8, 9) - CS,
DC, RES on hardware SPI; tft.init(240, 240)); other drivers send the same
datasheet commands:
  * The serial interface as on the real chip (4-line SPI): CS low starts a byte,
    SDA is read on every rising SCL edge (MSB first), DC is read with the 8th
    bit - low = a command, high = a parameter or pixel data; CS high in the
    middle of a byte drops those bits; clocks while CS is high are ignored. On
    the 1.3" board CS is tied low (the datasheet allows it): every rising SCL
    edge is a bit, and only RES (or power) brings the bit count back to the
    start of a byte. The clock is measured (the ST7789 takes up to 62.5 MHz for
    writes; an Arduino UNO makes 8 MHz at most), and so is the SPI mode (where
    SCL rests between bytes).
  * The ST7789 controller itself, from its datasheet: the 240 x 320 x 18-bit
    frame memory, every command with its parameters - SWRESET, SLPIN / SLPOUT,
    NORON / PTLON, INVOFF / INVON, DISPOFF / DISPON, CASET / RASET (the address
    window), RAMWR and RAMWRC (the pixels fill the window column by column, row
    by row), MADCTL (MY / MX / MV: the four rotations, and the RGB / BGR colour
    order), COLMOD (12, 16 or 18-bit colour), IDMON / IDMOFF (8 colours),
    VSCRDEF / VSCSAD (vertical scrolling), the porches and the frame rate (B2,
    C6: the panel refresh, 59.3 Hz after a reset), the power, VCOM, gate and
    gamma settings (kept and logged), the reads (not answered - drivers never
    need them), and the RES pin: a pulse of 10 us or more resets the registers
    (a shorter glitch is ignored and noted).
  * The glass as on a real module: 240 x 240 pixels on memory columns 0 - 239,
    rows 0 - 239 (the other 80 rows of the memory are not shown). An IPS glass
    is normally BLACK: with power and backlight but asleep, with the display off
    or never initialised it stays black. Its colours are right with INVERSION
    ON (INVON 21) - every ST7789 init sends it; INVOFF inverts the picture.
    Idle mode applies, the backlight dims with PWM on the BLK pin (the duty is
    measured every 20 ms; BLK is pulled up on the board: open = on), and the
    power-on memory is random until the sketch writes it.
  * The classic mistakes show as on a real module: a picture made for 240 x 320
    (tft.init(240, 320) or a missing 80-row offset) moves up by 80 rows and loses
    its top; INVOFF inverts the colours; the BGR order swaps red and blue.
  * The datasheet's waits: 5 ms after a reset or SLPOUT before the next
    command, 120 ms after a reset before SLPOUT. A command that comes earlier is
    ignored and flagged (TOO EARLY).
The parts look like the real modules: the blue boards, the IPS glass with its
black border and the pin header on top, drawn at TWICE the real size so the
240 x 240 pixels stay readable on the schematic. While the simulation runs the
glass shows the picture in colour, and LEDs show what happens: PWR (power) and
SPI (a byte reaches the TFT). Under the board, a TEP strip holds the SIMPLE /
ADVANCE badge and the panel button. The LEDs, the strip and the panels are
TEP additions; a real module has none of them.

FOUR DEVICES IN ONE LIBRARY (search "ST7789" or "TFT" in Pick Devices):
  1.3"  Simple    TFT13ST7789TEP       "TFT 1.3 IPS ST7789 240x240 V1.0 - Simple"
  1.3"  Advance   TFT13ST7789ADVTEP    "TFT 1.3 IPS ST7789 240x240 V1.0 - Advance"
  1.54" Simple    TFT154ST7789TEP      "TFT 1.54 IPS ST7789 240x240 V1.0 - Simple"
  1.54" Advance   TFT154ST7789ADVTEP   "TFT 1.54 IPS ST7789 240x240 V1.0 - Advance"
  Simple    On-Sheet Panel: the TFT STATUS panel under the board - the banner
            (READY - 240x240 IPS, 16-BIT 565, DISPLAY ON / BLACK SCREEN -
            NOTHING ON SPI YET / BLACK SCREEN - STILL IN SLEEP: SEND SLPOUT (11)
            / BLACK SCREEN - SLEEP IN / BLACK SCREEN - DISPLAY OFF / STILL ASLEEP
            - SLPOUT CAME TOO EARLY / PICTURE OFF THE GLASS - USE
            TFT.INIT(240, 240) / RED / BLUE SWAPPED / COLOURS INVERTED - INVOFF ON
            THIS IPS GLASS / IN RESET / BACKLIGHT OFF / SUPPLY REVERSED / NO
            POWER), the readouts DISPLAY, SLEEP, COLOURS, ORIENTATION, BACKLIGHT,
            VCC, SPI (the clock), FRAME (a full screen, i.e. a fillScreen, on the
            bus), PIXELS and IGNORED (too early, unknown, stray data, past the
            memory, cut bytes, in reset, without power), and the last 6
            transfers. The red X closes the panel, PANEL: SHOWN / CLOSED on the
            strip opens it again.
  Advance   Pop-Up Panel: only the module on the schematic; at Run a TEP pop-up
            window "TEP TFT 1.54" ST7789 Advance" (or 1.3") opens - the look of
            the TEP Serial Monitor. Tabs Display, Bus log and Tests; gear and ?
            icons for Settings and Help; the palette icon switches the theme:
              Display   a big copy of the glass with GLASS Live / Freeze and
                        PIXEL GRID Off / On (x / y numbers in rotation 0), the
                        controller's state (display, sleep, colour mode,
                        orientation, colour order, inversion, idle mode,
                        backlight), the 240 x 320 frame memory as the glass sees
                        it (the glass window framed), the supply, the board, the
                        panel refresh, full screens and scrolling, the init line
                        for this glass, the latest transfers
              Bus log   every command with its parameters and every run of
                        pixels: the time, the gap, CMD / PIXELS / POWER / RESET,
                        the command byte or the pixel count, what it means (a
                        problem in red); filters All / Commands / Pixels /
                        Problems, Pause, Clear
              Tests     four tools - Init check, SPI bus, Speed, Pixels (see
                        THE TEST TOOLS below)
              Settings  theme, text size, open at Run, window size
              Help      report a bug, suggest a feature, article, updates,
                        donate, forum; Copy diagnostics for a bug report
            The OPEN PANEL button on the strip opens the window again.
All four use the same model (TEPST7789.DLL).

TEST STATUS
V1.0: verified in Proteus 8.5 on 16 Oct 2026 (the demo project as shipped: two
Arduino UNO V4.0 boards with their built-in monitors and TFT2's pop-up open).
What the run showed:
  * The project loads and starts cleanly; the simulation log has only
    information lines (both UNOs: "built-in serial monitor on D0 / D1 - 9600
    baud 8N1", supply pins 5.000 / 3.300 V; TFT1: the 1.3" board, 7 pins, no CS
    pin (CSX tied low on the board); TFT2: the 1.54" board, 8 pins with CS;
    both: power on (5.00 V), display on - 16-BIT 565, MADCTL C0 (UPRIGHT, RGB
    order), inversion ON (the IPS glass's true colours), 59.3 Hz panel
    refresh). TFT1 adds a note: no CS pin, SPI mode 0. Both monitors print
    "TFT 240x240 IPS ready"; TFT1 shows the dashboard, TFT2 (its UNO's D2 tied
    to GND) the colour test.
  * TFT1's panel: READY - 240x240 IPS, 16-BIT 565, DISPLAY ON; ON, OUT, 16-BIT
    565, UPRIGHT, ON 100 %, 5.00 V, 8.0 MHz, 196 ms per full screen, PIXELS
    counting, IGNORED 0.
  * The commands on ARD1: STATUS; LIGHT 60 - the backlight dims (24 % PWM);
    INVERT ON - the colours inverted (INVOFF on the IPS glass) and the amber
    banner COLOURS INVERTED; ROTATE 1 - the dashboard in landscape; SLEEP - the
    glass goes BLACK; WAKE - the picture back; SIZE 320 (tft.init(240, 320) on
    this 240 x 240 glass) - the picture 80 rows up with its top cut off, the
    red banner PICTURE OFF THE GLASS and a log line; SIZE 240 - right again.
  * TFT2 (Advance): Display; Bus log; Init check all green (a 100 ms hardware
    reset 165.9 ms after power-on, SWRESET, SLPOUT 150 ms later, the waits
    kept, 16-bit 565, MADCTL C0 upright, RGB right, INVON right for this IPS
    glass, every pixel on the glass, DISPON at 656.2 ms) plus the amber note
    that the memory is not written before DISPON (Adafruit draws after it) and
    a RES glitch of 5.6 us (the pin set to OUTPUT before HIGH - ignored, as a
    real ST7789 does); SPI bus - all six signals connected, 8.00 MHz, SPI mode
    0, up to 115,211 bytes per CS-low stretch (a fillScreen); Speed - FILL: a
    full screen in 195.52 ms (3.39 us a pixel), 5.1 full screens a second at
    best; Pixels - a click on the hue sweep: glass pixel x 92, y 72, memory
    column 147, row 167, tft.drawPixel(92, 72, 0x07E9); SIZE 320 on ARD2 - the
    Init check red on the window (pixels in memory rows 240 - 319).
  * Speed: about 0.35 x real time with both monitors and the pop-up open - the
    two simulated ATmega328P and the SPI traffic of a 240 x 240 colour display
    (a fillScreen is 115,200 bytes).
  Plus automatic checks on a PC, 0 failed: 93 with the REAL demo sketch and the
  UNMODIFIED Adafruit ST7735 and ST7789 1.11.0 + Adafruit GFX 1.12.6 talking bit
  by bit (hardware SPI, 8 MHz) to TWO models at once - the 1.54" with CS and the
  1.3" with CS tied low - while every drawing call also goes to Adafruit's own
  GFXcanvas16: after every command the glass equals that canvas pixel by pixel,
  in all four rotations, inverted too (init()'s sequence and its waits, the
  bus, fillScreen's time, SLEEP / DISPLAY OFF = the black glass, the wrong size:
  the picture exactly 80 rows up; the no-CS board's glass = the CS board's); 11
  on the pop-up pages rendered (the black screen, inverted colours, the wrong
  size, commands too early); the demo project read back from disk (165 checks:
  devices, pins, wires, labels, no wire crossing).

INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPST7789.LIB with the four
   devices and our Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO UNO
   V4.0 used by the demo) to the LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
   LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPST7789.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS). ArduinoV4TEP.LIB and
   TEPARDUINO.DLL are the files of our Arduino Library V4.0 - if you have it,
   they are the same.
4. Delete TEPST7789.IDX from the LIBRARY folder if there is one (Proteus makes a
   new index).
5. Start Proteus. In Pick Devices (P) search "ST7789": you get the four devices
   (category Optoelectronics > Graphical LCDs).

RUN THE DEMO
"Proteus Simulation\TFT-ST7789-ArduinoUnoV4.pdsprj" - keep the .hex file and the
two DLLs beside the project.
  ARD1: Arduino UNO V4.0 + TFT1 = the 1.3" board (no CS), Simple (the dashboard).
  ARD2: Arduino UNO V4.0 + TFT2 = the 1.54" board (with CS), Advance (D2 to GND:
        the colour test).
  Both UNOs run TFT_ST7789_Demo.hex, and each has its serial monitor built in
  (window "TEP Arduino UNO - ARD1" / "- ARD2").
  1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does TFT2's
     pop-up (move them aside - they open over the schematic). The glasses are
     black for a moment (the panel is not driven yet), show random pixels when
     the display comes on, then the dashboard (TFT1) and the colour test
     (TFT2); each monitor prints the start lines.
  2. Type the commands in the monitors (Enter sends): STATUS, TEXT Hi TEP, BAR
     25, LIGHT 60, INVERT ON, ROTATE 1, SLEEP / WAKE, SIZE 320 (then SIZE 240),
     FILL - see THE DEMO SKETCH below.
  3. TFT1: close the panel with its red X, open it with PANEL on the strip.
  4. TFT2 (Advance): Display (try Freeze and the pixel grid), Bus log, and
     Tests - Init check, SPI bus, Speed, Pixels (click a pixel).
Closed a monitor window? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  TFT pin   Arduino UNO
   GND      GND
   VCC      5V   (the board's regulator makes 3.3 V)
   SCL      D13  (SCK - hardware SPI)
   SDA      D11  (MOSI - hardware SPI)
   RES      D9   (reset - any pin)
   DC       D8   (data / command - any pin)
   CS       D10  (the 1.54" board only - chip select, any pin)
   BLK      D6   (PWM: the backlight dims with analogWrite; open = on)
In the sketch:
  #include <SPI.h>
  #include <Adafruit_GFX.h>
  #include <Adafruit_ST7789.h>
  Adafruit_ST7789 tft(10, 8, 9);      // CS, DC, RES - SCL D13, SDA D11
  tft.init(240, 240);                 // 240 x 240: the 1.3" and the 1.54"
  tft.fillScreen(ST77XX_BLACK);       // the power-on memory is random
On the 1.3" board leave D10 free: it has no CS pin (Adafruit still toggles D10;
nothing is connected to it).
The serial monitor needs no wires: it is built into the Arduino UNO V4.0 (it
listens to D1 and drives D0 inside the board, like the USB chip of a real UNO).
Every TFT pin reaches its UNO through a short wire with a net label - D9_1,
D8_1, D11_1, D13_1, D6_1 and 5V_1 (node 1), the same with _2 plus D10_2 (node
2), and GND: the same name = connected. VCC goes to the UNO's 5V pin. ARD2's D2
has a GND label: its sketch starts with the colour test.
REAL HARDWARE:
 * The SPI mode: the ST7789 reads SDA on the rising SCL edge, so SPI mode 0
   works, and its datasheet lets CS be tied low. Still, many sellers and
   drivers say the 7-pin boards without CS want SPI mode 3 (some say 2): if a
   real 1.3" board stays black with tft.init(240, 240), try
   tft.init(240, 240, SPI_MODE3). The demo has a TFT_SPI_MODE line for it.
   Proteus's ATmega328P model cannot clock SPI modes 2 / 3 (the sketch would
   hang in SPI.transfer()), so keep SPI_MODE0 in Proteus.
 * The logic: the ST7789 is a 3.3 V chip. Most boards have a regulator (VCC 5
   V is fine) but no level shifter: on a 5 V Arduino many people wire the
   signals directly and it works, but 1 kohm resistors in series with SCL,
   SDA, RES, DC and CS (or a level shifter, e.g. a 74HC4050) are safer. In
   Proteus no level shifting is needed.
 * The backlight: BLK high (or open on most boards) = on. If your board's
   backlight stays dark with BLK open, wire BLK to 3.3 V.
 * The colours: if the picture looks inverted, the sketch has turned the
   inversion off - on these IPS glasses tft.invertDisplay(true) gives the TRUE
   colours (it sends INVON), invertDisplay(false) inverts them.
 * The size: always tft.init(240, 240) on these boards. init(240, 320) (the
   2.0" glass) draws the top 80 rows into memory the glass does not show.
 * Speed: a full screen is 57,600 pixels (115 KB at 16-bit colour), about 196
   ms on an UNO - redraw only what changes (text with a background colour, a
   bar by its changed part), as the demo does.
 * Adafruit_ST7789 keeps no picture in RAM: the demo uses 822 bytes of the
   UNO's 2,048.

THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the bus as the model sees it during the running simulation;
each shows one "Good for:" line and a verdict per row (green = fine, amber =
check, red = wrong).
  Init check    Good for: a black screen, inverted colours or a picture 80 rows
                off - is the sketch's init right for 240 x 240? The start-up
                since power-on (or the last re-init) against the ST7789
                datasheet and this IPS glass: the supply, the hardware reset
                (how long, how soon after power-on), SWRESET, the waits, SLPOUT,
                the colour mode, MADCTL (the orientation), the colour order,
                the inversion (INVON for an IPS glass), the window (pixels in
                memory rows 240 - 319 or past the memory), DISPON, the memory
                before DISPON, a verdict, and the start-up as the sketch sent
                it.
  SPI bus       Good for: a black screen - a pin not wired, CS or DC wrong, the
                SPI mode, slow screens. Which signals are connected (five on the
                1.3", six on the 1.54"), command and data bytes since Start, the
                SCL clock (measured, rated 62.5 MHz), the SPI mode (where SCL
                rests between bytes), the bytes per CS-low stretch, cut bytes,
                clocks with CS high, bytes during reset, commands too early,
                data without a command, unknown commands, how busy the bus is,
                and the last CS stretches (on the 1.3": the last commands) with
                their DC level and first bytes.
  Speed         Good for: slow screens and flicker. The pixels since Start, the
                time per pixel (in a fillScreen), a full screen (min / max), the
                full screens a second at best, what the bits alone take at this
                clock, the pixels a second, the panel refresh, and what a redraw
                costs at this speed (a full screen, a title bar, a line of text,
                a clock, an icon, one pixel).
  Pixels        Good for: drawing code, colours and rotations - click a pixel on
                the small glass: its colour, its frame-memory column and row, the
                18 bits it holds and its 565 value, the address and the sketch's
                x / y in the current rotation (Adafruit's 80-row offset taken
                off) and the drawPixel() line that writes it, and the pixels
                around it, magnified.

THE DEMO SKETCH ON THE SERIAL MONITOR (TFT_ST7789_Demo V1.0)
  HELP                   the command list
  STATUS                 the size, the rotation, the screen, the text, the bar,
                         the backlight, inverse, sleep, display, the last
                         fillScreen time
  TEXT <text>            the big text (20 characters, two lines of 13)
  BAR <0-100>            the bar at the bottom (only its changed part is drawn)
  LIGHT <0-255>          the backlight on D6 (PWM)
  DASH / TEST / CLEAR    the dashboard / the colour test / a black screen
  FILL                   a timed fillScreen (blue): "fillScreen took N ms"
  ROTATE <0-3>           setRotation() - the four orientations
  INVERT ON|OFF          the colours inverted / true (on IPS: invertDisplay(false)
                         / invertDisplay(true))
  SLEEP / WAKE           enableSleep(): the glass goes black / comes back
  DISPLAY ON|OFF         enableDisplay(): the glass goes black / comes back
  SIZE 240|320           tft.init(240, 240) (right) or tft.init(240, 320) - the
                         wrong size: the picture moves up 80 rows
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter. The dashboard's clock is redrawn once a second (with a background
colour: no flicker, no fillScreen).

EXPECTED MONITOR OUTPUT (ARD1)
  TFT ST7789 V1.0 demo - The Engineering Projects
  TFT 240x240 IPS ready
  Type HELP for the commands
STATUS:
  TFT ST7789 240x240 IPS, rotation 0
  Screen: dashboard
  Text: Hello, TEP!
  Bar 70%, backlight 255
  Inverse off, sleep off, display on
FILL:
  OK - fillScreen took 196 ms (57,600 pixels)
SIZE 320:
  OK - tft.init(240, 320) - wrong for a 240x240 glass

PROPERTIES (double-click the part > Edit Properties)
  PANEL       Simple devices only: the STATUS panel at the start, OPEN or
              CLOSED (default OPEN)
Every run starts again from the properties. The demo's UNOs (ARDUINO UNO V4.0):
PROGRAM TFT_ST7789_Demo.hex, MONITOR YES (the built-in monitor), BAUD 9600,
AUTOOPEN YES, BOOTLOADER YES.

LINKS.INI (OPTIONAL)
The Help page cards of the Advance devices open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPST7789.DLL with lines KEY=URL, for example:
  ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.

TROUBLESHOOTING
* The glass stays dark and the PWR LED is off: no power - check VCC and GND
  (the panel says NO POWER with the voltage; the module needs 3.3 - 5 V).
* SUPPLY REVERSED: VCC and GND are swapped.
* BLACK SCREEN - NOTHING ON SPI YET: nothing reached the TFT - check SCL -> D13,
  SDA -> D11, DC (and CS on the 1.54") - the SPI bus tool lists the pins that
  are not connected - and that the sketch calls tft.init(240, 240).
* BLACK SCREEN - STILL IN SLEEP / DISPLAY OFF: the sketch never sent SLPOUT
  (11) or DISPON (29) - tft.init() does both; after enableSleep(true) or
  enableDisplay(false) the glass is black until you switch it back.
* STILL ASLEEP - SLPOUT CAME TOO EARLY: wait 120 ms after a reset before SLPOUT
  (and 5 ms after it) - Adafruit's init waits 150 ms.
* PICTURE OFF THE GLASS: the sketch draws for 240 x 320 - use
  tft.init(240, 240) (it adds the 80-row offset in rotations 0 and 1).
* COLOURS INVERTED: the inversion is off - tft.invertDisplay(true) on an IPS
  glass gives the true colours.
* RED / BLUE SWAPPED: MADCTL with the BGR bit - setRotation() sends RGB.
* The 1.3" board shows rubbish after a glitch on SCL: with CS tied low the bit
  count can slip - pulse RES (tft.init() does).
* BACKLIGHT OFF: the BLK pin is low - drive it high, PWM it, or leave it open.
* Random pixels at the start: the
…
Advertisement

Development1 release

  1. V1.0ST7789 TFT LCD Library for Proteus V1.0this page

    V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.

Installation8 steps

From the download to a working project, in order. The steps follow what the package contains.

You will need

  • Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
  • Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click tft-st7789-tep-v1-0-7e676f28841a4708814e929eaeb32e20.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (TFT-ST7789-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB and TEPST7789.LIB and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.

  3. 3

    Add the simulation model

    Copy TEPARDUINO.DLL and TEPST7789.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 4

    Restart Proteus and place the component

    Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.

  5. 5

    Open the sketch in the Arduino IDE

    Open TFT_ST7789_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to TFT_ST7789_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open TFT-ST7789-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    ST7789 TFT LCD Library for Proteus V1.0 (1.3 / 1.54 inch IPS) explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8 Run the HEX file in the Uno Test Bench, in your browser

FAQs9 questionsContact TEP

How do I download ST7789 TFT LCD Library for Proteus V1.0?

Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.

What is inside the archive?

ST7789 TFT LCD Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 10 files.

What should I do if the download does not start?

Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.

Is this file free?

Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.

How do I check that the file arrived complete?

Compare its SHA-256 with the one on this page, f5346c9786d1551d38c3879d48a89b27985390b0d00bd47d42f67b395499903b. In PowerShell run Get-FileHash "tft-st7789-tep-v1-0-7e676f28841a4708814e929eaeb32e20.zip"; on macOS or Linux run shasum -a 256 "tft-st7789-tep-v1-0-7e676f28841a4708814e929eaeb32e20.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.

Do I need WinRAR to open the ZIP file?

No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.

Where do I put the LIB and IDX files?

Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.

Which Proteus version does the library need?

The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.

How do I get the HEX file into the simulation?

Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.

preparing · tft-st7789-tep-v1-0-7e676f28841a4708814e929eaeb32e20.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 34Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 13 Oct 2026Uploaded at
Last 14 days21 downloads
SHA-256 f5346c9786d1551d38c3879d48a89b27985390b0d00bd47d42f67b395499903b
DocumentationST7789 TFT LCD Library for Proteus V1.0 (1.3 / 1.54 inch IPS)
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.