Project Files of ST7796 TFT Display Library for Proteus Simulation
48ca383909844a76b7088aa1ec101076.zip

ST7796 TFT Display Library for Proteus V1.0
ST7796 TFT Display Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.3 MB, 2.8 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
ST7796-TFT-Display-Library-for-Proteus-v1.0.zip with the 3.5" ST7796 TFT for Proteus simulation (TEPST7796.LIB and TEPST7796.DLL, Simple and Advance), our Arduino UNO V4.0, the A4 demo, its sketch and a README.
File Structure
20.1 KB201.9 KB59.8 KB883.5 KB381.5 KB19.5 KB36.9 KB883.5 KB381.5 KB12.8 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in ST7796 TFT Display Library for Proteus Simulation. Open an image for its full size.
README
ST7796 TFT DISPLAY LIBRARY FOR PROTEUS SIMULATION - V1.0 (a 3.5" 480 x 320 IPS SPI TFT, capacitive touch)
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/12/st7796-tft-display-library-for-proteus.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
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
ST7796-TFT-Display-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPST7796.LIB 59.8 KB the library -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPST7796.DLL 381.5 KB the model -> MODELS folder
|-- Proteus Simulation/
| |-- ST7796_Touch_Demo.hex 36.9 KB the demo firmware
| |-- ST7796-TFT-Touch-ArduinoUnoV4.pdsprj 19.5 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPST7796.DLL 381.5 KB copy of the model
|-- Arduino Code/
| |-- ST7796_Touch_Demo/ST7796_Touch_Demo.ino 20.1 KB the demo sketch (source of the .hex)
|-- README.txt ~14.2 KB this file
Total: 2.81 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The 3.5" IPS SPI TFT module with capacitive touch, drawn at its real size (98.00 x 55.50 mm board,
the glass as wide as the board, four
holes, the 14-pin header on the left; our own drawing): an ST7796S TFT controller on the SPI bus and
an FT6336U capacitive touch controller
on I2C:
* The ST7796S in 4-wire SPI (mode 0, MSB first, DC low = command): reset, sleep out (120 ms),
display on / off, the window (2A / 2B), memory
write (2C / 3C), MADCTL (36: MY MX MV, BGR), COLMOD (3A) and the command-set access F0 (C3 / 96
open the extended commands, 3C / 69 close
them). Over SPI the ST7796S takes 16-bit RGB565 (COLMOD 55, two bytes a pixel) as well as 18-bit
(66, three bytes) - a full screen is
307,200 bytes at 16 bits, about a third less than an ILI9488. ID4 (D3h) = 00 77 96.
* The IPS glass: black when nothing drives it, and its colours come out inverted unless INVON
(21h) is sent - the model shows both.
* The touch: an FT6336U at I2C address 0x38: TD_STATUS (02h), the first point P1 (03h - 06h, the
event in bits 7-6), the chip ID (A3h =
64h); CTP_INT low while touched (polling mode); CTP_RST resets it. Click and drag on the glass
to touch.
* TEP additions on the board: PWR (lit with VCC up), SPI (flashes on a byte), TOUCH (lit while
pressed).
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.
TWO DEVICES (search "ST7796" or "TFT" in Pick Devices):
TFT35ST7796TEP "TFT 3.5\" ST7796 Simple" in TEPST7796.LIB: the on-sheet STATUS panel (closed
with its red X / PANEL button).
TFT35ST7796ADVTEP "TFT 3.5\" ST7796 Advance": OPEN PANEL opens the pop-up (Display, Bus log,
Tests).
Both: model TEPST7796.DLL; pins VCC GND LCD_CS LCD_RST LCD_RS SDI SCK LED SDO
CTP_SCL CTP_RST CTP_SDA CTP_INT SD_CS (the
header, top to bottom).
THE POP-UP
Advance: OPEN PANEL on the board, or click the part at Run. Pages:
Display The glass as the controller drives it, the window, MADCTL / COLMOD / inversion /
sleep / display state, the pixels written,
the touch with its native and screen coordinates.
Bus log Every command with its parameters decoded, the pixel bursts, the reads, the I2C
touch reads, the warnings.
Tests The init check against the datasheet and this IPS glass (INVON, BGR, the F0 access),
the SPI bus, speed, pixels, touch.
Graphs the live values over the last 2, 6 or 15 s. Live / Freeze.
Event log every change and warning; filters All / Changes / Warnings, Pause, Clear
Check what the part is doing and what to look at, each with a verdict (green = fine, amber
= check, red = wrong)
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
TEST STATUS
V1.0: verified in Proteus 8.5 on 24 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
* The project loads and starts cleanly; the demo ran 5.6 simulated seconds in about 2 minutes 41
seconds on our PC with the pop-up open
and the pictures being taken. Hardware SPI at 8 MHz (D11 / D12 / D13), LCD_CS D10, LCD_RS D9,
LCD_RST D8, LED D6; the touch on I2C
A4 / A5 at 400 kHz, CTP_INT D2, CTP_RST D4.
* Start-up: LCD_RST low 20.0 ms at 80.7 ms, SWRESET 250.7 ms, F0 C3 + F0 96, ID4 (D3h) 00 77 96
(one dummy clock), the init (COLMOD 55,
MADCTL E8, 10 extended settings, F0 3C + F0 69, INVON), SLEEP OUT 401.0 ms, the touch chip ID
64, DISPLAY ON 1207.6 ms.
* "Full screen (307,200 bytes): 638 ms" (16-bit), "Screen drawn in 473 ms"; the IPS glass black
before DISPLAY ON, inversion ON.
* Touches (scripted at fixed times): 2.4 s (110, 250) = FT6336U native (250, 369); a drag 3.0 -
3.7 s to (237, 289); PRESS at 4.0 / 4.6
/ 5.2 s (native 231, 93) -> "PRESS - count 1 / 2 / 3"; 373,719 pixels in the run.
* Tests page, Init check: every row green - "initialised like the datasheet for this IPS glass".
* The pop-up (Display, Bus log, Tests) followed the run.
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" (TEPST7796.LIB 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
(use the folder that already holds Proteus's own .LIB files).
3. Copy TEPST7796.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the MODELS folder
(...\Proteus 8 Professional\MODELS).
4. Delete TEPST7796.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "ST7796".
RUN THE DEMO
"Proteus Simulation\ST7796-TFT-Touch-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the
DLLs beside the project.
ARD1: Arduino UNO V4.0 running ST7796_Touch_Demo.hex (window "TEP Arduino UNO - ARD1"):
hardware SPI (D11 MOSI, D12 MISO, D13 SCK),
LCD_CS D10, LCD_RS D9, LCD_RST D8, LED D6; the touch on I2C A4 (SDA) / A5 (SCL), CTP_INT
D2, CTP_RST D4.
TFT1: the ST7796 module, Advance (OPEN PANEL for the pop-up).
The sketch resets the touch and the display, opens the extended commands, reads ID4, sends the
init (COLMOD 55, MADCTL E8, INVON),
fills the background once, switches the display on and draws a title bar, colour boxes, a hue bar,
the three RGB565 ramps, a TOUCH PAD
with a dot trail and a PRESS button with a counter; it reads the touch over I2C.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
VCC 5 V (the board makes 3.3 V and shifts the display inputs), GND, LCD_CS / LCD_RS / LCD_RST /
SDI / SCK to the Arduino, LED to a pin,
SDO to MISO; the touch: CTP_SCL / CTP_SDA to the I2C pins, CTP_INT and CTP_RST to two pins. SDO
comes back at 3.3 V; leave it
unconnected if other parts share MISO.
REAL HARDWARE:
* The IPS glass needs INVON - without it the colours are inverted.
* Use COLMOD 55 (16-bit) for speed; 66 (18-bit) works too.
* Open the extended commands with F0 C3 / F0 96 before the power and gamma settings, close them
with F0 3C / F0 69.
* Map the touch: it reports the panel's native portrait coordinates.
* Pick the MADCTL rotation that is upright on your board, with the BGR bit.
THE DEMO SKETCH ON THE SERIAL MONITOR (ST7796_Touch_Demo V1.0, 9600 baud)
ST7796_Touch_Demo prints the start-up, the IDs and the times, then a line for every touch. EXPECTED
MONITOR OUTPUT (shortened)
ST7796S IPS TFT + FT6336U touch demo V1.0 - TEP
ID4 (D3h): 00 77 96 - ST7796S
Init: COLMOD 55 (16-bit), MADCTL E8, INVON
Touch: FT6336U at 0x38, chip ID 64
PROPERTIES (double-click the part > Edit Properties)
PANEL Simple: SHOWN / CLOSED (the on-sheet STATUS panel).
Every run starts again from the properties.
LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPST7796.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
* Black screen: no SLPOUT / DISPON, the LED pin low, or CS / DC not connected.
* Inverted colours: INVON missing - this IPS glass needs it.
* Red and blue swapped: the BGR bit missing in MADCTL.
* The picture upside down or mirrored: the MADCTL rotation (E8 is upright on this landscape module).
* No touch: CTP_SDA / CTP_SCL not on the I2C pins, CTP_RST held low, or the touch read before it
booted.
* The part is not simulated: TEPST7796.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPST7796.DLL is missing from MODELS and from the project folder. No
UNO / no monitor window: TEPARDUINO.DLL is missing, or click the UNO's USB port.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/lcd-proteus-library
SUPPORT US
This library is free. If it saves you time, please support our work:
https://www.theengineeringprojects.com/donate
WEBSITE
https://www.theengineeringprojects.com/
LICENCES AND THIRD-PARTY NOTES
* The model (TEPST7796.DLL), the symbols and artwork, the other parts of ours in the demo and the
Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP Serial Monitor
Advance) are made by The Engineering Projects. The models use only standard Windows libraries; no
Visual C++ redistributable is needed.
The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library V4.0 - its
microcontroller is Proteus's own AVR model): The Engineering Projects,
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6, which includes
LGPL-licensed code; its source code is available at
https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
* Proteus is a product of Labcenter Electronics and is not included. Arduino is a trademark of Arduino SA.
This library is not made or endorsed by Arduino or Labcenter.
REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\ST7796_Touch_Demo\ST7796_Touch_Demo.ino, select Arduino Uno and use Sketch > Export
Compiled Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 13,412 bytes
of flash and 477 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the ST7796S command set over 4-wire SPI with its reads, the F0 command-set access, the
window and the address counter, MADCTL,
COLMOD 55 / 66, the IPS glass (black undriven, inverted without INVON), the backlight; the FT6336U's
registers, the touch points and
CTP_INT / CTP_RST.
Our figures: the one-dummy-clock ID4 read, the touch controller's boot time, its trigger-mode INT
pulse, the native touch origin.
Not modelled: the analog power and gamma settings on the picture, the parallel interface, the SD
card, two-finger gestures.
VERSION
TEP ST7796 TFT library V1.0 (Nov 2026). Devices TFT35ST7796TEP / TFT35ST7796ADVTEP (TEPST7796.LIB /
TEPST7796.DLL). Demo sketch ST7796_Touch_Demo V1.0 (SPI, Wire). Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor.Development1 release
-
V1.0ST7796 TFT Display 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
Extract the archive
Right-click 48ca383909844a76b7088aa1ec101076.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ST7796-TFT-Display-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB and TEPST7796.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
Add the simulation model
Copy TEPARDUINO.DLL and TEPST7796.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 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
Open the sketch in the Arduino IDE
Open ST7796_Touch_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to ST7796_Touch_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ST7796-TFT-Touch-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
ST7796 TFT Display Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download ST7796 TFT Display 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?
ST7796 TFT Display Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.3 MB, 2.8 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, ba36384be2617b6f24656407c310caa9ed93c3b79a480efa65ab6c6da146c306. In PowerShell run Get-FileHash "48ca383909844a76b7088aa1ec101076.zip"; on macOS or Linux run shasum -a 256 "48ca383909844a76b7088aa1ec101076.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.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 6 Dec 2026Uploaded at
ba36384be2617b6f24656407c310caa9ed93c3b79a480efa65ab6c6da146c306



























Comments
0