Introduction

Next

TFT & EPD Graphic Library 2

(current version 2.04 13-09-2026, requires Positron8 v. 4.0.6.5 and Positron16 v. 1.1.3.5 or later)

(Download)


TFT Graphic Library 2 since version 2.03 was renamed to TFT & EPD Graphic Library 2 to properly reflect its new functionality. 


(Access the deprecated TFT Graphic Library 1 here)


Before using the TFT & EPD Graphic Library or designing hardware for it, it is highly recommended to thoroughly review the Getting Started section and its sub-sections to familiarize yourself with the hardware and software specifics. 

(Please Read Disclaimer)




TFT & EPD Graphic Library 2 is a free library for the Positron 8-bit and 16-bit PIC BASIC Compilers, designed to simplify development for TFT displays and EPD's (Electronic Paper Display). Some components — particularly the SD card related functions, are designed to operate independently of the main library, allowing SD card access with or without a FAT16/FAT32 file system.


TFT & EPD Graphic Library 2 is a continuation of the original release and is compatible with both Positron8 and Positron16. Due to the library’s math-intensive nature, fully optimizing every function for the wide range of supported 8-bit and 16-bit microcontroller families would be excessively time consuming. However, because the implementation is primarily math-based, the library can be used with any microcontroller supported by Positron8 and Positron16.


The library was initially developed for personal projects. As it grew, it became clear that it could be useful to others, so it was shared on the Positron PIC BASIC Forums. Over time, a lack of detailed in-code documentation made the library increasingly difficult to use even for its author. To address this, I've created website as a dedicated reference and help guide for the library.


As development continued, it became apparent that the original code base was difficult to extend due to its rushed design. TFT & EPD Graphic Library 2 is therefore a major evolution of the original library. The code has been fully reorganized and extensively modified to improve maintainability and allow for future expansion. A completely new header structure has been introduced, which requires the use of a newly developed configuration tool.


The new library is only partially compatible with previous versions, and backward compatibility cannot be guaranteed. However, porting existing code typically requires only minor modifications. Numerous bugs have been fixed, and overall performance has been further optimized. A new Sprites section has been added, enabling the use of RAM buffers to read, modify, and write pixel data at high speed. Additional tools have been introduced to simplify font and image handling, and many new functions have been added.


Future development will focus on expanding functionality, adding new drivers, and addressing any remaining or newly discovered issues.


The TFT & EPD Graphic Library 2 is organized into the following main sections:


    1. Colors
    2. Drivers
    3. EPD 
    4. Fonts
    5. Memory
    6. Profiles
    7. SD Card 
    8. Shapes
    9. Sprites
    10. System 
    11. Templates
    12. Tools
    13. Touch 








Page Views: 1853


Last site modification: 16-09-2026

Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor