Problem Description
The TFT_eSPI library works correctly in Arduino IDE 2.13,
but when using version 3.x of the IDE, the program hangs or restarts
when executing tft.init() or during the writecommand() function.
The same code and hardware work perfectly
in version 2.13 of the IDE.
Hardware Environment
- Microcontroller: ESP32 DevKit
- TFT Display: ILI9341 (SPI)
- Power Supply: 3.3V, same connection tested with Adafruit_GFX
Software Version
- Arduino IDE: 2.3.6
- ESP32 Core: 3.3.2
- TFT_eSPI: version 2.5.43
User_Setup.h File Configuration
#define ILI9341_DRIVER
#define TFT_MISO 19
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 15
#define TFT_DC 2
#define TFT_RST 4
#define SPI_FREQUENCY 27000000