mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2024-09-21 02:17:13 +00:00
7fc8b99b64
A new background rendering approach is used for smooth fonts which almost eliminates flicker. tft.print... can now be used with a background rendered for smooth fonts. Font_Demo_1/2/3... examples have been updated. A new "docs" folder has been created and files moved there. The Tools folder now only contains support tools. #1757 fixed by using Arduino calls. A new USER_SETUP_ID parameter can be added to setup files and checked via a new verifySetupID(id); function. Version raised to v2.4.50
38 lines
948 B
C
38 lines
948 B
C
// Setup for the ESP32 S2 with ILI9341 display
|
|
// Note SPI DMA with ESP32 S2 is not currently supported
|
|
#define USER_SETUP_ID 70
|
|
// See SetupX_Template.h for all options available
|
|
#define ILI9341_DRIVER
|
|
|
|
// Typical board default pins
|
|
#define TFT_CS 10 // 10 or 34
|
|
|
|
#define TFT_MOSI 11 // 11 or 35
|
|
#define TFT_SCLK 12 // 12 or 36
|
|
#define TFT_MISO 13 // 13 or 37
|
|
|
|
#define TFT_DC 14
|
|
#define TFT_RST 15
|
|
|
|
//#define TOUCH_CS 16 // Optional for touch screen
|
|
|
|
#define LOAD_GLCD
|
|
#define LOAD_FONT2
|
|
#define LOAD_FONT4
|
|
#define LOAD_FONT6
|
|
#define LOAD_FONT7
|
|
#define LOAD_FONT8
|
|
#define LOAD_GFXFF
|
|
|
|
#define SMOOTH_FONT
|
|
|
|
// FSPI port will be used unless the following is defined
|
|
#define USE_HSPI_PORT
|
|
|
|
//#define SPI_FREQUENCY 27000000
|
|
#define SPI_FREQUENCY 40000000 // Maximum for ILI9341
|
|
|
|
#define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V
|
|
|
|
#define SPI_TOUCH_FREQUENCY 2500000
|