Screen

Getting Started ›› Tools ›› TFT_Graphic_Lib ››
Parent Previous Next

Screen



1. Select and fill the following information:


- Controller - Select the graphic controller used in your TFT display. This will determine which driver file is used. Currently supported controllers:

- ST7789V

- ILI9341

- ST7796S

- ILI9486

- Interface - Select the data transfer interface for communication with the graphic IC:

-SPI_1 - Hardware SPI Port1 (often denoted as SPI1)

-SPI_2 - Hardware SPI Port2 (often denoted as SPI2)

-SPI_SW - Software SPI (Bit-banging)

-PAR_2x8b - 2x8-bit Parallel interface (for 8-bit MCUs)

-PAR_16b - 1x16-bit Parallel interface (for 16-bit MCUs) 

- Screen Width - Enter the screen width (the larger dimension).

- Screen Height - Enter the screen height (the smaller dimension).

- TFT CS ... TFT SCLK - Specify the pins for SPI communication.

or

- TFT DATA (L & H) ... TFT RD - Specify the pins for Parallel communication.


2. Generate defines


Click "ADD DEFINE" to generate the list of defines and symbols needed for Positron.


3. Copy defines to Positron


Select and copy all generated defines from the text box, then paste them at the beginning of your Positron code, before including the TFT_Graphic_Lib.inc file. If needed, you can also clear the text box by deleting all lines.






Created with the Personal Edition of HelpNDoc: Free EPub producer