xiao-esp32s3 SquareLine Studio

Hello Seeed Studio team, today I would need your help. I’ve been stuck on an issue for two days now.

I would like to use SquareLine Studio to create an interface for the Seeed Studio round display with the Seeed Studio ESP32-S3.

My problem is that I can transfer the screen visuals, but the touchscreen doesn’t respond. I think the issue is with the TFT_eSPI library. I tried configuring it, but I think I must have made a mistake somewhere.

For your information, I’ve already checked some problems, and they don’t seem to be related to:

cpp

Copier le code

bool touched = tft.getTouch( &touchX, &touchY, 600 );

In the example library, the hardware test file works fine.

Here are the sections I’ve modified, and maybe you can spot some errors.

TFT_eSPI.h:

cpp

Copier le code

/***************************************************************************************
**                         Section 9: TFT_eSPI class conditional extensions
***************************************************************************************/
// Load the Touch extension
#define TOUCH_CS 4  
#ifdef TOUCH_CS
  #if defined (TFT_PARALLEL_8_BIT) || defined (RP2040_PIO_INTERFACE)
    #if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
      #error >>>>------>> Touch functions not supported in 8/16-bit parallel mode or with RP2040 PIO.
    #endif

User_Setup.h:

cpp

Copier le code

#define GC9A01_DRIVER

#define TFT_WIDTH  240 // ST7789 240 x 240 and 240 x 320
#define TFT_HEIGHT 240 // GC9A01 240 x 240

// For ESP32 Dev board (only tested with GC9A01 display)
// The hardware SPI can be mapped to any pins

#define TFT_MISO 8
#define TFT_MOSI 9 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 7
#define TFT_CS   2  // Chip select control pin
#define TFT_DC   4  // Data Command control pin
//#define TFT_RST  -1  // Reset pin (could connect to Arduino RESET pin)
//#define TFT_BL   22  // LED back-light

#define TOUCH_CS 4     // Chip select pin (T_CS) of touch screen

//#define TFT_WR 22    // Write strobe for modified Raspberry Pi TFT only

User_Setup_Select.h:

cpp

Copier le code

#include <User_Setups/Setup66_Seeed_XIAO_Round.h>     // Setup file for Seeed XIAO with GC9A01 240x240

Thank you for your valuable advice!