Skip to content

Esp32s3 ILI9488 + XPT2046 Touch Issues #3836

@Zynth9999

Description

@Zynth9999

Hello! I managed to get the TFT to turn on but the touch isnt working at all,

//#define ST7796_DRIVER

// ESP32-S3 SPI2 pins (shared for TFT and touch)
#define TFT_MISO -1   // TFT MISO (not used)
#define TFT_MOSI 35
#define TFT_SCLK 36
#define TFT_CS    15
#define TFT_DC    2
#define TFT_RST   4   // or -1 if connected to ESP32 RESET

// Touch screen on same SPI bus
#define TOUCH_CS  10   // Touch chip select
#define TOUCH_CLK 36   // SPI SCLK (shared)
#define TOUCH_DIN 35   // SPI MOSI (shared)
#define TOUCH_DO  13   // Touch MISO

#define TOUCH_DRIVER XPT2046  // Enable XPT2046 touch

// Fonts
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT

// SPI speeds
#define SPI_FREQUENCY      40000000
#define SPI_READ_FREQUENCY 20000000
#define SPI_TOUCH_FREQUENCY 100000  // Touch can be slower

Im using the touch calibration sketch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions