How to setup the configuration (User_Setup) of TFT_eSPI for ILI9225 176x220 TFT with esp32? #3748
sreyas40
started this conversation in
Compatible displays and setup files
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to interface my 2 inch 176x220 reslolution tft display having a ILI9225 driver with esp32 using TFT_eSPI library.This is the User_Setup file of the TFT_eSPI library, i edited this to match my hardware. I tried to run one of the examples, but it doesn't work, still a blank white screen.
this is the tft
`#define USER_SETUP_INFO "User_Setup"
#define ILI9225_DRIVER
#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue
#define TFT_WIDTH 176
#define TFT_HEIGHT 220
//#define TFT_INVERSION_ON
//#define TFT_INVERSION_OFF
//#define TFT_MISO 19
#define TFT_MOSI 13 // HSPI MOSI
#define TFT_SCLK 14 //HSPI CLK
#define TFT_CS 15 // HSPI CS
#define TFT_DC 27 // Data Command control pin
#define TFT_RST 33 // Reset pin
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
//#define LOAD_FONT8N
#define LOAD_GFXFF
#define SMOOTH_FONT
#define SPI_FREQUENCY 27000000
#define SPI_READ_FREQUENCY 20000000
#define SPI_TOUCH_FREQUENCY 2500000
#define USE_HSPI_PORT`
I have verified the pin connection using another library TFT_22_ILI9225, i was able to load the examples from this library. I want to use the TFT_eSPI library to drive my tft, but i can't figure out what went wrong. Please help!
I also carried out the Read_User_Setup example under test and diagnostics of the library and verified that it is reading my User_Setup.h
`TFT_eSPI ver = 2.5.43
Processor = ESP32
Frequency = 240MHz
Transactions = Yes
Interface = SPI
Display driver = 9225
Display width = 176
Display height = 220
MOSI = GPIO 13
SCK = GPIO 14
TFT_CS = GPIO 15
TFT_DC = GPIO 27
TFT_RST = GPIO 33
Font GLCD loaded
Font 2 loaded
Font 4 loaded
Font 6 loaded
Font 7 loaded
Font 8 loaded
Smooth font enabled
Display SPI frequency = 27.00`
Beta Was this translation helpful? Give feedback.
All reactions